siren duration set in seconds instead of minutes
Moderator: leecollings
-
- Posts: 11
- Joined: Wednesday 09 March 2016 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3
- Location: Oosterhout
- Contact:
siren duration set in seconds instead of minutes
Hey there, my first topic here.
I want to know if a door is opend, so i made a blocky.
When the door is opend the sirene Aeotec Gen5 will go on.
When the door is closed the sirene will go off. I set the time for max 1 minute in case the door is open all the time.
However, 1 minute is too long. I wish it could be 5 seconds, but this is not possible in blocky.
Can somebody help me to set the 1 minute time into 5 seconds? Please give me a step by step answer
By the way the virtual switch only changes the sound theme.
I want to know if a door is opend, so i made a blocky.
When the door is opend the sirene Aeotec Gen5 will go on.
When the door is closed the sirene will go off. I set the time for max 1 minute in case the door is open all the time.
However, 1 minute is too long. I wish it could be 5 seconds, but this is not possible in blocky.
Can somebody help me to set the 1 minute time into 5 seconds? Please give me a step by step answer
By the way the virtual switch only changes the sound theme.
- Attachments
-
- Blocky - schuurdeur.JPG (43.61 KiB) Viewed 1800 times
Nooby user with
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
-
- Posts: 84
- Joined: Saturday 05 March 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: siren duration set in seconds instead of minutes
Hello,
maybe you could add another blocky to set the Siren Off after 5 secs ?
if "Siren AEOTEC" = "On"
do Set "Siren AEOTEC" = "Off" After 5 seconds
meaning "if the siren goes on, put it off after 5 secs"
The "Set FOR" is in minutes, the "Set AFTER" is in secs (exactly for the type of problem you encounter ...)
Bye, Geo
maybe you could add another blocky to set the Siren Off after 5 secs ?
if "Siren AEOTEC" = "On"
do Set "Siren AEOTEC" = "Off" After 5 seconds
meaning "if the siren goes on, put it off after 5 secs"
The "Set FOR" is in minutes, the "Set AFTER" is in secs (exactly for the type of problem you encounter ...)
Bye, Geo
-
- Posts: 11
- Joined: Wednesday 09 March 2016 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3
- Location: Oosterhout
- Contact:
Re: siren duration set in seconds instead of minutes
Thanks georgesattali,
I have got it working now.
I have got it working now.
Nooby user with
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
-
- Posts: 11
- Joined: Wednesday 09 March 2016 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3
- Location: Oosterhout
- Contact:
Re: siren duration set in seconds instead of minutes
Works great, but wen i leave the door open, the scene activates time after time. So the sirene goes on for 3 seconds and A minute later again voor 3 seconds ans so on.
Is there A scene command to stop this loop?
Is there A scene command to stop this loop?
Nooby user with
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
-
- Posts: 2
- Joined: Thursday 19 May 2016 9:17
- Target OS: -
- Domoticz version:
- Contact:
Re: siren duration set in seconds instead of minutes
Cant you use a virtual switch? When door openend and vswitch is off, sound alarm and set vswitch to on. When door closed, vswitch to off
Sent from my MI 4LTE using Tapatalk
Sent from my MI 4LTE using Tapatalk
-
- Posts: 11
- Joined: Wednesday 09 March 2016 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3
- Location: Oosterhout
- Contact:
Re: siren duration set in seconds instead of minutes
Thanks bijnavoornix, i will give it a try.
Nooby user with
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
-
- Posts: 135
- Joined: Friday 02 January 2015 9:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands
- Contact:
Re: siren duration set in seconds instead of minutes
I would use a variable to prevent retriggering
something like 'schuurdeur_opnieuw_sirene_triggeren?' which you set to 'ja' or 'nee' (or 1/0 if you're using an integer variable)
It could be something like:
something like 'schuurdeur_opnieuw_sirene_triggeren?' which you set to 'ja' or 'nee' (or 1/0 if you're using an integer variable)
It could be something like:
Code: Select all
If [schuurdeur = Open] and [var schuurdeur_opnieuw_sirene_triggeren? = ja]
Do Set [Sirene = On]
Set [Sirene = Off after 5 seconds]
Set [var schuurdeur_opnieuw_sirene_triggeren? = nee]
Elseif [schuurdeur = Closed] and [var schuurdeur_opnieuw_sirene_triggeren? = nee]
Do Set [var schuurdeur_opnieuw_sirene_triggeren? = ja]
-
- Posts: 11
- Joined: Wednesday 09 March 2016 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3
- Location: Oosterhout
- Contact:
Re: siren duration set in seconds instead of minutes
I have to many "and" conditions in blocky, so i guess i better try tozzke's sollution.
Thanks.
Thanks.
Nooby user with
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
-
- Posts: 11
- Joined: Wednesday 09 March 2016 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3
- Location: Oosterhout
- Contact:
Re: siren duration set in seconds instead of minutes
My scene seams to be corrupt. Made a new one and made a dummy switch. Works great. Thanks
Nooby user with
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
-
- Posts: 11
- Joined: Wednesday 09 March 2016 20:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3
- Location: Oosterhout
- Contact:
Re: siren duration set in seconds instead of minutes
I cannot find "the green checkmark 'Mark topic as solved' at the post" to close this post.
Please close this post.
Please close this post.
Nooby user with
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
RPI2B / Aeotec Z-Stick gen5 / Aeon Sirene gen5 / FGSD002/ Fibaro door-window sensor / Fibaro Universal Binary Sensor / Keypad MG36B / Vison ZS5101 /Aeotec recessed door and window sensor with zwave plus / Weather Underground
Who is online
Users browsing this forum: No registered users and 0 guests