esphome-webserver icon indicating copy to clipboard operation
esphome-webserver copied to clipboard

v3 - toggles work once then require web refresh

Open jr-air opened this issue 9 months ago • 1 comments

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.

jr-air avatar May 18 '24 23:05 jr-air