esphome-webserver
esphome-webserver copied to clipboard
v3 - toggles work once then require web refresh
The v3 web version looks great, but toggling a setting only works once. Refreshing the web page lets the toggle work once again.
Not sure if I need to explicitly include a "sensor" for switch state in the yaml but the toggles and this yaml snippet works as expected in v2 web.
Enable Web server.
web_server: port: 80 version: 3
Sensors with general information.
sensor:
Uptime sensor.
- platform: uptime name: Uptime
WiFi Signal sensor.
- platform: wifi_signal name: WiFi Signal update_interval: 60s
Replay Switch #GPIO16
switch:
- platform: gpio pin: 16 name: "Relay Toggle"
Debug output (press toggle button twice): 16:15:08 [D] [switch:012] 'Relay Toggle' Turning ON. 16:15:08 [D] [switch:055] 'Relay Toggle': Sending state ON 16:15:10 [D] [switch:012] 'Relay Toggle' Turning ON.