So I know this question has probably been asked a ton of times but I couldnt find what I needed for my use case.
My current setup looks like the following:
Smart Light bulb correctly integrated in homeassistant and physical switch bypassed so light is always getting mains power.
Physical wall switch connected to sonoff mini smart switch and state of smart switch is used to toggle light. (output of smart switch is not connected)
Previously, I handled this through automations in HA and the whole thing worked alright, If sonoff is off, turn light on. If sonoff is on, turn light on.
The thing is that I later found out about Node Red and wanted to recreate all my automations there as it's more visual and more flexible (still have to learn how to use it properly to its full potential).
I have recreated the automations for each room to trigger based on when the state changes and enabling inching settings in ewelink app. This works for the most part except when the lights turn off immediately after turning them on from the light switch on the wall. The opposite is also true. Apparently happens only to me as my family members have not reported any issues 🙂
Now my question is, what is the best way to implement this functionality without changing physical switches? I want to maintain the same look. And what is the best approach in detail to automate this in Node red? I am open to all kinds of suggestions, I don't mind changing how this system fundamentally works if it means its more stable. Thank you all
#Light automations
1 messages · Page 1 of 1 (latest)
If you're using sonoff minis, there's no need to disconnect the load/line. Just turn on "disconnect relay" on it. This way, your system is still code compliant. Also, if the smart lights and the relay are zigbee, look into bindings.
Thanks for the tips mate, I don't have the disconnect relay mode. Mine are not the zigbee ones, I don't know if thats a feature only available on those. In "Switch Mode", I only get "External trigger mode" which is set to Following mode. I have cheked for updates. Will probably get some newer ones, but for the rest thats how everybody does this right?
Yeah. I have several of the zigbee mini sonoff relays, and they all offer relay disconnect. I avoid wifi devices where I can.
Even cheap zigbee devices can be kept local, while cheap wifi devices can call home, and many will even disable themselves if you block them.
Yeah I also dont want to get too much wifi stuff but zigbee2mqtt is kinda broken on my system as previously I used the default zigbee integration and that switch from one to the other didnt go well. The old one still asks to be repaired and zigbee2mqtt is sometimes unstable as it can just crash and not start again, then after a system reboot it's all okay. I am still kinda learning with a pi4 and will make everything from scratch in a proxmox machine and I hope with a clean install zigbee will be more stable
I just use the integrated ZHA one, not z2m. I have zero issues there running everything on a rpi5
i also had no issues mostly with buttons etc but some things on some devices didnt work for example an aqara motion sensor wouldnt send its state
Yeah. I've heard aqara can be picky, so I just won't buy them.