I am trying to design a bedside monitoring unit using Nextion display and ESPHome. Following is the simple UI that I designed.
Each dual state button calls home assistant service through ESPHome. My question is to keep the UI updated with current state of lights. When lights are switched on using physical switch, I want to send touch event externally to dual state button in Nextion. So the dual state button switches to pressed state showing actual state of light. Does anyone have any idea, how can I achieve that?