Thanks, I've got something working now using this method.jake wrote: Wednesday 14 February 2018 13:38 A workaround is to let your script set a variable (or dzVents: persistent data), which you can check when you manually switch. In that case there will be no update of the variable
Search found 5 matches
- Wednesday 14 February 2018 19:04
- Forum: dzVents
- Topic: Ignore device events that are triggered by a script
- Replies: 8
- Views: 976
Re: Ignore device events that are triggered by a script
- Tuesday 13 February 2018 19:47
- Forum: dzVents
- Topic: Ignore device events that are triggered by a script
- Replies: 8
- Views: 976
Re: Ignore device events that are triggered by a script
Do you know if there is a workaround for this earlier version of dzvents?
- Tuesday 13 February 2018 18:52
- Forum: dzVents
- Topic: Ignore device events that are triggered by a script
- Replies: 8
- Views: 976
Re: Ignore device events that are triggered by a script
Ah, that must be it. I'm on:
Domoticz 3.8153
Dzvents 2.2.0
and silent() was added in 2.3.0.
I did check for updates but it says there are none available. It might be because I'm running on a synoloy.
Domoticz 3.8153
Dzvents 2.2.0
and silent() was added in 2.3.0.
I did check for updates but it says there are none available. It might be because I'm running on a synoloy.
- Tuesday 13 February 2018 18:33
- Forum: dzVents
- Topic: Ignore device events that are triggered by a script
- Replies: 8
- Views: 976
Re: Ignore device events that are triggered by a script
Thanks for the fast reply. I'm sorry I missed that section of the docs before.
I've tried appending the silent command to the switchOn() function:
domoticz.devices(dev .. ' Radiator').switchOn().silent()
but it crashes with the error:
attempt to call field 'silent' (a nil value)
I've tried appending the silent command to the switchOn() function:
domoticz.devices(dev .. ' Radiator').switchOn().silent()
but it crashes with the error:
attempt to call field 'silent' (a nil value)
- Monday 12 February 2018 20:12
- Forum: dzVents
- Topic: Ignore device events that are triggered by a script
- Replies: 8
- Views: 976
Ignore device events that are triggered by a script
I have a relay that is triggered by a timer, and also by a hardware event (a button press). If the relay is turned on by the timer script, the device script will fire again. The problem is that I have no way of distinguishing when I physically press the relay button vs when my timer script turns the ...