Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT light isn't added to the entity register, doesn't have a button to change name & entity id #16600

Closed
nikolaykasyanov opened this issue Sep 13, 2018 · 4 comments · Fixed by #16721

Comments

@nikolaykasyanov
Copy link
Contributor

Home Assistant release with the issue:

0.77.3

Operating environment (Hass.io/Docker/Windows/etc.):

Docker, Raspberry Pi 3

Component/platform:

https://www.home-assistant.io/components/mqtt/

Description of problem:

I'm using zigbee2mqtt to expose ZigBee devices to Home Assistant. Until recently I only had some Aqara sensors and couple of plugs. I've added an IKEA bulb to the mix and encountered an issue. It looks like the bulb isn't added to the entity registry and thus doesn't have the cog button to edit its id and name in the frontend (I'm not sure whether these two facts are related though, please correct me if I'm wrong). The rest of the devices from zigbee2mqtt are present in the entity registry, their name & id can be edited.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

mqtt:
  broker: 127.0.0.1
  discovery: true
  username: <edited>
  password: <edited>

Additional information:
zigbee2mqtt posts the following payload to the homeassistant/light/0x90fd9ffffe8287ab/light/config topic:

{"brightness":true,"color_temp":true,"platform":"mqtt_json","command_topic":"zigbee2mqtt/0x90fd9ffffe8287ab/set","state_topic":"zigbee2mqtt/0x90fd9ffffe8287ab","availability_topic":"zigbee2mqtt/bridge/state","name":"0x90fd9ffffe8287ab","unique_id":"0x90fd9ffffe8287ab_light_zigbee2mqtt"}
@nikolaykasyanov nikolaykasyanov changed the title MQTT light isn't added to the entity register, doesn't have a cog icon to change name & entity id MQTT light isn't added to the entity register, doesn't have a button to change name & entity id Sep 13, 2018
@nikolaykasyanov
Copy link
Contributor Author

I wonder if it's related: #16303.
Upgrading to 0.78.0b2 didn't help though.

@bieniu
Copy link
Member

bieniu commented Sep 17, 2018

You are using the mqtt_json light component and I added a unique_id to the mqtt light in this PR. mqtt_json light doesn't yet support of unique_id.

@nikolaykasyanov
Copy link
Contributor Author

@bieniu thanks for elaborating. Is it planned by any chance?

I could take a look if not, do you have any idea on its complexity compared to your PR to mqtt light?

@bieniu
Copy link
Member

bieniu commented Sep 19, 2018

@nikolaykasyanov It will be very similar to my PR for the mqtt light component. I don't have any mqtt_json light so I don't have the possibility to test the correctness of the change.

@ghost ghost added the in progress label Sep 19, 2018
nikolaykasyanov added a commit to nikolaykasyanov/home-assistant that referenced this issue Sep 19, 2018
Applies changes from home-assistant#16303 to mqtt_json component.
Fixes home-assistant#16600.
@ghost ghost removed the in progress label Sep 20, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants