Page 1 of 1

Aqara motion sensor, IKEA Tradfri bulb, CC2531 – how to setup?

Posted: Friday 02 August 2019 12:51
by Tido
Hi,
I have thought this is going to be straight forward and easy. I buy the basic stuff to get started. 12 – 24h try&error later I still haven't figured it out.

My devices:
  • IKEA LED1623G12 (just a white bulb, with dimmer)
  • Xiaomi Aqara motion sensor RTCGQ11LM
  • Texas Instruments CC2531 USB Stick
I have installed Domoticz according to the Wiki on a RPi2, with Zigbee2MQTT-Plugin. I finally managed to pair all devices and I can control the bulb in the Switches Menu.

I would like to set it up this way:
If the motion sensor triggers, it will send a signal to CC2531 (Zigbee) and Domoticz will switch the bulb on. Totally simple not even thinking about day or evening.

After searching YouTube, the Domoticz Wiki, reading many tutorials and finally search in the forum I cannot find a simple "getting started". I may write one in the Wiki once I found out and allowed to do so.

Can you please give me an idea how I simply connect these without Blocky or LUA (if it is possible) ?

Attached 2 pictures of my install.
screenshot of my devices
screenshot of my devices
Domo devices 2019-08-02.png (115.12 KiB) Viewed 2222 times
screenshot of my switches
screenshot of my switches
Domo switches 2019-08-02.png (45.92 KiB) Viewed 2222 times

Re: Aqara motion sensor, IKEA Tradfri bulb, CC2531 – how to setup?

Posted: Friday 02 August 2019 23:33
by jake
You say you don't want to use blockly out scripting. Are you up for a challenge?

I'd just pop those few blockly pieces together and be done with it

If pir is on, than bulb level is 100
Elseif pir is off, than bulb level is 0

Re: Aqara motion sensor, IKEA Tradfri bulb, CC2531 – how to setup?

Posted: Saturday 03 August 2019 20:12
by Tido
jake wrote: Friday 02 August 2019 23:33 Are you up for a challenge?
of course I am ;) Thank you for your 'code' I missed to read in the Wiki about Blockly first, so it took me a bit longer to figure out the Elseif. Very nice tool:
Important fact, both (Aqara & LED) must be listed in "Switches".
Domo Blockly 2019-08-03.png
Domo Blockly 2019-08-03.png (67.69 KiB) Viewed 2193 times

However, about my original request... it is not possible without doing 'coding' or in other words, it is done in Blockly or Code itself?

Re: Aqara motion sensor, IKEA Tradfri bulb, CC2531 – how to setup?

Posted: Saturday 10 October 2020 12:11
by Patricen
Hello,

I'm pretty sure it is possible using JSON on motion sensor activation, but have no skill about json. I opened a post there just in case I do have an answer.
viewtopic.php?f=11&t=34160

Re: Aqara motion sensor, IKEA Tradfri bulb, CC2531 – how to setup?

Posted: Saturday 10 October 2020 12:21
by heggink
If Z2M supports binding of different brands then you could bind the sensor to a group containing the light. I know it works for IKEA (using the ikea sensor and lights) but I don;t know if that works across brands. There is another thread on this (just did some updates) indicating how to do this using IKEA devices. Interested to hear of it works across brands as well.