Added:
OnBoard LED to turn on while ESP is not connected to MQTT for pingpongfuss and tablesoccer Changed: Garage to no use NO power saving while on wifi
This commit is contained in:
parent
cdcd297d68
commit
9fac30e714
@ -1,5 +1,5 @@
|
|||||||
substitutions:
|
substitutions:
|
||||||
garageSide: sy # sy, wo
|
garageSide: wo # sy, wo
|
||||||
|
|
||||||
esphome:
|
esphome:
|
||||||
name: garage${garageSide}
|
name: garage${garageSide}
|
||||||
@ -15,6 +15,7 @@ api:
|
|||||||
wifi:
|
wifi:
|
||||||
ssid: !secret wifi_ssid
|
ssid: !secret wifi_ssid
|
||||||
password: !secret wifi_password
|
password: !secret wifi_password
|
||||||
|
power_save_mode: none
|
||||||
fast_connect: true
|
fast_connect: true
|
||||||
logger:
|
logger:
|
||||||
#level: VERY_VERBOSE
|
#level: VERY_VERBOSE
|
||||||
|
@ -2,6 +2,10 @@ esphome:
|
|||||||
name: pingfuss1
|
name: pingfuss1
|
||||||
platform: ESP8266
|
platform: ESP8266
|
||||||
board: nodemcuv2
|
board: nodemcuv2
|
||||||
|
on_boot:
|
||||||
|
priority: 300
|
||||||
|
then:
|
||||||
|
- output.turn_on: st_led
|
||||||
|
|
||||||
# Enable logging
|
# Enable logging
|
||||||
logger:
|
logger:
|
||||||
@ -27,6 +31,20 @@ mqtt:
|
|||||||
broker: !secret mqtt_broker_1
|
broker: !secret mqtt_broker_1
|
||||||
username: !secret mqtt_broker_1_username
|
username: !secret mqtt_broker_1_username
|
||||||
password: !secret mqtt_broker_1_password
|
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
|
# Example configuration entry
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
|
@ -6,11 +6,18 @@ esphome:
|
|||||||
priority: 600
|
priority: 600
|
||||||
then:
|
then:
|
||||||
- output.turn_on: power_control
|
- output.turn_on: power_control
|
||||||
|
- output.turn_on: st_led
|
||||||
|
|
||||||
mqtt:
|
mqtt:
|
||||||
broker: !secret mqtt_broker_1
|
broker: !secret mqtt_broker_1
|
||||||
username: !secret mqtt_broker_1_username
|
username: !secret mqtt_broker_1_username
|
||||||
password: !secret mqtt_broker_1_password
|
password: !secret mqtt_broker_1_password
|
||||||
|
on_connect:
|
||||||
|
then:
|
||||||
|
- output.turn_off: st_led
|
||||||
|
on_disconnect:
|
||||||
|
then:
|
||||||
|
- output.turn_on: st_led
|
||||||
|
|
||||||
wifi:
|
wifi:
|
||||||
ssid: !secret wifi_ssid
|
ssid: !secret wifi_ssid
|
||||||
@ -31,6 +38,12 @@ output:
|
|||||||
- platform: gpio
|
- platform: gpio
|
||||||
pin: 14
|
pin: 14
|
||||||
id: power_control
|
id: power_control
|
||||||
|
- platform: gpio
|
||||||
|
pin:
|
||||||
|
number: D0
|
||||||
|
mode: output
|
||||||
|
inverted: true
|
||||||
|
id: st_led
|
||||||
|
|
||||||
tablesoccer_btn_helper:
|
tablesoccer_btn_helper:
|
||||||
keep_alive: power_control
|
keep_alive: power_control
|
||||||
|
Loading…
Reference in New Issue
Block a user