esphome / esphome-webserver

A Lit Element web component frontend for the ESPHome web_server.
https://esphome.io/components/web_server
MIT License
35 stars 42 forks source link

v3 - toggles work once then require web refresh #99

Open jr-air opened 4 months ago

jr-air commented 4 months ago

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.

Replay Switch #GPIO16

switch:

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.

RFDarter commented 4 months ago

Hi, is it still broken for you? On my end toggeling a switch works fine