dzVents - action delay doesn't seem to work for kodi commands
Posted: Thursday 02 March 2017 17:34
Is it possible that the '.after_sec(20) is not supported for all actions?
This code runs fine but this code doesn't and gives the following error in the log
This code runs fine
Code: Select all
kodidevice.devices.kodiPlay()Code: Select all
kodidevice.devices.kodiPlay().after_sec(5)Code: Select all
2017-03-01 21:36:53.353 LUA: Handling events for: "Kodi Woonkamer - Status", value: "Audio"
2017-03-01 21:36:53.353 LUA: =====================================================
2017-03-01 21:36:53.354 LUA: >>> Handler: kodi
2017-03-01 21:36:53.354 LUA: >>> Device: "Kodi Woonkamer - Status" Index: 146
2017-03-01 21:36:53.354 LUA: .....................................................
2017-03-01 21:37:01.891 LUA: An error occured when calling event handler kodi
2017-03-01 21:37:01.891 LUA: /home/pi/domoticz/scripts/lua/scripts/kodi.lua:25: attempt to index field 'devices' (a nil value)
2017-03-01 21:37:01.892 LUA: .....................................................
2017-03-01 21:37:01.892 LUA: <<< Done
2017-03-01 21:37:01.893 LUA: -----------------------------------------------------
2017-03-01 21:37:01.893 LUA: =====================================================