I use binary sensor which is sensor motion from Integration alarm Satel with HA. Motion Sensors i am sure that is tripped only one. WHen i create manual automation it works ok but on your schema not working.
Please try now… I had to mess with a bunch of the code to get it to work right… but does seem to be working correctly now… (testing in my house anyway)
Hi
Is any chance to do when motion detect and turn on switch example for 5 min and under this 5min motion also again detect motion then time i reset and from this time again count 5 min ? Summary after again motion detect reset time and start time from beginning. Is any chance ?
Now blueprint works ok
Next question…Is any chance to add as condition optio to set time betwen which hours this switch start and also when example other switch is not turn ON ?
Also i have a question. Can you help me how write this automation as this blueprint where timer is restart every detect motion ? Because if i know how i can write automation for me with setup time hours betwen it works and when other switch is off. Please and thanks.
at this time, you cant pick the hours that this will run… but ill look at adding it as a possible add-on. The sun elevation is a pretty good indicator of need if it’s lighting though… and effectively acts as a “time of day” requirement… if you want something turning on or off at times outside of the default, just move the sun elevation slider (default is 3 degrees above horizon… you can set this as high or low as you want to simulate times of day… 0 degrees is sunrise, any negative value is the sun below the horizon, any positive number is sun above the horizon… noon is dependant on where on earth you are (noon for me right now i think is 45 degrees)