hi, Im using two power supplies . one for esp32 and other power supply to the leds. i have connected relay in such a way that , when triggered relay can turn ON and OFF the power supply(which controls the leds).
My question is, I want to add a momentary button in esp32 to control the relay (to turn on and off the power supply) and also update it in UI.
this could be really helpful that. I dont have to open UI every time to turn on or off the relay, rather the push button can turn on and off the relay manually and also it would be great if it updates the status in UI too.
My schematic looks something like this below: