It get even funnier. I have 1 script running on that official docker Domoticz test system ( version 2021.1 build 13360).
A copied that script from the examples, nothing special in the script.
- Spoiler: show
-
return {
active = true,
on = {
devices = {
'Internal Temperature'
}
},
execute = function(domoticz, mySensor)
if (mySensor.temperature > 45) then
domoticz.notify('Hey!', 'The house might be on fire!!',
domoticz.PRIORITY_EMERGENCY,
domoticz.SOUND_SIREN)
domoticz.log('Temperatuur boven 45 graden', domoticz.LOG_ERROR)
end
end
}
This is part of the logfile around the error. So the question is why is the Domoticz event system triggered?
Code: Select all
2021-08-14 07:25:40.771 Status: dzVents: Info: Handling events for: "Internal Temperature", value: "42.4"
2021-08-14 07:25:40.771 Status: dzVents: Info: ------ Start external script: get sensor values.lua: Device: "Internal Temperature (Motherboard)", Index: 1
2021-08-14 07:25:40.771 Status: dzVents: Info: ------ Finished get sensor values.lua
2021-08-14 07:25:41.174 zigbee2mqtt: (zigbee2mqtt) MQTT message: zigbee2mqtt/bridge/logging {'level': 'info', 'message': 'MQTT publish: topic \'zigbee2mqtt/AchterdeurSW\', payload \'{"battery":100,"contact":true,"last_seen":"2021-08-14T07:25:40+02:00","linkquality":54,"temperature":25,"voltage":3055}\''}
2021-08-14 07:25:41.174 zigbee2mqtt: (zigbee2mqtt) MQTT message: zigbee2mqtt/AchterdeurSW {'battery': 100, 'contact': True, 'last_seen': '2021-08-14T07:25:40+02:00', 'linkquality': 54, 'temperature': 25, 'voltage': 3055}
2021-08-14 07:25:41.780 zigbee2mqtt: (zigbee2mqtt) MQTT message: zigbee2mqtt/bridge/logging {'level': 'info', 'message': 'MQTT publish: topic \'zigbee2mqtt/ZolderTHB\', payload \'{"battery":100,"humidity":48.8,"last_seen":"2021-08-14T07:25:40+02:00","linkquality":147,"pressure":1017.9,"temperature":25.9,"voltage":3025}\''}
2021-08-14 07:25:41.781 zigbee2mqtt: (zigbee2mqtt) MQTT message: zigbee2mqtt/ZolderTHB {'battery': 100, 'humidity': 48.8, 'last_seen': '2021-08-14T07:25:40+02:00', 'linkquality': 147, 'pressure': 1017.9, 'temperature': 25.9, 'voltage': 3025}
2021-08-14 07:25:41.913 Error: EventSystem: in /opt/domoticz/dzVents/runtime/dzVents.lua: ...oticz/dzVents/runtime/device-adapters/generic_device.lua:67: attempt to index a nil value (field '_')
2021-08-14 07:25:48.364 zigbee2mqtt: (zigbee2mqtt) MQTT message: zigbee2mqtt/bridge/logging {'level': 'info', 'message': 'MQTT publish: topic \'zigbee2mqtt/Garage\', payload \'{"battery":100,"humidity":71.1,"last_seen":"2021-08-14T07:25:48+02:00","linkquality":39,"temperature":15.7,"voltage":2100}\''}