In my scenario, id(licht_kontrolle).state is true. The button “Licht” is checked.
After switching to another screen e.g. “Licht” and going back to the main screen, Button “Light” is unchecked. The state of licht_kontrolle has not been changed at all.
Updating the binary sensor id(licht_kontrolle) checks the button on the main screen again.
My feeling is, that the state of licht_kontrolle is lost after switching the screen and not reloaded.
binary_sensor:
- platform: template
id: test
name: test
lambda: return id(licht_kontrolle).state;
Open the web UI, reproduce the bug performing screen change, or whatever is needed.
Check the state of the test sensor
If the state doesn’t correlate with the current button state on the screen - it’s a bug in the component rendering. If the binary sensor changed its state but shouldn’t - I don’t know what is happening. Maybe check that you have enough free RAM.