Sorry of this has been addressed before but is my understanding correct that dzvents has no udevice-type update mechanism i.e. updates ALWAYS trigger any scripts defined in actions?
I have some bash scripts that I would like to convert to dzvents that update devices through udevice such that any scripts are not executed and the device state is only updated (these are dummy devices where the state sometimes gets out of sync).
I can't seem to find how to replicate this other than through a os.execute(json) call .
H
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
heggink wrote: Friday 24 August 2018 11:39
Sorry of this has been addressed before but is my understanding correct that dzvents has no udevice-type update mechanism i.e. updates ALWAYS trigger any scripts defined in actions?
I have some bash scripts that I would like to convert to dzvents that update devices through udevice such that any scripts are not executed and the device state is only updated (these are dummy devices where the state sometimes gets out of sync).
When using the command option silent() , no follow-up action is triggered. Would this help you ?
Ideally yes but if a device is configured with executing a (non dzvents) script (e.g.bash) then these still get executed !
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
heggink wrote: Friday 24 August 2018 13:11
Ideally yes but if a device is configured with executing a (non dzvents) script (e.g.bash) then these still get executed !
Not a real native solution but maybe this will help ?
It's a bit more elegant than my os.execute (some curl command) so I will adopt that (thanks!).
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)