My block event script doesnt work ..

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
skunk
Posts: 4
Joined: Friday 13 November 2015 9:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: swiss
Contact:

My block event script doesnt work ..

Post by skunk »

Hello People,

I followed on the internet tutorials to make automatic action with the GUI "EVENT " but I do not understand why ... It does not work !
To understand , I want when I active a switch, another is automatically activated ... but it does not work ...

My Equipement :
Raspberry pi 2 B (Os RaspBian)

Usb Key :
OpenZwave Usb

Switch :
GreenWave PowerNode 6 port

Sensor :
Aeotec MultiSensor 6

And My script is in attached file ..

Thank you for your great help !

SK,
Attachments
boxy.PNG
boxy.PNG (7.53 KiB) Viewed 1125 times
skunk
Posts: 4
Joined: Friday 13 November 2015 9:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: swiss
Contact:

Re: My block event script doesnt work ..

Post by skunk »

Maybe domoticz has no rights fort execute the script ?
User avatar
wboerhoop
Posts: 8
Joined: Friday 06 February 2015 12:41
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: My block event script doesnt work ..

Post by wboerhoop »

Hi,

Why don't you try:
if ventilateur = on AND test = off
set test = on


suc6
RFXcom-433E last FW
Aeon Z-stick Gen5
Zigbee
Synology and Raspberry Pi4 last Beta
User avatar
jcjames13009
Posts: 33
Joined: Monday 09 March 2015 15:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: France / Marseille
Contact:

Re: My block event script doesnt work ..

Post by jcjames13009 »

Hi Skunk

Try using
If Do.PNG
If Do.PNG (1.54 KiB) Viewed 1097 times
Instead of
If Do Else 1.PNG
If Do Else 1.PNG (1.93 KiB) Viewed 1097 times
Which I guess is waiting for an "else if" condition
If Do Else 2.PNG
If Do Else 2.PNG (7.41 KiB) Viewed 1097 times
JC
skunk
Posts: 4
Joined: Friday 13 November 2015 9:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: swiss
Contact:

Re: My block event script doesnt work ..

Post by skunk »

Hello,

Thanks for your replies, now it's working.

I have just activate the polling in my sensor ...

I don't know why the polling is important for this action ?

Best regard's,
vivoraju
Posts: 1
Joined: Wednesday 07 February 2018 10:55
Target OS: Linux
Domoticz version:

Re: My block event script doesnt work ..

Post by vivoraju »

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest