howto program this logic ?
Posted: 04 Oct 2018 21:22
Hello i have a raspberry 3 with the razberry 2 and a number of sensors, and it is all working well, but i have a problem programming for a special event.
Now the problem i have - it is simple logic, and i am not a programmer .. but i can do some scrips if necessary.
I need a switch to turn on once for 5 seconds if a binary sensor goes on.
The "if then" can only turn on the switch, but not limit it to 5 seconds. I tried to look at several apps, but did not find any to do the trick.
The elaborate description is that i have a ventilator in the toilet window, that i want to turn on every time the toilet door opens. The ventilator is working now with a string to pull, and has an adjustable timer set to 5 minutes.
So i need the event from the door sensor to switch on the switch in the fan as if someone pulled the string The fan "likes" the string to stay pulled for about 5 seconds before starting the fan. You could argue i should have put a presence detector instead, but i do not like the idea of sensors in the toilet room
My environment - i took the beta
Firmware version v3.0.0-rc16
to resolve a problem where 237 were crashing, and indeed v3 is not crashing.
Running on raspberry3, raspbian stretch with razberry 2
Now the problem i have - it is simple logic, and i am not a programmer .. but i can do some scrips if necessary.
I need a switch to turn on once for 5 seconds if a binary sensor goes on.
The "if then" can only turn on the switch, but not limit it to 5 seconds. I tried to look at several apps, but did not find any to do the trick.
The elaborate description is that i have a ventilator in the toilet window, that i want to turn on every time the toilet door opens. The ventilator is working now with a string to pull, and has an adjustable timer set to 5 minutes.
So i need the event from the door sensor to switch on the switch in the fan as if someone pulled the string The fan "likes" the string to stay pulled for about 5 seconds before starting the fan. You could argue i should have put a presence detector instead, but i do not like the idea of sensors in the toilet room
My environment - i took the beta
Firmware version v3.0.0-rc16
to resolve a problem where 237 were crashing, and indeed v3 is not crashing.
Running on raspberry3, raspbian stretch with razberry 2