diff --git a/garage1.yaml b/garage1.yaml index 1d8da54..4e389ed 100644 --- a/garage1.yaml +++ b/garage1.yaml @@ -1,5 +1,5 @@ substitutions: - garageSide: sy # sy, wo + garageSide: wo # sy, wo esphome: name: garage${garageSide} @@ -15,6 +15,7 @@ api: wifi: ssid: !secret wifi_ssid password: !secret wifi_password + power_save_mode: none fast_connect: true logger: #level: VERY_VERBOSE diff --git a/pingpongfuss1.yaml b/pingpongfuss1.yaml index 3a99f73..f92e2ac 100644 --- a/pingpongfuss1.yaml +++ b/pingpongfuss1.yaml @@ -2,6 +2,10 @@ esphome: name: pingfuss1 platform: ESP8266 board: nodemcuv2 + on_boot: + priority: 300 + then: + - output.turn_on: st_led # Enable logging logger: @@ -27,6 +31,20 @@ mqtt: broker: !secret mqtt_broker_1 username: !secret mqtt_broker_1_username password: !secret mqtt_broker_1_password + on_connect: + then: + - output.turn_off: st_led + on_disconnect: + then: + - output.turn_on: st_led + +output: + - platform: gpio + pin: + number: D0 + mode: output + inverted: true + id: st_led # Example configuration entry binary_sensor: diff --git a/tablesoccer.yaml b/tablesoccer.yaml index d397829..8a760f6 100644 --- a/tablesoccer.yaml +++ b/tablesoccer.yaml @@ -6,11 +6,18 @@ esphome: priority: 600 then: - output.turn_on: power_control + - output.turn_on: st_led mqtt: broker: !secret mqtt_broker_1 username: !secret mqtt_broker_1_username password: !secret mqtt_broker_1_password + on_connect: + then: + - output.turn_off: st_led + on_disconnect: + then: + - output.turn_on: st_led wifi: ssid: !secret wifi_ssid @@ -31,6 +38,12 @@ output: - platform: gpio pin: 14 id: power_control + - platform: gpio + pin: + number: D0 + mode: output + inverted: true + id: st_led tablesoccer_btn_helper: keep_alive: power_control