-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Entity id for sensors within HA changes when updating name in web-ui #758
Comments
I did a quick test with Analog sensors, and you're correct, when you create one (say GPIO 31, name is Analog1) it will create the HA entity called Same with Dallas temperature sensors. It will also use the name, e.g. |
I think it is important to keep the unique id in ha when updating names within ems-esp to keep history in statistics as well the dashboard configuration. I haven't recognized issues with dashes within unique id. I would keep it. For analog sensor I would recommend to add gpio to the name ... e.g. sensor.analog_gpio_31 .... two times "sensor" ist not needed. |
... and for dallas the "value" in api seems to be rounded to full integer. { /api/dallassensor: |
can you create a new issue for this please. It's a new bug, and not related to HA |
... the whole issue is related to ha as well to api. Api responses for dallas and analog sensors are different anyhow. |
Yes dallas and anlog api is not in line with devices.
and add the value info with name,
For HA the info should change the object_id to from name to id also matching the topic.
same scheme for analogs, the id is there the gpio.
HA config with object_id containing gpio:
For digital_out we should also add a command, now we have |
tested it and works great in HA |
I recognized that while changing names for sensors (analog & dallas) within web-ui the entity id changes as well for HA.
I think only full name should change. Entity id should be kept.
The text was updated successfully, but these errors were encountered: