zigate: IKEA remote, wrong group changing colors

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
Geronimoo
Posts: 9
Joined: Monday 09 July 2018 20:57
Target OS: -
Domoticz version:
Contact:

zigate: IKEA remote, wrong group changing colors

Post by Geronimoo »

Hello!

So I have three IKEA remote controls, bedroom, kitchen and livingroom (Ball control). The remotes and lights are paired with each other in respective groups and also with the zigate controller.
For a while they worked good but now they have gone haywire. All three controls work where they should with on/off/intensity but the color thing is fubared. All three controls change the colors in the livingroom and do nothing in their respective areas.

Code: Select all

2020-05-29 01:43:06.467 (Zigate) UpdateDevice - ( Ball Control) 3:30
2020-05-29 01:43:09.286 (Zigate) UpdateDevice - ( Kitchen RC) 3:30
2020-05-29 01:43:12.818 (Zigate) UpdateDevice - ( Bedroom Remote) 3:30 
The above changed the color in the livingroom three times (Ball Controls area)

groups.PNG
groups.PNG (14.11 KiB) Viewed 498 times
I have done a lot of rescans of groups, removed group 0000, added group 0000, rebooted plugin and domoticz etc but nothing changes. Any other suggestions short of redoing everything?

Zigate Plugin: 4.8.044 beta
Zigate Firmware: 031c
Domoticz 2020.2
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: zigate: IKEA remote, wrong group changing colors

Post by pipiche »

I'm not sure group 0000 has anything to do here.
Great that you provided the version and branch, but any error/warning in the logs , when trying to change color ?

When you mention remote I assumed this is the 5 Buttons Ikea Tradfri remote ? If so, are they respectively part of their corresponding group ?
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Geronimoo
Posts: 9
Joined: Monday 09 July 2018 20:57
Target OS: -
Domoticz version:
Contact:

Re: zigate: IKEA remote, wrong group changing colors

Post by Geronimoo »

Hi, I provided what is in the log when I switch colors, no warnings.
Yes, its the five button round one.
The remotes are paired with the corresponding groups as shown in picture above (the remotes are the first item in each group). They behave like they should with light/onofff/intensity. The groups were created by the remotes touchlink thing.

Attached some group files, tell me if you need to see something else
Attachments
plugingroups.json.txt
(1.39 KiB) Downloaded 24 times
zGroup-lst-devices.json.txt
(1.86 KiB) Downloaded 20 times
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: zigate: IKEA remote, wrong group changing colors

Post by pipiche »

Light On/Off and Intensity are directly handled between the remote and the end device/groups.

Color (Scene) control is handled by the plugin. On the other side, if it doesn't behave as you wish, you can do it yourself via dzVent or LUA scripting, when you get event on the remote widget on Domoticz.

If there are no errors on the logs, I cannot really do much.
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Geronimoo
Posts: 9
Joined: Monday 09 July 2018 20:57
Target OS: -
Domoticz version:
Contact:

Re: zigate: IKEA remote, wrong group changing colors

Post by Geronimoo »

The actions are pointed to the wrong group, where and how can I see where that is defined for the plugin?
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: zigate: IKEA remote, wrong group changing colors

Post by pipiche »

Ok. So I suggest that you upgrade to latest beta 4.8.045
you then restart the plugin
you enable debugGroups (from the Settings Advanced)

and then you share the logs when doing action on one remote and the action impact an other groups.
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Geronimoo
Posts: 9
Joined: Monday 09 July 2018 20:57
Target OS: -
Domoticz version:
Contact:

Re: zigate: IKEA remote, wrong group changing colors

Post by Geronimoo »

Hi.
I didn't get to try your log-version as I already had started debugging it with my own logging, and the error is in line 71 in GrpIkeaRemote.py it should be OR instead of AND. I tried it and now all remotes work, yay!

Code: Select all

if NwkId != self.ListOfGroups[x]['Tradfri Remote']['Device Addr'] or TrueNwkId != self.ListOfGroups[x]['Tradfri Remote']['Device Addr']:
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: zigate: IKEA remote, wrong group changing colors

Post by pipiche »

Geronimoo wrote: Friday 29 May 2020 20:29 Hi.
I didn't get to try your log-version as I already had started debugging it with my own logging, and the error is in line 71 in GrpIkeaRemote.py it should be OR instead of AND. I tried it and now all remotes work, yay!

Code: Select all

if NwkId != self.ListOfGroups[x]['Tradfri Remote']['Device Addr'] or TrueNwkId != self.ListOfGroups[x]['Tradfri Remote']['Device Addr']:
I'm not sure .

let's take the reverse. What we want is we want to identify NwkId or TrueNwkId which is equal to self.ListOfGroups[x]['Tradfri Remote']['Device Addr']. In that case x would be the Group where the Remote is part of. In other words

Code: Select all

if NwkId == self.ListOfGroups[x]['Tradfri Remote']['Device Addr'] or TrueNwkId == self.ListOfGroups[x]['Tradfri Remote']['Device Addr']:
   x is the Group to which NwkId or TrueNwkId belongs
With your solution with the OR instead of AND, the end result is as soon as NwkId is different of the Device in the group Or TrueNwkId is different then you continue. In the case where the NwkId of the end devce changed, you will NwkId != TrueNwkid and you will continue. This is not what is expected !
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Geronimoo
Posts: 9
Joined: Monday 09 July 2018 20:57
Target OS: -
Domoticz version:
Contact:

Re: zigate: IKEA remote, wrong group changing colors

Post by Geronimoo »

Hi. I looked into it a bit more and this is my conclusion;
The TrueNwkId and self.ListOfGroups[x]['Tradfri Remote']['Device Addr'] are the same thing with (possibly) different ids. It has nothing to do with the remote at all.
In my case they have the same value, which made the if statment become false immediately and found the first group, my living room for all controls.

You should be trying to match the controller to the TrueNwkId or Device Addr so I dare to say that this is the correct if statement (ta i trä)

if not (NwkId == self.ListOfGroups[x]['Tradfri Remote']['Device Addr'] or NwkId == TrueNwkId):
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest