homebridge-z2m
homebridge-z2m copied to clipboard
Homkit shows IEEE address and not friendly name
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?
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.
I deleted the device in z2m and reconnected it. Restart doesn't work.
Just some ideas after I also tested the mqttthings plugin.
-
is it possible to disable automatic matching of the configuration? And ideally with a fake switch in Homekit for updating.
-
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.
- 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.
- 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.
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.
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.
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
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
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.
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!