Blockley has its limitations. I have therefore started to work with LUA.
Domoticz generates the needed user variables (copy/paste from WIKI user variables).
What’s wrong with my first LUA script?
Moderator: leecollings
-
- Posts: 229
- Joined: Wednesday 30 April 2014 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
-
- Posts: 229
- Joined: Wednesday 30 April 2014 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: What’s wrong with my first LUA script?
Stupid my topic was not ready
Next blockley is not working.
The selector only responds if the variable season is adjusted via the web interface. (as described on the forum. LUA in combination with Blockley causes problems). Therefore, a first attempt with a LUA script.
I'm looking for help because my first LUA script does not work. Who can point me in the right direction.
Thanks in advance
Next blockley is not working.
The selector only responds if the variable season is adjusted via the web interface. (as described on the forum. LUA in combination with Blockley causes problems). Therefore, a first attempt with a LUA script.
I'm looking for help because my first LUA script does not work. Who can point me in the right direction.
Thanks in advance
- jvdz
- Posts: 2333
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: What’s wrong with my first LUA script?
Jan,
The Set level command is wrong and should read: 'Set Level 10'.
One other thing to remember is that each time a Variable is changed via the Web interface or JSON, this script will run and set the ventilatie to the set level.
Jos
The Set level command is wrong and should read: 'Set Level 10'.
One other thing to remember is that each time a Variable is changed via the Web interface or JSON, this script will run and set the ventilatie to the set level.
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 229
- Joined: Wednesday 30 April 2014 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: What’s wrong with my first LUA script?
Hello Jos,
Thanks for your quick reply.
I changed the script.
Then I clicked on the line Season (user variables) and at last I clicked the button adjust. I expected that the selector switches from "Normaal" to "Zomer" but nothing happens, even in the log.
Using blockley the selector switches as expected.
Jan
Thanks for your quick reply.
I changed the script.
Then I clicked on the line Season (user variables) and at last I clicked the button adjust. I expected that the selector switches from "Normaal" to "Zomer" but nothing happens, even in the log.
Using blockley the selector switches as expected.
Jan
- jvdz
- Posts: 2333
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: What’s wrong with my first LUA script?
Have you made the LUA script with the internal Editor or is it a File in the Lua directory?
In the latter case the name of the file is important and should be: script_variable_xxxxxx.lua.
Jos
In the latter case the name of the file is important and should be: script_variable_xxxxxx.lua.
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 229
- Joined: Wednesday 30 April 2014 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: What’s wrong with my first LUA script?
Hello Jos,
Thanks a lot.
The name of the file was the clue. Now every thing works as desired.
Jan
Thanks a lot.
The name of the file was the clue. Now every thing works as desired.
Jan
Who is online
Users browsing this forum: No registered users and 1 guest