Unfortunately due to a Domoticz update my whole installation was corrupted (https://www.domoticz.com/forum/viewtopic.php?f=6&t=31765#p240179).
Getting back online, many software is updated obviously as this topic is a few years old already. Would you please help me again?
I believe the UniPi script causes a lua version error in the Domoticz log:
2020-10-18 14:03:00.314 Error: EventSystem: in /home/pi/domoticz/scripts/lua/script_device_UniPi.lua: /home/pi/domoticz/scripts/lua/script_device_UniPi.lua:121: module 'json' not found:
2020-10-18 14:03:00.314 no field package.preload['json']
2020-10-18 14:03:00.314 no file '/usr/local/share/lua/5.3/json.lua'
2020-10-18 14:03:00.314 no file '/usr/local/share/lua/5.3/json/init.lua'
2020-10-18 14:03:00.314 no file '/usr/local/lib/lua/5.3/json.lua'
2020-10-18 14:03:00.314 no file '/usr/local/lib/lua/5.3/json/init.lua'
2020-10-18 14:03:00.314 no file '/usr/share/lua/5.3/json.lua'
2020-10-18 14:03:00.314 no file '/usr/share/lua/5.3/json/init.lua'
2020-10-18 14:03:00.314 no file './json.lua'
2020-10-18 14:03:00.314 no file './json/init.lua'
2020-10-18 14:03:00.314 no file '/usr/local/lib/lua/5.3/json.so'
2020-10-18 14:03:00.314 no file '/usr/lib/arm-linux-gnueabihf/lua/5.3/json.so'
2020-10-18 14:03:00.314 no file '/usr/lib/lua/5.3/json.so'
2020-10-18 14:03:00.314 no file '/usr/local/lib/lua/5.3/loadall.so'
2020-10-18 14:03:00.314 no file './json.so'
Therefore I tried to change the lua to an older version by use of the command
sudo update-alternatives --config lua-interpreter
Which gives me the options:
There are 3 choices for the alternative lua-interpreter (providing /usr/bin/lua).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/lua5.3 120 auto mode
1 /usr/bin/lua5.1 110 manual mode
2 /usr/bin/lua5.2 120 manual mode
* 3 /usr/bin/lua5.3 120 manual mode
Press <enter> to keep the current choice[*], or type selection number:
Unfortunately none of these choices fixes my errors.
Does anyone of you know how to update this script to be compatible with lua5.3? Thank you in advance!