Hi Hans,
indeed caused by na uppercase misspell : variable
now it works
Cheers
Search found 3 matches
- Saturday 22 September 2018 10:18
- Forum: LUA
- Topic: Script examples (Lua)
- Replies: 138
- Views: 154724
- Saturday 22 September 2018 10:13
- Forum: LUA
- Topic: Script examples (Lua)
- Replies: 138
- Views: 154724
Re: Script examples (Lua)
Hi Hans,
thanks for the hint.
unfortunately it does not fix the issue...
Cheers, Bertus
thanks for the hint.
unfortunately it does not fix the issue...
Cheers, Bertus
- Friday 21 September 2018 16:55
- Forum: LUA
- Topic: Script examples (Lua)
- Replies: 138
- Views: 154724
cannot update user variable from Lua script
The LUA script below is meant to increment a user variable within domoticz; access to the variable works but updating it does not. please advice counter = tonumber(uservariables["SWITCH"]) Commandarray = {} if (devicechanged['SWITCH'] == 'On') then counter = counter + 1 commandarray['variable:SWITCH ...