Alarm system 'wiki'

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

maomanna
Posts: 94
Joined: Monday 30 November 2015 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm system 'wiki'

Post by maomanna »

"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!)
spyseiko
Posts: 12
Joined: Tuesday 05 January 2016 14:51
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4967
Contact:

Re: Alarm system 'wiki'

Post by spyseiko »

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 ?
Attachments
domoticz_events.jpg
domoticz_events.jpg (25.3 KiB) Viewed 7074 times
maomanna
Posts: 94
Joined: Monday 30 November 2015 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm system 'wiki'

Post by maomanna »

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?
johnnie
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'

Post by johnnie »

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
Raspi 3B+; Razberry zwave; zigbee; lots and lots of sensors
spyseiko
Posts: 12
Joined: Tuesday 05 January 2016 14:51
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4967
Contact:

Re: Alarm system 'wiki'

Post by spyseiko »

This is my config.

Alarm Off
AlarmOff.JPG
AlarmOff.JPG (39.93 KiB) Viewed 6986 times
MotionDetection
MotionDetection.JPG
MotionDetection.JPG (50.21 KiB) Viewed 6986 times
SetAlarm
SetAlarm.JPG
SetAlarm.JPG (20.44 KiB) Viewed 6986 times
spyseiko
Posts: 12
Joined: Tuesday 05 January 2016 14:51
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4967
Contact:

Re: Alarm system 'wiki'

Post by spyseiko »

Set Siren
SetSiren.JPG
SetSiren.JPG (32.3 KiB) Viewed 6984 times
Sound Siren
SoundSiren.JPG
SoundSiren.JPG (27.19 KiB) Viewed 6984 times
maomanna
Posts: 94
Joined: Monday 30 November 2015 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm system 'wiki'

Post by maomanna »

in soundSiren you did not specify your siren itself.

Maybe it is in your case to set it to panic instead of On.
spyseiko
Posts: 12
Joined: Tuesday 05 January 2016 14:51
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4967
Contact:

Re: Alarm system 'wiki'

Post by spyseiko »

Thanks, will try it asap.
User avatar
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'

Post by heggink »

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 :-)
User avatar
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'

Post by nayr »

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 ?
Check that box "Event Active" and save, if they are red they are not active and will not be executed.
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
User avatar
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'

Post by Egregius »

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 :-(.
Can you switch it of in the GUI?
User avatar
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'

Post by heggink »

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 :-)
User avatar
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'

Post by Egregius »

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.
User avatar
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'

Post by heggink »

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 :-)
User avatar
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'

Post by Egregius »

Try url's like these (look at the wiki)

json.htm?type=command&param=udevice&idx=123&nvalue=0&svalue=Off
json.htm?type=command&param=resetsecuritystatus&idx=123&switchcmd=Normal
spyseiko
Posts: 12
Joined: Tuesday 05 January 2016 14:51
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4967
Contact:

Re: Alarm system 'wiki'

Post by spyseiko »

Thanks for all advices, Alarm system is working perfect now. :D
maomanna
Posts: 94
Joined: Monday 30 November 2015 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm system 'wiki'

Post by maomanna »

I combined the blockly's from 5/6 blockly's to 1.

Image

I see a little mistake:
I used 2 times PIR_SKvoor.
I changed it to my other PIR.
spyseiko
Posts: 12
Joined: Tuesday 05 January 2016 14:51
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4967
Contact:

Re: Alarm system 'wiki'

Post by spyseiko »

Looks good, does is slow down triggers in anyway ?
maomanna
Posts: 94
Joined: Monday 30 November 2015 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm system 'wiki'

Post by maomanna »

No, not mentionable at least.
I only need to add Write to Log, so it is clear what is happening.
User avatar
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'

Post by heggink »

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...
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 :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest