Egregius wrote: ↑Thursday 21 September 2017 22:35
With pass2php:
Code: Select all
if(timestamp('motion')<time-1800&&status('motion')=='Off'&&status('purifier')=='On')sw('purifier','Off');
Can it be more simple?
Let's see how much code you'll need in lua to do the same...
It seems we can find Pass2php pretty much everywhere
(for a good reason) around the Domoticz forum.
Just finished reading 98 pages of thread. I must say. WOW. A lot of progress.
Can't wait what will come next.
My house has 433. OpenZwave and now...
Just received the Xiaomi gateway, body sensor and some door/window sensors.
After following the domoticz-wiki everything was up and running.
I'm still connected to the 'chinese' server from within the app.
Don't know if I have to change to the US or different one for a good reason?
Tried it but then all devices were gone (in the APP). After switchting back I could see them again.
Only problem I'm facing is the 'white' led light within the Xiaomi gateway.
The colour picker pressing 'on' it turns 100% white. Howeve I want to dim it.
I can control all colours and brightness (from within the colour picker and via domoticz api) except the white one
(Switching On / Off does work). And ofcourse within the app it does all work nicely.
Any RGB Colour I can select via:
Code: Select all
http://192.168.1.2:8080/json.htm?type=command¶m=setcolbrightnessvalue&idx=12&hue=38&brightness=83&iswhite=false
Colour White (ON/Off no problem)
Code: Select all
On: http://192.168.1.2:8080/json.htm?type=command¶m=switchlight&idx=12&switchcmd=On&level=0&passcode=
Off: http://192.168.1.2:8080/json.htm?type=command¶m=switchlight&idx=12&switchcmd=Off&level=0&passcode=
And no the following did not work for me to produce white light
Code: Select all
On: http://192.168.1.2:8080/json.htmtype=command¶m=setcolbrightnessvalue&idx=12&hue=38&brightness=83&iswhite=true
And yes I am using Pass2php as well