Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.08k stars 1.68k forks source link

Light entity missing in HASS, other entities exist #4251

Closed syphernl closed 4 years ago

syphernl commented 4 years ago

Bug Report

What happened

I have a bunch of Tradfri lights in my Z2M network. One of those lights suddenly disappeared from HomeAssistant (not unavailable, just completely gone). The linkquality and update_available sensors are there. It still shows up on the Zigbee Map.

I have deleted it from the network and paired it again, however the light still doesn't show up.

During re-pairing it seems to have send the correct config details for the bulb for auto-discovery in HASS:

info  2020-09-03 09:11:28: MQTT publish: topic 'homeassistant/light/0x14b457fffe77f4b8/light/config', payload '{"availability_topic":"zigbee2mqtt/lamp_overloop/availability","brightness":true,"brightness_scale":254,"color_temp":true,"command_topic":"zigbee2mqtt/lamp_overloop/set","device":{"identifiers":["zigbee2mqtt_0x14b457fffe77f4b8"],"manufacturer":"IKEA","model":"TRADFRI LED bulb E27 1000 lumen, dimmable, white spectrum, opal white (LED1732G11)","name":"lamp_overloop","sw_version":"Zigbee2MQTT 1.14.4"},"json_attributes_topic":"zigbee2mqtt/lamp_overloop","name":"lamp_overloop_light","schema":"json","state_topic":"zigbee2mqtt/lamp_overloop","unique_id":"0x14b457fffe77f4b8_light_zigbee2mqtt"}'

If I send off to zigbee2mqtt/lamp_overloop/set the light turns off properly. There are no errors/warnings in the logs of HA.

What did you expect to happen

The light to show up in HomeAssistant

How to reproduce it (minimal and precise)

Debug Info

Zigbee2MQTT version: 1.14.4 Adapter hardware: CC2531 Adapter firmware version: 20190619

syphernl commented 4 years ago

I fixed it by removing any references to 0x14b457fffe77f4b8 in files within the .storage folder of HASS. After this the light was properly discovered again. ISTM this might be a HASS bug, although very hard / impossible to reproduce at this time.

rodsan0 commented 3 years ago

Hi!

I replicated this by renaming the friendly_name of my Tradfri lights on z2m's config.

G5K-org commented 5 months ago

I could also replicate it by renaming one of my AwoX Bulbs. I fixed it by removing core.entity_registry in ~/.homeassistant/.storage