Search found 2 matches

by theplayer777
Wednesday 22 March 2017 0:38
Forum: LUA
Topic: Scripts not being triggered
Replies: 3
Views: 1605

Re: Scripts not being triggered

Thank you for you reply,

I add this dummy switch just to do some testing, but I also tried the same script with another device (door detection) but with the same result. I'm switching the dummy device manually. Nothing special about that, it's just a "default" dummy switch on/off device.

I tried ...
by theplayer777
Tuesday 21 March 2017 23:27
Forum: LUA
Topic: Scripts not being triggered
Replies: 3
Views: 1605

Scripts not being triggered

Hello,

I have some troubles using lua scripts. They aren't working at all, whatever I write. For example here with a dummy switch named "dummy":

commandArray = {}
if (otherdevices['dummy'] == 'On') then
print ("Hello world")
end
return commandArray

nothing happen when I switch on/off my device ...