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

Post Reply
martijnm
Posts: 26
Joined: Thursday 04 February 2016 14:06
Target OS: Raspberry Pi
Domoticz version: 3.530
Location: Emmen, Drenthe
Contact:

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

Post by martijnm » Saturday 29 July 2017 14:19

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 :)

jjnj
Posts: 232
Joined: Thursday 31 July 2014 13:51
Target OS: Windows
Domoticz version:
Location: NL
Contact:

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

Post by jjnj » Saturday 29 July 2017 14:28

Set group should be on instead of active I believe

martijnm
Posts: 26
Joined: Thursday 04 February 2016 14:06
Target OS: Raspberry Pi
Domoticz version: 3.530
Location: Emmen, Drenthe
Contact:

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

Post by martijnm » Saturday 29 July 2017 14:35

Sorry never mind. I feel stupid.... Fixed this by setting group to On instead of Active.

Schorschi
Posts: 28
Joined: Thursday 30 November 2017 23:09
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by Schorschi » Saturday 23 December 2017 20:42

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.

Andree
Posts: 80
Joined: Wednesday 07 June 2017 11:19
Target OS: Windows
Domoticz version:
Contact:

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

Post by Andree » Wednesday 27 December 2017 8:46

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.

Schorschi
Posts: 28
Joined: Thursday 30 November 2017 23:09
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by Schorschi » Wednesday 27 December 2017 11:20

Hi,

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

compile
Posts: 2
Joined: Wednesday 10 January 2018 11:59
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

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

Post by compile » Wednesday 10 January 2018 12:02

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest