Zha: Osram/Ledvance smart+ mini remote triggers another zigbee device out of the box, annoying confusion

hi there.
I am using ha in vmware vm and i am running the skyconnect stick. zigbee network just setup, was runnig well. HAOS is up to date.

I did connect a power nous power plug switch with powermeter:

Quirk: zhaquirks.tuya.ts011f_plug.Plug

I did connect a Lightify Switch Mini:

Quirk: zhaquirks.osram.switchmini.OsramSwitchMini

In fact its actually a ledvance device, but only rebranded i believe
(I plan to set it up using a blueprint: zha-deconz-zigbee2mqtt-osram-smart-switch-mini-universal-blueprint-all-actions-double-click-events-control-lights-media-players-and-more-with-hooks)

But now I encounter strange behaviour:
If I press the down button on the osram device, it turns off the nous power plug (Does not turn on with second press).

In zha it just states:

OSRAM Lightify Switch Mini Remote Button Short Press - Button 3 event was fired

The other buttons seem to have no effect so far. They use a rather special command, although (for a new, unconfigured device)

“OSRAM Lightify Switch Mini Move To Color Temp event was fired with parameters: {‘color_temp_mireds’: 370, ‘transition_time’: 10, ‘options_mask’: None, ‘options_override’: None}”

“OSRAM Lightify Switch Mini Remote Button Short Press - Button 2 event was fired with parameters: {‘level’: 254, ‘transition_time’: 10}”

I just do not know why/how, because both devices are right out of the box…I did absolutely no configuration to both devices. It seems to me that zha interprets/initialises the Osram in a strange way?

What should i do? I have got more devices of the same types, too… Is this just random cooincidence? Can I kind of reset the actions/link

Assistance is very much appreciated…

look in your logbook or the entity history for the Nous plug and see what HA says turned it on/off

If i check the entity logbook it just states

Entity
steckdose nous schreibtisch Switch
March 23, 2023

steckdose nous schreibtisch Switch turned off
11:51:38 PM - 19 minutes ago

If i turn it on via webgui:
steckdose nous schreibtisch Switch turned on triggered by service switch.turn_on
11:50:48 PM - 19 minutes ago - Christoph

If I turn it on via device button:
steckdose nous schreibtisch Switch turned on
11:50:05 PM - 20 minutes ago

I just added another power plug and another osram remote.

The down button on either osram remote will turn both plugs off, reproducible.

I think those log entries with triggered by service switch.turn_on mean it was turned on externally although I’m not too sure as I don’t use ZHA myself. I think if it was internal it would specifiy an entity/script/automation etc.

I know you can pair zigbee devices with each other directly, maybe that’s what’s going on here… Or something like nodered involved?

Edit: Maybe try the reset pairing instructions for the remote?

I tried to gather more information:
I did enable logging, as described in the zha documentation, but have to say I cant figure out whats happening…

log can be found here: 2023-03-24 07:21:13.363 WARNING (SyncWorker_3) [homeassistant.loader] We found a - Pastebin.com

I did a system reboot, then enabled file addon. The action starts about 07:25:00 (± some seconds)
I turned off the the power plug switch and then turned it on again in the dashboard, several times. The second switch in my setup is turned off by the first command and stays so.

I assume guess it is as follows:

0x36fa=trigged osram remote
0x3F5A=second osram remote
0xe63c=nous plug off and reactivated
0xbbcf=nous plug off and stays so

The command is triggered at 07:25:05.613?
I wonder if the switch is sending an system-wide “off” command of some kind?

For clarification: Please note that i have another zigbee network running on a hue bridge, that is connected to ha via the hue integration. It is working on another channel. The strange behaviour is independet, i unplugged the bridge, happens anyway.

Maybe someone can help and read this and tell whats really going on?

I have found that if I add some IKEA motion sensors to my system when they are too close to IKEA bulbs, the motion sensors can somehow directly control the bulbs. This isn’t surprising since they are supposed to do this for people who don’t have hubs. So maybe you have someone linked them directly?
-David

@david, @roger Thanks for the assistance.

I did find out there is a ton of relevant information about this behaviour, e.g.

OSRAM issues with Broadcast Messages and all lights · Issue #962 · Koenkk/zigbee2mqtt

Osram Smart+ Mini Switch broadcasting and turning all other Osram devices on (Plugs, Light bulbs, LED Strips etc.) · Issue #385 · EPMatt/awesome-ha-blueprints

[BUG] Osram switch mini · Issue #499 · zigpy/zha-device-handlers

Lightify Switch Mini

BUT
For me (and I hope everyone who reads this) it seems the issue is solved.
Just reset the device (hold middle+down button)
pair the device (hold up+middle button), add in zha VERY CLOSE TO COORDINATOR
wake the device with button press
“Reconfigure” from zha device page
Wohoo!! - it directly binds to the coordinator, no more silly broadcasts. Linke quality seems good also.
Can be so easy, did cost me hours…

FWIW I had an issue with some lights seemingly randomly going on/off - turned out that it was due to the remote and light(s) being in the same group. In one case I actually had a hue bridge operating (so I could update the firmware) with an outdoor motion sensor in the “front yard” group, so whenever someone turned up at the front door and triggered the sensor, HA would turn the front porch lights on but Hue would also turn on the lights in the garden. It sort of makes sense that this happens by default with Hue, as it just assumes that if you have a remote or motion sensor in a room you want it to manage all the lights in that room… maybe… anyhow, since then if I’ve had issues I would always check the group settings under zha in case there was something funky happening there.

Recently though I discovered I had an issue with a Tradfri on/off switch that was turning on/off lights as expected, but was also turning on/off a Xiaomi power switch (all in zha). I tried removing, resetting and adding them back in as well as checking the groups - no luck. I’ve now given up and retired the Xiaomi switch as I suspect it was somehow listening to the on/off message being broadcast by the Tradfri remote.