Search found 13 matches
- Friday 26 October 2018 13:38
- Forum: dzVents
- Topic: Lux value = nil.
- Replies: 3
- Views: 606
Re: Lux value = nil.
Dammm... I found the problem :) If i use the IDX number instead it work. It turns out that I have another device called "Stue" under Temp and the Lux sensor call "Stue".. so the rule has not always used the lux sensor. why it works when the lux sensor send a new valid value i can not figure out. But ...
- Friday 26 October 2018 12:52
- Forum: dzVents
- Topic: Lux value = nil.
- Replies: 3
- Views: 606
Re: Lux value = nil.
Are you on the latest Domoticz beta..? i use the latest stable version.. Maybe thats the difference.
Xiaomi gateway is on the latest version.
Xiaomi gateway is on the latest version.
- Friday 26 October 2018 10:50
- Forum: dzVents
- Topic: Lux value = nil.
- Replies: 3
- Views: 606
Lux value = nil.
Hiii I have made a script to turn on the light when it get dark in the room. - See code below. But when I compare the lux value, I do not always get a number. Only if the lux value has changed since last entry. otherwise i get "Nil". The Lux Sensor is a Xiaomi Motion Sensor with lux. it report the ...
- Wednesday 19 October 2016 19:36
- Forum: LUA
- Topic: Lua script Set after 120 if ..?
- Replies: 19
- Views: 2628
Re: Lua script Set after 120 if ..?
i start on a Raspberry - but move to Windows. I have a server on 24/7 anyway.
- Wednesday 19 October 2016 17:48
- Forum: LUA
- Topic: Lua script Set after 120 if ..?
- Replies: 19
- Views: 2628
Re: Lua script Set after 120 if ..?
i am 100% windows man - sorry 

- Wednesday 19 October 2016 16:25
- Forum: LUA
- Topic: Lua script Set after 120 if ..?
- Replies: 19
- Views: 2628
Re: Lua script Set after 120 if ..?
will the pass2php work on windows..? I run Domoticz on a windows 7.
- Wednesday 19 October 2016 16:21
- Forum: LUA
- Topic: Lua script Set after 120 if ..?
- Replies: 19
- Views: 2628
Re: Lua script Set after 120 if ..?
advantage Blockly you are not required to know the code, just drag and drop. Ih PHP/LUA i have to write all the code by you self 

- Wednesday 19 October 2016 16:08
- Forum: LUA
- Topic: Lua script Set after 120 if ..?
- Replies: 19
- Views: 2628
Re: Lua script Set after 120 if ..?
Thanks - i will have a look at it.
I can not PHP or LUA - so i have to start from the scratch - then blockly it seems like the easiest but also the most restrictions :/
I can not PHP or LUA - so i have to start from the scratch - then blockly it seems like the easiest but also the most restrictions :/
- Wednesday 19 October 2016 15:53
- Forum: LUA
- Topic: Lua script Set after 120 if ..?
- Replies: 19
- Views: 2628
Re: Lua script Set after 120 if ..?
it cut be nice to have some more "advance" opportunities in Blockly script.
How do pass2php work..? seems not really I can find something about it.
How do pass2php work..? seems not really I can find something about it.
- Wednesday 19 October 2016 15:46
- Forum: LUA
- Topic: Lua script Set after 120 if ..?
- Replies: 19
- Views: 2628
Re: Lua script Set after 120 if ..?
Like i already told. When i turn off my tv, it turn on the light in the kitchen. I leave the road - 120 sec later the script dimme the light 100% (so it 100% next time i turn it on), 2 sec later it turn it off. - But some time i turn off the light my self, then i dont want the script to turn it back ...
- Wednesday 19 October 2016 15:12
- Forum: LUA
- Topic: Lua script Set after 120 if ..?
- Replies: 19
- Views: 2628
Re: Lua script Set after 120 if ..?
Quite simple in my pass2php script: //Dimmer 50 % sl($i['mydimmer'],50); //Wait 120 sek sleep(120); //dimmer 100% if dimmer not = off if($s['mydimmer']!='Off') sl($i['mydimmer'],100); //wait 2 sek sleep(2); //Turn off Dimmer if dimmer not equal = Off if($s['mydimmer']!='Off') sl($i['mydimmer'],0 ...
- Tuesday 18 October 2016 21:19
- Forum: LUA
- Topic: Lua script Set after 120 if ..?
- Replies: 19
- Views: 2628
Re: Lua script Set after 120 if ..?
domoticz.devices['myDimmer'].dimTo(50).for_min(2)
Here you dont have the "If dimmer not = OFF"
I want the script to wait 120 sec and check the state of a switch again, before the action..
Here you dont have the "If dimmer not = OFF"
I want the script to wait 120 sec and check the state of a switch again, before the action..
- Tuesday 18 October 2016 12:08
- Forum: LUA
- Topic: Lua script Set after 120 if ..?
- Replies: 19
- Views: 2628
Lua script Set after 120 if ..?
Heii I usually use blocky to program my functions, but want to use a function which is not possible in blocky. Thinking Lua is more advanced so I suppose it is possible here. But dont not know :) I want this. Dimmer 50 % Wait 120 sek dimmer 100% if dimmer not = off wait 2 sek Turn off Dimmer if ...