homebridge-z2m icon indicating copy to clipboard operation
homebridge-z2m copied to clipboard

Homkit shows IEEE address and not friendly name

Open Tonitom opened this issue 2 years ago • 9 comments

When I add a device in z2m, then the IEEE address is displayed in Homebridge as the friendly name, when I change the name in z2m, the address name remains. That means before adding a zigbee device in z2m I have to turn off homebridge and after renaming I can start again.

Is there a trick?

Tonitom avatar Jun 28 '22 20:06 Tonitom

Please see #76 as well.

If I remember correctly, simply restarting Homebridge after the rename used to do the trick. As usual, a restart of the Home.app might also be needed. Does this work for you as well?

Unfortunately if this does not work anymore, I'm not really sure if I can do anything about it, as the plugin passes all the changes to the according characteristics.

itavero avatar Jun 28 '22 20:06 itavero

I deleted the device in z2m and reconnected it. Restart doesn't work.

Just some ideas after I also tested the mqttthings plugin.

  1. is it possible to disable automatic matching of the configuration? And ideally with a fake switch in Homekit for updating.

  2. and it would be great if the mapping is optional only by friendly name and not by IEEE address. For example, if a light bulb fails, I have to reconfigure everything in Homekit, if it's just by name, I only have to replace the bulb in z2m with the correct name.

Tonitom avatar Jun 30 '22 09:06 Tonitom

  1. is it possible to disable automatic matching of the configuration? And ideally with a fake switch in Homekit for updating.

You could exclude all devices by default and only include the devices you want to use, by manually setting exclude to false based on their friendly name or IEEE address. I believe there's an example of that in the documentation.

  1. and it would be great if the mapping is optional only by friendly name and not by IEEE address. For example, if a light bulb fails, I have to reconfigure everything in Homekit, if it's just by name, I only have to replace the bulb in z2m with the correct name.

Can you rephrase this? I'm not sure what you are asking for here.

itavero avatar Jun 30 '22 14:06 itavero

As I understand it, in HomeKit the Zigbee devices are created with friendly names and the IEEE address becomes the serial number. When a Zigbee bulb is replaced, a new bulb is created in HomeKit and the old bulb is deleted. Room mapping and automations then need to be edited.

If the mapping is done by friendly name only, then the replacement should be easier as Homebridge ideally does not need to provision it as a new device and can keep the old one.

Tonitom avatar Jun 30 '22 15:06 Tonitom

But it is a new device? Friendly names can also change, so a lot of annoying scenarios come with it.

Besides that, when replacing an official HomeKit device, you would have the same "issue".

PS: in the approximately 8 years of using smart bulbs, I never had to replace any.

itavero avatar Jun 30 '22 15:06 itavero

Possibly I am overthinking this. I come from Homematic and have already lost several actors and sensors. The devices that I could replace with the same type were automatically replaced in all automations and direct links, if I replaced the device with a newer generation, then the configuration was a pain. That's where my mindset comes from.

But I understand that a non-unique mapping can cause problems and together with Zigbee2MQTT and the MQTTThings plugin I have a reliable solution.

thanks

Tonitom avatar Jun 30 '22 19:06 Tonitom

I am experiencing the same, but only for buttons/switches.

Bulbs, blinds, etc are named correctly even without restart.

Buttons don't update their name by restart. Sometimes they update the name after a few hours (cashing??) or they simply don't update at all

smulle48 avatar Jul 03 '22 10:07 smulle48

Buttons don't update their name by restart. Sometimes they update the name after a few hours (cashing??) or they simply don't update at all

The Home.app might do caching, but these devices also have a quite specific service handler in this plugin. I can have a look if I can spot something in the plugin that might cause this.

itavero avatar Jul 03 '22 10:07 itavero

It appears that this issue did not have an update in quite some time. Please check if you can provide any additional information to help resolve this issue. If there isn't any activity in the next two weeks, this issue will be closed automatically. Thank you for your contributions!

stale[bot] avatar Aug 10 '22 02:08 stale[bot]