Hi,
I use some Lua scripts in Domoticz in "My automation scripts"
The Lua scripts works fine, but when I change the name from the Lua script and save these I get an error in the log.
The error log says that he can't find the Lua script name, problem is that Domoticz is looking for the old name and not for the new Lua script name.
How can i solve this problem?
Thanks
Problem. "My automation scripts"***Solved*** Topic is solved
Moderator: leecollings
-
Knibor
- Posts: 112
- Joined: Sunday 20 May 2018 12:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: NL
- Contact:
Problem. "My automation scripts"***Solved***
Last edited by Knibor on Monday 25 November 2019 0:01, edited 1 time in total.
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Problem. "My automation scripts"
I cannot replicate this. Can you show the loglines and maybe some screenshots. Could be that I don't fully replicate your steps leading to this error in the log.Knibor wrote: Saturday 23 November 2019 15:20 The Lua scripts works fine, but when I change the name from the Lua script and save these I get an error in the log.
The error log says that he can't find the Lua script name, problem is that Domoticz is looking for the old name and not for the new Lua script name.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
Knibor
- Posts: 112
- Joined: Sunday 20 May 2018 12:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: NL
- Contact:
Re: Problem. "My automation scripts"
Hi,
Hereby the Log
I change the Lua name from 'Meter uitsplitsen' to '1.0 Meter uitsplitsen'
After it, I restart Domoticz, and the log file gives me this error log.
Hereby the Log
I change the Lua name from 'Meter uitsplitsen' to '1.0 Meter uitsplitsen'
After it, I restart Domoticz, and the log file gives me this error log.
019-11-24 17:46:22.479 Status: dzVents: Error (2.4.19): module '1.0 Meter uitsplitsen' not found:
2019-11-24 17:46:22.479 no field package.preload['1.0 Meter uitsplitsen']
2019-11-24 17:46:22.479 no file '/usr/local/share/lua/5.2/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/usr/local/share/lua/5.2/1/0 Meter uitsplitsen/init.lua'
2019-11-24 17:46:22.479 no file '/usr/local/lib/lua/5.2/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/usr/local/lib/lua/5.2/1/0 Meter uitsplitsen/init.lua'
2019-11-24 17:46:22.479 no file './1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/dzVents/runtime/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/dzVents/runtime/device-adapters/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/dzVents/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/scripts/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/../lua/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/scripts/modules/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/generated_scripts/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/data/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/modules/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/usr/local/lib/lua/5.2/1/0 Meter uitsplitsen.so'
2019-11-24 17:46:22.479 no file '/usr/local/lib/lua/5.2/loadall.so'
2019-11-24 17:46:22.479 no file './1/0 Meter uitsplitsen.so'
2019-11-24 17:46:22.479 no file '/usr/local/lib/lua/5.2/1.so'
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Problem. "My automation scripts"
Lua / dzVents cannot handle filenames with an extra dot in the name.Knibor wrote: Sunday 24 November 2019 18:01 Hereby the Log
I change the Lua name from 'Meter uitsplitsen' to '1.0 Meter uitsplitsen'
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
Knibor
- Posts: 112
- Joined: Sunday 20 May 2018 12:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: NL
- Contact:
Re: Problem. "My automation scripts" ***Solved***
Hi,
Thanks for the information
Thanks for the information
Who is online
Users browsing this forum: No registered users and 1 guest