I have an esp01 with a single relay attached to it. I can turn it on and off it via the home assistant.
Switch:
- platform: gpio
name: "office-switch"
pin: GPIO0
id: relay_output
restore_mode: ALWAYS_OFF
However, I want to use it behind the wall switch; for example, a light can be turned on via the manual switch on the wall and the home assistant. The issue is when I turn off/turn on the wall switch. The status doesn’t update in the home assistant.
Is it achievable via the same module, or is there another module I need to use for the status update?
From what you’re describing, you need a device with a way to detect the state of the switch and have the light ONLY controlled via your relay. Could definitely make something to do that, but Shelly 1s are pretty inexpensive and I’ve had really good luck with them (plus they integrate easily into HA or you can flash them with ESPHome). Additionally, I don’t really think it’s wise putting a homemade device in the wall hooked up to mains power.
https://www.shelly.cloud/en-us/products/product-overview/shelly-1-ul
Bummer. Did you try searching other sites for a Shelly 1? A quick Google search made it look like it was possible, but obviously I can’t actually test it out without going through with an order (and I didn’t check to see if the price was reasonable).