I use both Home Assistant and Hubitat, with Hubitat being my main hub, as it has all the radios (I have already ordered a miniPC, just waiting to make the transition).
My setup (for this case) is:
- Shelly Wall Button 2
- Shelly 2PM WiFi
- 3 IKEA Tradfri Smart Plugs (connected via Hubitat)
- Regular Ceiling (lights connected via Shelly 2PM)
It was a bit tricky at first, but I managed to setup the 2PM on the Wall Plate with two button (so one button for each switch).
For the ceiling lights, I managed to create an automation of whenever the button is pressed, toggle between on/off. This one wasn’t so hard as they lights were already grouped and hooked up to the same wire, so technically I didn’t even need an automation, I could’ve just left it as a button.
The hard part is the lamps, which are connected via smart plugs.
I tried duplicating the first automation that seems to work flawlessly, but no type of “toggle” option seems to work with these plugs. I had to configure for a press to turn on and a long press to turn off. I’ve already tried a conditional automation (if lights are off, turn on, else turn off), still didn’t work.
Is this a known issue? Is there a workaround? Can anyone point me in the right direction? I would appreciate any feedback.