After inserting this in my Windows Domoticz environment and changing my email adres, Domoticz IP, json path, and the day and time so I can test the script at the given time it stops at line 30:
Code: Select all
for i,device in ipairs(devices.result) do
Code: Select all
2017-11-23 00:34:00.587 Error: EventSystem: in LUA-Batterij: [string "-- =========================================..."]:30: attempt to index global 'devices' (a nil value)