Alarm system 'wiki'
Moderator: leecollings
-
- Posts: 94
- Joined: Monday 30 November 2015 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm system 'wiki'
"Iemand Thuis" is a dummyswitch which is triggered by a pingscript.
Both smartphones (my wife's and mine) have static ip.
If one of the smartphones is pingable (in range of the wifinetwork) it turns the dummyswitch on.
If both smartphones are away (even when wifi is turned off) it sets the dummyswitch to Off.
But it seems that the script is crashing my domoticz at about 23:00 in the evening.
So i'd like to find another option to check of someone is home (and not the burgular!)
Both smartphones (my wife's and mine) have static ip.
If one of the smartphones is pingable (in range of the wifinetwork) it turns the dummyswitch on.
If both smartphones are away (even when wifi is turned off) it sets the dummyswitch to Off.
But it seems that the script is crashing my domoticz at about 23:00 in the evening.
So i'd like to find another option to check of someone is home (and not the burgular!)
-
- Posts: 12
- Joined: Tuesday 05 January 2016 14:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2.4967
- Contact:
Re: Alarm system 'wiki'
Ok. That makes sense.
I've created all blockly's but whatever i try i can't seem te trigger the alarm sirene.
The sirene only seems to work when i manually set in "on".
Are all you're blockly's in one event or are they all saved as different events like i did ?
I've created all blockly's but whatever i try i can't seem te trigger the alarm sirene.
The sirene only seems to work when i manually set in "on".
Are all you're blockly's in one event or are they all saved as different events like i did ?
- Attachments
-
- domoticz_events.jpg (25.3 KiB) Viewed 7073 times
-
- Posts: 94
- Joined: Monday 30 November 2015 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm system 'wiki'
You made all the dummyswitches?
Can you post all your blocklys? Maybe something is wrong.
I'd like to add another thing to my blockly but dont know how. When the siren is panicing my ip cam needs to send me a picture. How do i do that?
Can you post all your blocklys? Maybe something is wrong.
I'd like to add another thing to my blockly but dont know how. When the siren is panicing my ip cam needs to send me a picture. How do i do that?
-
- Posts: 37
- Joined: Wednesday 10 December 2014 21:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Netherlands
- Contact:
Re: Alarm system 'wiki'
Hi heggink and off course all other members.
I love the simplicity of approach and setting this up with Lua scripts and blockly.
As I'm quite new to Lua, I've followed you're wiki exactly, but the Lua scripts MCS and PIR aren't updating the user-variables!? (I've named my sensors starting with PIR_ and MCS_)
Is there an easy way to test the script step by step?
BTW: I've read that after upgrade from Beta there seems to be an bug? What I also noticed is that in Domoticz shows the setting of the user-variables is between "value" (quotes) is this correct behaviour?? => figured this out....is dependig the blockly variable you're using
tia John
I love the simplicity of approach and setting this up with Lua scripts and blockly.
As I'm quite new to Lua, I've followed you're wiki exactly, but the Lua scripts MCS and PIR aren't updating the user-variables!? (I've named my sensors starting with PIR_ and MCS_)
Is there an easy way to test the script step by step?
BTW: I've read that after upgrade from Beta there seems to be an bug? What I also noticed is that in Domoticz shows the setting of the user-variables is between "value" (quotes) is this correct behaviour?? => figured this out....is dependig the blockly variable you're using

tia John
Raspi 3B+; Razberry zwave; zigbee; lots and lots of sensors
-
- Posts: 12
- Joined: Tuesday 05 January 2016 14:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2.4967
- Contact:
Re: Alarm system 'wiki'
This is my config.
Alarm Off
MotionDetection
SetAlarm
Alarm Off
MotionDetection
SetAlarm
-
- Posts: 12
- Joined: Tuesday 05 January 2016 14:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2.4967
- Contact:
Re: Alarm system 'wiki'
Set Siren
Sound Siren
Sound Siren
-
- Posts: 94
- Joined: Monday 30 November 2015 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm system 'wiki'
in soundSiren you did not specify your siren itself.
Maybe it is in your case to set it to panic instead of On.
Maybe it is in your case to set it to panic instead of On.
-
- Posts: 12
- Joined: Tuesday 05 January 2016 14:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2.4967
- Contact:
Re: Alarm system 'wiki'
Thanks, will try it asap.
- heggink
- Posts: 977
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Alarm system 'wiki'
Has anyone figured out a way to switch off the keypad through lua or blocky? I want to automate the alarm switching off when a known phone connects to the wifi (simple) but I cannot find a way to switch off the keypad other that through rfid tag/PIN
.

Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
- nayr
- Posts: 354
- Joined: Tuesday 11 November 2014 18:42
- Target OS: Linux
- Domoticz version: github
- Location: Denver, CO - USA
- Contact:
Re: Alarm system 'wiki'
Check that box "Event Active" and save, if they are red they are not active and will not be executed.spyseiko wrote:Ok. That makes sense.
I've created all blockly's but whatever i try i can't seem te trigger the alarm sirene.
The sirene only seems to work when i manually set in "on".
Are all you're blockly's in one event or are they all saved as different events like i did ?
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Alarm system 'wiki'
Can you switch it of in the GUI?heggink wrote:Has anyone figured out a way to switch off the keypad through lua or blocky? I want to automate the alarm switching off when a known phone connects to the wifi (simple) but I cannot find a way to switch off the keypad other that through rfid tag/PIN.
- heggink
- Posts: 977
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Alarm system 'wiki'
nope.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Alarm system 'wiki'
Hmmm, I would have sayed look up the command the button sends...
You could try some of the udevice or reset security JSON calls. Not sure if it will work, my minimote can't be switched in the GUI either but it reacts on a udevice call.
You could try some of the udevice or reset security JSON calls. Not sure if it will work, my minimote can't be switched in the GUI either but it reacts on a udevice call.
- heggink
- Posts: 977
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Alarm system 'wiki'
not sure I understand. For a z-wave device? D sends a zwave command...
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Alarm system 'wiki'
Try url's like these (look at the wiki)
json.htm?type=command¶m=udevice&idx=123&nvalue=0&svalue=Off
json.htm?type=command¶m=resetsecuritystatus&idx=123&switchcmd=Normal
json.htm?type=command¶m=udevice&idx=123&nvalue=0&svalue=Off
json.htm?type=command¶m=resetsecuritystatus&idx=123&switchcmd=Normal
-
- Posts: 12
- Joined: Tuesday 05 January 2016 14:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2.4967
- Contact:
Re: Alarm system 'wiki'
Thanks for all advices, Alarm system is working perfect now. 

-
- Posts: 94
- Joined: Monday 30 November 2015 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm system 'wiki'
I combined the blockly's from 5/6 blockly's to 1.

I see a little mistake:
I used 2 times PIR_SKvoor.
I changed it to my other PIR.

I see a little mistake:
I used 2 times PIR_SKvoor.
I changed it to my other PIR.
-
- Posts: 12
- Joined: Tuesday 05 January 2016 14:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2.4967
- Contact:
Re: Alarm system 'wiki'
Looks good, does is slow down triggers in anyway ?
-
- Posts: 94
- Joined: Monday 30 November 2015 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm system 'wiki'
No, not mentionable at least.
I only need to add Write to Log, so it is clear what is happening.
I only need to add Write to Log, so it is clear what is happening.
- heggink
- Posts: 977
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Alarm system 'wiki'
this must be the mother of all blocky's haha
. Nice.
Unfortunately, I am a bit tied for time ATM. Otherwise I would have updated the Alarm wiki to include my new setup (dummy devices rather than variables, some extra functionalities). The downside is that it's grown quite a bit (very functional and as good as a commercial grade alarm with much more ability to report/control) and someone should really try it a-z to check if nothing is missing...

Unfortunately, I am a bit tied for time ATM. Otherwise I would have updated the Alarm wiki to include my new setup (dummy devices rather than variables, some extra functionalities). The downside is that it's grown quite a bit (very functional and as good as a commercial grade alarm with much more ability to report/control) and someone should really try it a-z to check if nothing is missing...
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Who is online
Users browsing this forum: No registered users and 1 guest