home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.38k stars 30.64k forks source link

Z-Wave entity is not correctly named #14057

Closed iMicknl closed 6 years ago

iMicknl commented 6 years ago

Home Assistant release with the issue: 0.66

Last working Home Assistant release (if known): 0.62? Not sure, looks like an issue since the entity_registry has been introduced

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

Component/platform: Z-Wave

Description of problem: When adding a new Z-Wave device and renaming it through the Z-Wave control panel, it won't be reflected on the entity_registry name. This makes a huge mess, since your Z-Wave devices will have multiple different names and you can't easily keep them apart. It only happens to devices that have been added recently.

For example, if your Z-Wave device is named multisensor2 through the control panel: binary_sensor.sensor (current) instead of binary_sensor.multisensor2_sensor (previous) sensor.neo_coolcam_unknown_type0003_id108d_burglar (current) instead of sensor.multisensor2_burglar

If I have a look at the same multisensor that has been added before: binary_sensor.multisensor_sensor sensor.multisensor_burglar

If I look at the values for binary_sensor.sensor, the friendly_name is updated with the Z-Wave name (multisensor2). But the entity itself isn't updated with the new name, which is still described in the Zwave Docs.

value_index: 0
node_id: 8
value_instance: 1
value_id: 72057594177126400
friendly_name: multisensor2 Sensor
iMicknl commented 6 years ago

(I solved it for myself by renaming the name in the entity_registry.yaml, however this isn't a recommended approach and in that case the Z-Wave documentation should be updated)

Landrash commented 6 years ago

I've had this problem on 2 different setups with zwave components.

dshokouhi commented 6 years ago

@iMicknl entity registry for zwave is covered here: https://www.home-assistant.io/docs/z-wave/control-panel/#z-wave-node-management

fanaticDavid commented 6 years ago

And this is a duplicate of #12430

iMicknl commented 6 years ago

Great, thanks for the clarification @fanaticDavid & @dshokouhi. I couldn't find any issue while searching on my keywords. :-)

However I think this should also be added to the documentation page I linked to, since the information there isn't accurate anymore.

dshokouhi commented 6 years ago

@iMicknl anyone can click on the "edit this page in github" link and submit a PR to update it. :)

balloob commented 6 years ago

Closing because it's a duplicate.