Hello everyone. I am learning and hoping to get some help with an automation. I have installed a shelly dimmer switch and a shelly motion 2 sensor. I have them in HA and when I use the visual editor to build an automation, it isn’t working. The automation is to turn on the light when there is motion.
Getting the shelly 2 motion sensor into HA was a little tricky and I followed a video here
It looks like HA can tell when motion happen as my card show motion. The light will turn on if I run the automation, but then motion happens, the lights do not come on.
I tried several approaches but have settled on the code below. I use it for five Shelly Motion 2 and two Everything Presence One detectors. It seems to work fine. For the Shelly’s I have set the Motion Blind Time to 2 Minutes. At 5 Minutes there were times when it would not report motion.
Thank you for the replies. I really appreciate this help. I wanted to add a little to the post as this morning when I came into the room, the lights turned on as if the system worked as I expected, however when I manually turned off the light at the wall dimmer, when I got a led light from the shelly motion sensor indicating that it had detected motion, the lights did not turn on. On a bright note (no pun intended) when the lights turned on, the dimmer was set to the 50% where the automation had be set to (reported as 128 value out of 255). I will look through the recommendations you have listed and work on this. Thank you again
Is there a way to use the graphical interface to set an automation to use the state entity rather than the device? I think I got it. Does this look correct?
Thank you for asking. I found this, but since I am new, have not dived into it. I think with time I can figure out what it is saying. Here is what I found
It looks like it triggered twice (which is weird given that the led on the motion sensor was going off many more times than the time points here so I would expect more triggers, but obviously I don’t quite know how it is working)
Take the time to get familiar with it because this will come in handy as you go with HA.
No, it’s not because of being triggered twice, this is status info about the automation itself.
The Step Details and Step Config will help you the most.