Do not trigger action if...

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
sion
Posts: 113
Joined: Friday 08 January 2016 12:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Do not trigger action if...

Post by sion »

Have a read through here: https://www.domoticz.com/forum/viewtopic.php?t=8495

And also here
https://www.domoticz.com/forum/viewtopi ... 28&t=15822

They are talking about updating the status of a virtual switch without triggering it the events linked to it.

If you use:


commandArray["UpdateDevice"] = "54|0|Off"

commandArray["UpdateDevice"] = "54|1|On"

where 54 = IDx of the switch
where 0 is the N value
where "Off" is the S value

It should update the status of the switch without triggering any events.
running domoticz 3.4834 on rpi2, with
Hue bridge / bulbs.
lightwave rf sockets, mood controlers, sensors & contacts.
Home bridge / Siri.
Ha bridge / echo Alexa.
Hard wired alarm system - setting home / away status.

Next: harmony hub.
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Do not trigger action if...

Post by dannybloe »

This is quite interesting. I'll add a silent argument to the switchOn() and switchOff() methods:

Code: Select all

myDevice.switchOn(true) -- will not trigger events
In the meantime you can do this:

Code: Select all

mySwitch.update(0, 'Off') 
mySwitch.update(1, 'On') 
Do NOT fiddle directly with commandArrays in dzVents as it most certainly will give you nasty side effects! Always use the api (domoticz.sendCommand() or device.update())
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
bimse
Posts: 21
Joined: Sunday 05 February 2017 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: Model 3
Contact:

Re: Do not trigger action if...

Post by bimse »

Will there be the same option with domoticz.devices('Security Panel').armAway()
Translated with google
Post Reply

Who is online

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