zigbee2mqtt bind ikea remote to group

Xiaomi, Ikea TRΓ…DFRI, Philips Hue and more.

Moderator: leecollings

User avatar
heggink
Posts: 977
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

zigbee2mqtt bind ikea remote to group

Post by heggink »

Apologies if this has been answered before. I struggle to understand how to bind an IKEA tradfri remote to a group of ikea tradfri lamps. All the devices are paired correctly. I'd like to control the lights in case domoticz is down for whatever reason.

Anyone any advice as to how to do this (through the python plugin)?

Many thanks in advance!

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

Re: zigbee2mqtt bind ikea remote to group

Post by heggink »

Finally managed to get it to work. 382 restarts, 451 reincludes of the remote. It's a challenge...

Verstuurd vanaf mijn SM-G980F met Tapatalk

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 :-)
Hesmink
Posts: 168
Joined: Monday 22 June 2015 10:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by Hesmink »

How did you do it? I use a blocky script, but that's a bit cumbersome.
User avatar
heggink
Posts: 977
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by heggink »

My first issue was that it refused to recognise the ikea dimmer-remote (the round one). Only after literally including it 3 dozen times did it finally recognise it in a workable way.

Best to follow this guide: https://urgn.tech/ikea-tradfri-zigbee2mqtt-binding/
once recognised:
- enable log debug
- click the remote toggle (on/off) button whilst looking at the logs
- note the group number the remote is using and create a group with that number
- restart the z2mqtt system (not sure this is needed but I followed the guide)
- add zigbee devices to that group and voila... it worked.
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 :-)
Hesmink
Posts: 168
Joined: Monday 22 June 2015 10:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by Hesmink »

Thanks, I'll try this. I have the same dimmer remote (already connected to z2mqtt).
User avatar
heggink
Posts: 977
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by heggink »

I have a couple of the other remotes as well. 2 things that really helped me:
- it turned out that ZigBee was using channel 11 (default) which interferes massively with WiFi 2.4 channel 1 so I changed the WiFi channel (changing the ZigBee channel requires you to include all ZigBee devices again)
- these remotes are already bound to group 0 so you need to unbind then first. You can use a simple mosquito_pub for that...

Now all remotes work great and no more ZigBee errors at all .

Verstuurd vanaf mijn SM-G980F met Tapatalk

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 :-)
Hesmink
Posts: 168
Joined: Monday 22 June 2015 10:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by Hesmink »

Ok, I identified the group, created the group using the Domiticz plugin, but how do you add devices to this group?
User avatar
heggink
Posts: 977
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by heggink »

Through the same plugin: click on the group and you should see art the bottom which devices are part of the group. Click the add button...Image

Verstuurd vanaf mijn SM-G980F met Tapatalk

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 :-)
Hesmink
Posts: 168
Joined: Monday 22 June 2015 10:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by Hesmink »

Thanks, it works now.
I managed to miss the fact that you could just click on the group name. I was looking for an edit button or something like it.
albertomarrod
Posts: 24
Joined: Tuesday 18 April 2017 6:50
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Spain
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by albertomarrod »

Hi guys!

Sorry for bothering you...

I have tried several time to do this and I don't know if I'm doing something wrong...

I've got an tradfri E1524 who is connected to the IKEA TRADFRI driver for wireless control (30 watt). This last device is connected by cable to a few OMLOPP lights.

I have connected the tradfri E1524 to domoticz but nothing happens... I guess I have to had the IKEA TRADFRI driver to domoticz but I don't know how... I assume that to control the OMLOPP lights I have to doing through the TRADFRI driver as they are connected through cable...

Could you help me with that?

Should I do something else? Do you need any kind of log to be able to help me more?

Finally, when you have to create a group... Do you create it on the "/opt/zigbee2mqtt/data/configuration.yaml" archive or directly on the plugin in Domoticz by using the ID field?

Thanks and sorry... I'm bit desperate with this as I had to take apart the kitchen cabinets to reach the TRADFRI driver
Pi3, latest beta
z-wave (AEOTEC, switches, temhum, pir, contacts, roller shutter),
Pylips, WiFi ping, Mi-Light,
Xiaomi Xiaofang cams, zigbee2mqtt,
dashticz v3
User avatar
heggink
Posts: 977
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by heggink »

Hey Alberto,

Couple of suggestions that may help based on my experience over the last week (only moved a week from the tradfri plugin to zigbee2mqtt but everything now works really well):
1) I had a LOT of interference between zigbee and wifi. I used wifi channel 1 and zigbee2mqtt defaults to zigbee channel 11. Therse 2 DON'T WORK TOGETHER! I moved my wifi to channel 6 which made a huge difference.
2) whenever you wan to add a device, first check if supported by the python plugin (https://github.com/stas-demydiuk/domoti ... DEVICES.md) and then read the zigbee2mqtt page on how to include. For the 30W led driver: https://www.zigbee2mqtt.io/devices/ICPS ... -IL-1.html which says that, to pail, you need to press the small reset button with a paperclip. You can then include in domoticz through the plugin
3) after you included the remote E1524, you need to find out what group it is bound to. these remotes are pre-bound to a specific group. From your signature, you don't list what platform you are running on (windows, raspberry pi). The only way I know how to find the group is to look at the zigbee2mqtt logs when you press the on/off from the remote. It will then show a message in the log indicating the group number. If you are on raspberry pi then this link will give you the commands you need to find the group: https://urgn.tech/ikea-tradfri-zigbee2mqtt-binding/
4) when you have the group number from 3), you create a new group in the domoticz plugin. Give it a name and the number from 3)
5) you can then add the led driver you paired in 2) to that group and it should work.

Let me know if you managed to get it to work or whether you still have questions.

H
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 :-)
albertomarrod
Posts: 24
Joined: Tuesday 18 April 2017 6:50
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Spain
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by albertomarrod »

Firstly, thank you for your reply.

I will try this week as I'm on night shifts and pretty tired to do so during the day as I have to disassemble the kitchen cabinets...

I am also quite new into zigbee2mqtt and today I changed the channel of my WiFi to channel 1 instead of auto... If you think that channel 6 it's better, just give me a shout.

I just have to tell you that you really explained for noobs like me hahahaha. Many many thanks.

I'll let you know how it's going the trial...
Pi3, latest beta
z-wave (AEOTEC, switches, temhum, pir, contacts, roller shutter),
Pylips, WiFi ping, Mi-Light,
Xiaomi Xiaofang cams, zigbee2mqtt,
dashticz v3
User avatar
heggink
Posts: 977
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by heggink »

If you did not change the zigbee channel after installing zigbee2mqtt then my recommendation is to NOT use wifi channel 1 as these interfere. Any free channel from 6 upwards is better.
There are phone apps that let you scan what wifi channels are already used and which ones are still available, in case you live in a densely populated area.

Verstuurd vanaf mijn SM-G980F met Tapatalk

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 :-)
albertomarrod
Posts: 24
Joined: Tuesday 18 April 2017 6:50
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Spain
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by albertomarrod »

heggink wrote: ↑Monday 28 September 2020 9:46 If you did not change the zigbee channel after installing zigbee2mqtt then my recommendation is to NOT use wifi channel 1 as these interfere. Any free channel from 6 upwards is better.
There are phone apps that let you scan what wifi channels are already used and which ones are still available, in case you live in a densely populated area.

Verstuurd vanaf mijn SM-G980F met Tapatalk
Hi Heggink!

Thanks for all your support!

Sorry for a late reply but I wasn't able to try this before due to family problems (All solved).

I was able to configure the TRADFRI light but I have got couple of questions that maybe you could help me with it...

Firstly, I am not capable to switch the brightness up or down as the group has only created a device (device on/off). I have to add that the controller has also only created a switch once I added.

Then, I have added the controller to the group as a member (I think it is in the right place). The thing is that when I switch off the lights directly from the remote, the status does not change on domoticz. I don't know if I'm doing something wrong with this or if I have to create a script to change the status.

Thank you again. If you need anything or couldn't understand something please, let me know.
Pi3, latest beta
z-wave (AEOTEC, switches, temhum, pir, contacts, roller shutter),
Pylips, WiFi ping, Mi-Light,
Xiaomi Xiaofang cams, zigbee2mqtt,
dashticz v3
User avatar
heggink
Posts: 977
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by heggink »

Not sure I fully understand. When you pair a lamp in Z2M, you still need to go to devices and add it there. It will be added as a device set to unused.

When you add a group, Z2M will create a "group device" so you can switch all the devices in that that group at the same time. You can also use a zigbee remote to control those devices.

In my case, I have a device (by itself) in a group and a remote controlling that group. Using the Ikea remote, I can switch the ikea light on off but also dim. I can also dim the ikea light itself.

The one thing you need to understand is that the Z2M plugin does not know what devices you include in a group. The guy who built the plugin therefore built the plugin such that you can define this using a suffix. So if you call your group something_ct then the plugin treats the devices as colour-temp devices and creates a specific group device to control them. That's all described under zigbee groups support at https://github.com/stas-demydiuk/domoti ... qtt-plugin

So it looks like you may still need to add individual devices in the domoticz devices list if they are not there yet. And, if the remote works, it should also dim lights that are dimmable.

I hope that helps and answers your questions. If not, PM me with some screen shots of the devices and groups you have added.

Herman
ps: since about a week or so, there is a new version of zigbee2mqtt which a bunch of improvements. It's quite a lot better! I would recommend being on the latest stable version.
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 :-)
albertomarrod
Posts: 24
Joined: Tuesday 18 April 2017 6:50
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Spain
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by albertomarrod »

heggink wrote: ↑Thursday 08 October 2020 21:25 Not sure I fully understand. When you pair a lamp in Z2M, you still need to go to devices and add it there. It will be added as a device set to unused.

When you add a group, Z2M will create a "group device" so you can switch all the devices in that that group at the same time. You can also use a zigbee remote to control those devices.

In my case, I have a device (by itself) in a group and a remote controlling that group. Using the Ikea remote, I can switch the ikea light on off but also dim. I can also dim the ikea light itself.

The one thing you need to understand is that the Z2M plugin does not know what devices you include in a group. The guy who built the plugin therefore built the plugin such that you can define this using a suffix. So if you call your group something_ct then the plugin treats the devices as colour-temp devices and creates a specific group device to control them. That's all described under zigbee groups support at https://github.com/stas-demydiuk/domoti ... qtt-plugin

So it looks like you may still need to add individual devices in the domoticz devices list if they are not there yet. And, if the remote works, it should also dim lights that are dimmable.

I hope that helps and answers your questions. If not, PM me with some screen shots of the devices and groups you have added.

Herman
ps: since about a week or so, there is a new version of zigbee2mqtt which a bunch of improvements. It's quite a lot better! I would recommend being on the latest stable version.
Hi! I am such an idiot guy!

I didn't add the termination "_dimmer" at the end of the group. That was the issue...

I have everything added to domoticz and now it works perfectly.

Finally, do you know any way to update the status on domoticz when I use the remote or vice versa?

As you can see on the pictures below the devices does not update once i use either the remote nor domoticz.

The way I thought it is by doing a script but I do know how to do it if it is a dimmer.

Image

Image

Thank you again and I hope this helps somebody else in the future.
Pi3, latest beta
z-wave (AEOTEC, switches, temhum, pir, contacts, roller shutter),
Pylips, WiFi ping, Mi-Light,
Xiaomi Xiaofang cams, zigbee2mqtt,
dashticz v3
User avatar
heggink
Posts: 977
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by heggink »

That's weird as Z2M should track updates and inform domoticz. Can't really tell why that is not happening. Have you tried looking at the Z2M logs when using the remote? At the same time, look at the domoticz logs as well.

Sent from my SM-G980F using Tapatalk

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

Re: zigbee2mqtt bind ikea remote to group

Post by heggink »

Update: with the last Z2M update, all my remotes were gone (didn't list as devices anymore) but still worked. Weirdly, using the remote to switch on lights indeed does not change the status in domoticz. I just re-added one of the remotes. It's doing a firmware update now (my first one using domoticz so cross fingers). Will do some debugging later to see if I can trace the issue.
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 :-)
User avatar
heggink
Posts: 977
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by heggink »

OK, so re-adding a remote, unbinding it from its default group (901), binding it to the original group again then nicely switches both the group device as well as the individual devices' status in domoticz. Not sure why the Z2M update removed the remotes but it works again for me.
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 :-)
User avatar
heggink
Posts: 977
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zigbee2mqtt bind ikea remote to group

Post by heggink »

Next update: I have multiple of these switches (of various dates and versions) all of type E1743. With one switch, everything gets updated without any issues, with another, nothing gets updated in domoticz although the lights can be controlled fine...
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