Search found 3 matches

by bertus
Saturday 22 September 2018 10:18
Forum: LUA
Topic: Script examples (Lua)
Replies: 138
Views: 154724

Re: Script examples (Lua)

Hi Hans,
indeed caused by na uppercase misspell : variable
now it works
Cheers
by bertus
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
by 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 ...