-
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
MQTT "Friendly Name" not provided since v8.2.0.5 #8298
Comments
By design on latest devs, see #8242 .
Two solutions:
|
I did try creating my own Template but found that it will use that template name for both the Device and the Model name in HA. I have ended up renaming the device in Home Assistant and that works for me. It's just a pain that if you add multiple devices in one go, you have to go into HA and remember to rename them before adding the next one otherwise you have no idea which device is which. |
Noted, thanks for your feedback. |
Maybe you could get it to send the hostname as the friendly name like ESPHome does. |
Wow. Upgrading from 8.2.0.4 to 8.3.0 is now impossible to keep your HA setup running nicely. If you have SetOption19 1 set to enable Auto Discovery all your devices rename themselves to "Generic" (the Template I use), and then HA creates new sensors/switches etc as generic_switch. Then, you can't rename anything, as they all share the same names.
I think a warning should go on the release notes as upgrading to the latest release is now a really bad end user experience ;-( |
Ok, i have to say the "idea" behind renaming all your devices in HA is a great one... but the Upgrade requires that you rename all your devices to the SAME name before upgrading. That way HA knows to ignore the MQTT Sent names, and keeps the current ones. Rock on Tasmota!! :-) |
Richard, |
Actually, I've attempted adding a new device to a new setup and it still goes badly. When I first type 'SetOption19 1' the single power monitor is added to HA, However, when I restart the Wemos D1, multiple sensors are added to HA. For example this: sensor.grid_monitor_house_energy_reactivepower Gets changed to this: sensor.grid_monitor_house_energy_reactivepower_2 It seems that ALL of my original sensors have been renamed to _2, and some new _1 ones have been created. I've even got some crazy ones such as this: sensor.grid_monitor_house_energy_current_2_2 |
I'm using it since I introduced it and I don't have this issue with HA 109.0 (didn't upgrade to latest yet). |
Oh, and this is with a deleted, and re-installed MQTT server. So everything is fresh. |
Ah, this seems to be due to the Template Name being truncated to 14chars on a 8.2.0 -> 8.3.0 upgrade? Before Upgrade at 8.2.0 the Template I created was called "Grid Monitor House" Module, and after when 8,3.0 booted it was just ""Grid Monitor H" Module, |
Let me check with the new HA release. Hold on. |
I can reproduce the issue with long names. |
PROBLEM DESCRIPTION
When looking in Home Assistant's list of auto-discovered MQTT devices the Device is named as the Template, and not the Friendly Name.
In the picture above you can see here, I have a "Boys Globe", and a "Grid Monitor House" device.
The Boys Globe is running v8.2.0, and the incorrectly named one is running v8.2.0.5
This is a picture of both devices running v8.2.0
REQUESTED INFORMATION
TO REPRODUCE
Install v8.2.0 and set a nice friendly MQTT name.
Look for this name in Home Assistant.
Upgrade to v8.2.0.5 and when the device restarts, the name gets changed to the Template, and not the Friendly Name.
I seem to remember that v8.2.0.4 was working fine too.
EXPECTED BEHAVIOUR
The device name should be the expected one.
The text was updated successfully, but these errors were encountered: