Search found 6 matches

by Arczipl
Monday 28 May 2018 22:22
Forum: LUA
Topic: LUA scripts group
Replies: 0
Views: 693

LUA scripts group

Hello,
I have this scripts

commandArray = {}
if devicechanged['Xiaomi Switch'] == 'Click' then
if otherdevices['Łazienka LED'] == 'Off' then
commandArray['Łazienka LED'] = 'On'
else
commandArray['Łazienka LED'] = 'Off'
end
end
return commandArray

It's turn on and off LED light in bathroom. I ...
by Arczipl
Tuesday 12 September 2017 15:24
Forum: Blockly
Topic: Xiaomi switch and LED problem. Please help
Replies: 8
Views: 2642

Re: Xiaomi switch and LED problem. Please help

Try lua instead:

commandArray = {}
if devicechanged['Xiaomi Switch'] == 'Click' then
if otherdevices['Xiaomi Router LED'] == 'Off' then
commandArray['Xiaomi Router LED'] = 'On'
else
commandArray['Xiaomi Router LED'] = 'Off'
end
end
return commandArray

It'working :) Thank's my freinds:) Tell me ...
by Arczipl
Tuesday 12 September 2017 15:20
Forum: dzVents
Topic: DzVents Xiaomi Switch
Replies: 3
Views: 1958

Re: DzVents Xiaomi Switch

Sorry but my first time with dzVents and this script it's not clear for me:(
by Arczipl
Monday 11 September 2017 15:18
Forum: dzVents
Topic: DzVents Xiaomi Switch
Replies: 3
Views: 1958

DzVents Xiaomi Switch

Hello,
I have problem with blockly events and I decided to try dzVents. Unfortunately, but it is not understandable to me. Is there anyone who can help me? I have a Xiaomi selector / switch and I would like one click to either turn on 2 lights and turn off depending on whether the device is turned ...
by Arczipl
Sunday 10 September 2017 20:40
Forum: Blockly
Topic: Xiaomi switch and LED problem. Please help
Replies: 8
Views: 2642

Re: Xiaomi switch and LED problem. Please help

"ON" and "OFF" stats not working. Any more ideas?:(
by Arczipl
Sunday 10 September 2017 12:03
Forum: Blockly
Topic: Xiaomi switch and LED problem. Please help
Replies: 8
Views: 2642

Xiaomi switch and LED problem. Please help

Hello,
I have a problem with blockly event.
I have a xiaomi switch / selector and I would like to click on (one click) the switch lit up and after next click (one click) turned off the LED. It would be ideal if this click activated a group or scene. I did this event as in the photo and ...