Hi everyone, I have just installed HA and connected it to the 6 Shelly 1PM Mini I have installed behind light switches. In the sockets there are Philip Hue lights. The Shellies are setup as detached switches, so the lights are constantly connected to power and can be controlled by hue hardware, Alexa, or Home Assistant directly. The Switches are also supposed to work - and they actually do. Problem: I cannot find a trigger, that senses a “switch” in the shelly input. So I did a dirty trick. The triggers for toggling the light state is:
When Shelly Input 0 powered
When Shelly Input 0 not powered
These are not events, but states of the input. Every night at 3:02.15 exactly all my switches are triggered. So every night it is bright as day until I scream “Alexa, switch off all lights” Do you have a solution?
Go to Settings → Devices & Services, find the Shelly integration and click on one of your switch devices. That should list all the entities associated with the device. There should be a switch that follows the switch button state. You can use a state trigger with that.
Thanks for the info. I have used that already. I can read the switch state. But the fundamental problem ist, that I have no Idea how to properly sense a change in the state. Since it is a detatched switch, and power for the smart bulbs is constantly on, i want to react to every change of the switch status, with a switch in the light status.
So the following state of events can happen:
Initially: Switch off, Lights off
I switch the switch on - Lights go on
I switch the lights off through other means or another automation then the switch (timed, alexa etc.) - Light go off
I switch the switch to the off position - Lights go on again.
So there ist no direct connection between the switch status and the light status. I just want to know when the switch toggles.