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.
Do not trigger action if...
Moderator: leecollings
-
- Posts: 113
- Joined: Friday 08 January 2016 12:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Do not trigger action if...
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.
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.
-
- 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...
This is quite interesting. I'll add a silent argument to the switchOn() and switchOff() methods:
In the meantime you can do this:
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())
Code: Select all
myDevice.switchOn(true) -- will not trigger events
Code: Select all
mySwitch.update(0, 'Off')
mySwitch.update(1, 'On')
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
-
- 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...
Will there be the same option with domoticz.devices('Security Panel').armAway()
Translated with google
Who is online
Users browsing this forum: Bing [Bot] and 1 guest