-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Home Assistant Discovery Names Not Correct #8462
Comments
I just encountered this problem, it started to happen as soon as I upgraded to 8.3.0. |
I also noticed on V8.2.0 that it worked. However the status sensor has the same issue in that version (instead of all of the sensors) |
With 8.3.0 friendly name is not used anymore for HA AD. |
That seems like a strange decision, is there a particular reason? Given that the module name is not directly configurable it makes it hard to differentiate between devices that use the same module within Home Assistant. Home assistant will add an index to each plug "_#" if there are more than one but that is assigned based on the order they come in. Additionally it makes it harder to identify the devices when setting things up in Home Assistant since a person would always have to identify the correct device and related sensors instead of them being named intuitively from the friendly name. Also, the template/module name per the documentation linked is used only for the sensors not the actual relay name (see screenshot from my original message) |
To further the comments above, and re-reading the updated documentation, It is indicated that "the device name in Home Assistant integrations which can be easily changed directly in the Home Assistant UI after the discovery is complete" which is true, but for devices that have a lot of values (the SP20 has 11 reported sensors) I would have to open up 11 sensors and the actual switch/relay entity for all 22 of my plugs and set the name AND entity ID for each device thats 528 fields to manage AFTER the discovery by hand PLUS the friendly name in the device itself. The alternative of which was to just set the friendly name on the device then |
Template name is free configurable. Template name can be different from module name. |
So to confirm the change was done not to improve home assistant integration but rather to free up flash space for other purposes? Additionally is it a bug that the relay is named using the friendly name and the sensors are named using the module name? Shouldn't all these be using the same name? Anyways, I can respect that the project is not directed toward HA specifically and will not press, I will however request some assistance identifying the appropriate commit that made this change. I can revert it and compile myself to achieve the desired result. Thanks for your clarification |
Hold on. I will investigate on it. #8298 reopened. |
@Cerothen I tnink you are happy now 😀 |
Just built the latest in the repository and it looks good, Should make the device management more straight forward! Thanks @effelle |
You're welcome, I hope all is fine now. |
PROBLEM DESCRIPTION
Using the latest Tasmota release build (v8.3.0) self compiled using the guide from the WIKI for platformIO the name supplied as well as the tasmota.bin.gz build supplied in the releases on the github project. When
SetOption19 1
is set the NAME sent for the sensors is the firmware default Friendly Name and not the system's current friendly name but the firmware default friendly name.REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:(Please use
weblog 4
for more debug information)TO REPRODUCE
Steps to reproduce the behavior:
Device Teckin SP20
Module Teckin US (59)
SetOption19 1
EXPECTED BEHAVIOUR
Name of sensors use currently configured friendly name as indicated here:
https://github.com/arendst/Tasmota/blob/development/tasmota/xdrv_12_home_assistant.ino#L697
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: