Platform: Pi
Plugin/Hardware: DzVents
Description:
After the update to 2021.1 yesterday, my custom events (from DzVents) are no longer working. Looks like the raw customEvent data does not come through.
Triggers:
Code: Select all
http://###.###.###.###:####/json.htm?type=command¶m=customevent&event=Heating%20on&data=[{"trigger":"JSON","delay":"0"}] -- JSON-url
domoticz.emitEvent('Heating on', {{trigger = item.trigger, delay = 0}, {''}}) --Script
Code: Select all
local strTriggerData = item.trigger .. ', ' .. item.data[1].trigger .. ', ' .. item.data[1].delay
The custom event is recognized in the follow-up script, but the additional data is not.2021-05-05 07:44:00.479 Error: dzVents: Error: (3.1.7) An error occurred when calling event handler Shutter V2
2021-05-05 07:44:00.479 Error: dzVents: Error: (3.1.7) ...omoticz/scripts/dzVents/generated_scripts/Shutter V2.lua:9: attempt to index a nil value (field '?')