So glad my house doesn't have 2-way switches, seem to complicate the Sonoff installation just more than necessary.
I did end up installing another 2 Mini R2's this weekend but with a twist:
- One is connected to a light which currently has a Yeelight running. The Yeelight is nice in that it can change colors and dim down to "moon mode" which is just a barely there, yellow-ish light. Kids enjoy it as a nightlight.
- Other one is connected to a Yeelight as well, in the bathroom, but just a simple white-with-dimming one. But it is also connected to an extractor fan running on a Sonoff Basic.
So the main problem is, I don't actually want the relays to turn off since I control the Yeelights from Home Assistant. But I do want the physical switch to control the lights. And I do want the ability to actually physically turn off the light/on when Home Assistant is down.
So I ended up flashing Tasmota and using the
button/switch settings and
rules to do the following:
- One click (I use
momentary, dimmer push-buttons instead of throw-switches) - sends a MQTT message to Home Assistant, which then toggles the Yeelight.
- Two clicks - sends an MQTT message directly to the Sonoff Basic to turn on/off the extractor fan
- Click and hold for 2 seconds -- toggle the relay locally/directly (no Home Assistant involved).
Works very well. Going to be installing more momentary push-buttons in the future - it is still familiar enough that most people will be able to just "use the light switch", but it gives you much more options since you can use a lot of additional click-types to do more things...