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

Moderator: leecollings

Post Reply
Tido
Posts: 3
Joined: Thursday 01 August 2019 21:50
Target OS: Linux
Domoticz version: V4.10717
Contact:

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

Post 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 2216 times
screenshot of my switches
screenshot of my switches
Domo switches 2019-08-02.png (45.92 KiB) Viewed 2216 times
ZigBee CC2531 - flashed with RPi, pretty easy | I am a total beginner with IKEA bulb and Aqara motion sensor
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

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

Post 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
Tido
Posts: 3
Joined: Thursday 01 August 2019 21:50
Target OS: Linux
Domoticz version: V4.10717
Contact:

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

Post 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 2187 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?
ZigBee CC2531 - flashed with RPi, pretty easy | I am a total beginner with IKEA bulb and Aqara motion sensor
Patricen
Posts: 117
Joined: Tuesday 06 February 2018 18:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta rel
Contact:

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

Post 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
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

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

Post 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.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest