xury wrote: ↑Tuesday 26 May 2020 22:45
Is there any simple way to get whToday value to node red without using os.execute mosquitto_pub?
the os.execute method is probably easier but if you define a custom sensor and update it with
domoticz.devices('myCustomSensor').setValues(0, dz.devices(119).WhToday, 'parsetrigger')
you will get something like
Code: Select all
1590537677.076390379 - domoticz/out - {
"Battery" : 255,
"RSSI" : 12,
"description" : "",
"dtype" : "General",
"hwid" : "3",
"id" : "00082295",
"idx" : 295,
"name" : "myCustomSensor",
"nvalue" : 0,
"stype" : "Custom Sensor",
"svalue1" : "123.34",
"unit" : 1
in domoticz/out
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>>
dzVents wiki