- List item
Want to create various pistons for arrival but can not get piston to trigger when I add the presence sensor part. can anyone help with this?
Want to create various pistons for arrival but can not get piston to trigger when I add the presence sensor part. can anyone help with this?
just change a couple of things it should work…
IF presense sensor 1 presense changes to PRESENT
and
IF time is between X and Y
and
IF Contact sensor B contact is OPEN
then
keypad 3
Turn On
The only thing different I can see is the time unsure what the if between does and unsure how to input the if time.
The problem with this one is you have two triggers. Each of those ‘changes’ only stay active for a few seconds before they become ‘is’. depending on the accuracy of your presence sensor, it is highly unlikely both of these conditions will be ‘changing’ at the same time. Based on my experience using my phone for presence sensor, I think you would be better off using the contact opening for your trigger. Something like this:
if
contact sensor 6 changes to open. <--- trigger
and
Presence Sensor 1 presence is present. <--- condition
then
turn on
end if
regarding your time constraint earlier, I am not sure if any time can be between sunset and sunrise. Based on other discussions I have seen, I think you have to say between sunset and nextsunrise. But I’m just a newbie. @WCmore could tell you for sure.
To input the ‘if time’, you use a condition on the if statement using the virtual device ‘time’ and then you can make comparisons.
I agree with @guxdude about the presence sensor.
Actually in my experience, presence sensor can wait up to a minute or two before registers, in that case your sensor 6 will be opened and closed (assuming) and the piston will never execute.
I had a piston once, where presence sensor changes to active, outside lights would turn on (After the gate, driving to the main entrance) 5 out of 10 the lights would turn on minutes AFTER we entered the house.
I would never depend on presence sensors to execute a piston that timing matters.