I have a camera on my front door that i needs a little help making a automation for if you would please help me. I just want a song to play when someone is at the front door. I have it working but i would like to make it so the automation only triggers when the front door has become shut for over a minute as at the moment the automation fires when people come and go but i only want the automation to fire when they our entering the property i have a contact sensor on the front door. if anyone has any ideas it will help alot thank you
i have the second part of the automation in home assistant just switching a virtual switch on when a person is detected and off when no person is detected
Change the trigger to: Door Closed for 1 minute
Actions - Add at the beginning of what works:
Wait for event: Someone is at the front door song turns On
Keep the rest of what you already have if it works.
thank you for your help i will give your rule a try my own attempt is not working at all at the moment, i have a Kitchen to finish painting so will try later and give you a update thank you
did you mean something like this, it isn't working at the moment have i done something wrong
not sure what i have done it doesn't even work the way i had it before, got it working back the old way but it doesn't like what i am trying to do so must be something wrong with my rule somehow
It hadnt worked this morning, even tho it worked when just testing the virtual Switch, it is almost there but the Automation doesn't want to fire by itself at the moment am i allowed to post both part of my rule the one in hubitat and ha?
this is my first part of the rule then i have a rule to turn on the Virtual Switch when a person is detected but with a condition that the door has to be closed for 1 min
thank you for taking time to help
is it possible to bring the second part of the rule into hubitat and have a condition on the Switch so that it onlt works when the door has been closed for 1 min
I would certainly recommend bringing the second part to Hubitat. The Hubitat part seems to me like it woks as written, so maybe the HA part is an issue? Feel free to post here - there are some community members that have both HE and HA, but unfortunately I am not one of them…
Thank you, i would definitely prefer to bring all Automation into Hubitat, the automation i have does fire sometimes there seems to be a huge delay with the communication between the the servers. If all automation is done under one it must help to make things flow better. I could proberly bring the sensors from ha into hubitat with a driver so all can be done under one
there is somthing wrong with the Hubitat part of the rule its not pausing the contact rule on the door so the song only just sarts for a few seconds before the contact rule interrupt the rule taking place