Page 1 of 1

Xiaomi Motion Sensors and Blockly... activating the lights does not work

Posted: Saturday 29 July 2017 14:19
by martijnm
Hi guys,

I'm trying to set up some Xiaomi "Human Body" Sensors. They register movement just fine in Domoticz but with a 2 second delay.

I've created a blockly script to start up some of my lights when movement is detected. The grouped lights work fine when I switch them on myself in Domoticz.

When using the motion sensor with Blockly, nothing happens:
Image

I also tried:
Image

Both scripts do not work as expected.. Should I use a different selector than "on" or "motion"?

I'm hoping someone can maybe give some suggestions on how to make this work..

Thanks :)

Re: Xiaomi Motion Sensors and Blockly... activating the lights does not work

Posted: Saturday 29 July 2017 14:28
by jjnj
Set group should be on instead of active I believe

Re: Xiaomi Motion Sensors and Blockly... activating the lights does not work

Posted: Saturday 29 July 2017 14:35
by martijnm
Sorry never mind. I feel stupid.... Fixed this by setting group to On instead of Active.

Re: Xiaomi Motion Sensors and Blockly... activating the lights does not work

Posted: Saturday 23 December 2017 19:42
by Schorschi
Hello,

i also try to implement an motion sensor. I use an aquara motion sensor.
But this sensor is not listed inside the device list.

Maybe only the stock xiaomi motion sensor is suported by domoticz??
Any one with more informations?

thx.

Re: Xiaomi Motion Sensors and Blockly... activating the lights does not work

Posted: Wednesday 27 December 2017 7:46
by Andree
Schorschi wrote:Hello,

i also try to implement an motion sensor. I use an aquara motion sensor.
But this sensor is not listed inside the device list.

Maybe only the stock xiaomi motion sensor is suported by domoticz??
Any one with more informations?

thx.
Yes but do you have a Xiaomi Gateway.
All the Xiaomi sensor need the gateway.

Re: Xiaomi Motion Sensors and Blockly... activating the lights does not work

Posted: Wednesday 27 December 2017 10:20
by Schorschi
Hi,

yes i have. Now i tested current beta version which support the aquara motion sensor.

Re: Xiaomi Motion Sensors and Blockly... activating the lights does not work

Posted: Wednesday 10 January 2018 11:02
by compile
I have version v3.8796 but I don't get any switches. I added the motion sensor but it only appears as a utlity.
In Blockly I can't add it from switches.

Any idea?