Page 1 of 1

Alert type device use as switch

Posted: Sunday 03 March 2019 17:13
by JeroNeo
Hello,

I have i think a simple question but i cannot find the solution.
I have Domoticz Beta V 4.10532 installed on a OrangePi Plus 2e with Armbian stretch
I also have a INTEGRA 64 V1.18 with a ETHM-1+ V2.05

i want to use a Alarm detector zone from my INTEGRA to use as a trigger in a Blockly but i cannot select this zone.
the alert zone is added in my device list and i can monitor it's state in the utility state tab.
is there a way to use this in this way? i have searched but did not find the solution how to do this.

Best regards,

Jeroen

(edit, fixed a typo)

Re: Alert type device use as switch

Posted: Sunday 03 March 2019 21:07
by ksacca
Hi,

I'm not using my sensors connected to the satel alarm in blockly. I use them in dzvents with the .color attribute. I would really advise you look into dzvents for scripting as it makes life so much easier.

If you prefer to use blockly, you can achieve this with

if Zone:TestZone (devices, utility) = 3 (logic, the one with "0" prefilled)
Set Lamp = ON

If status is 1, no breach
If status is 3, zone breached (so window open, motion detected, ...)

In the example above, the lamp will be switched on if the zone is breached (if motion is detected)

Re: Alert type device use as switch

Posted: Sunday 03 March 2019 21:44
by JeroNeo
Thank you Ksacca for your full awnser!
i can now controll my IKEA GU10 bulbs Trough my Motion sensor from my alarm :P

Jeroen