Page 2 of 5

Re: Alarm system 'wiki'

Posted: Wednesday 06 January 2016 13:51
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!)

Re: Alarm system 'wiki'

Posted: Thursday 07 January 2016 9:14
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 ?

Re: Alarm system 'wiki'

Posted: Thursday 07 January 2016 23:01
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?

Re: Alarm system 'wiki'

Posted: Friday 08 January 2016 22:29
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

Re: Alarm system 'wiki'

Posted: Monday 11 January 2016 21:25
by spyseiko
This is my config.

Alarm Off
AlarmOff.JPG
AlarmOff.JPG (39.93 KiB) Viewed 7243 times
MotionDetection
MotionDetection.JPG
MotionDetection.JPG (50.21 KiB) Viewed 7243 times
SetAlarm
SetAlarm.JPG
SetAlarm.JPG (20.44 KiB) Viewed 7243 times

Re: Alarm system 'wiki'

Posted: Monday 11 January 2016 21:27
by spyseiko
Set Siren
SetSiren.JPG
SetSiren.JPG (32.3 KiB) Viewed 7241 times
Sound Siren
SoundSiren.JPG
SoundSiren.JPG (27.19 KiB) Viewed 7241 times

Re: Alarm system 'wiki'

Posted: Monday 11 January 2016 22:17
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.

Re: Alarm system 'wiki'

Posted: Monday 11 January 2016 22:35
by spyseiko
Thanks, will try it asap.

Re: Alarm system 'wiki'

Posted: Monday 18 January 2016 20:08
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 :-(.

Re: Alarm system 'wiki'

Posted: Tuesday 19 January 2016 0:08
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.

Re: Alarm system 'wiki'

Posted: Tuesday 19 January 2016 6:31
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?

Re: Alarm system 'wiki'

Posted: Tuesday 19 January 2016 12:07
by heggink
nope.

Re: Alarm system 'wiki'

Posted: Tuesday 19 January 2016 12:17
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.

Re: Alarm system 'wiki'

Posted: Tuesday 19 January 2016 12:53
by heggink
not sure I understand. For a z-wave device? D sends a zwave command...

Re: Alarm system 'wiki'

Posted: Tuesday 19 January 2016 19:53
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

Re: Alarm system 'wiki'

Posted: Tuesday 19 January 2016 23:10
by spyseiko
Thanks for all advices, Alarm system is working perfect now. :D

Re: Alarm system 'wiki'

Posted: Wednesday 20 January 2016 12:57
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.

Re: Alarm system 'wiki'

Posted: Wednesday 20 January 2016 15:53
by spyseiko
Looks good, does is slow down triggers in anyway ?

Re: Alarm system 'wiki'

Posted: Wednesday 20 January 2016 15:56
by maomanna
No, not mentionable at least.
I only need to add Write to Log, so it is clear what is happening.

Re: Alarm system 'wiki'

Posted: Wednesday 20 January 2016 18:14
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...