-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
rtl_433_mqtt_hass: MQTT entity name starts with device name (Home Assistant 2023.8.0) #2591
Comments
If I read that right the first Does this need to be a toggle? This feels like it won't be compatible with pre HA 2023.8.0? @noahwilliamsson PR if you like and it's clear what to do. Also maybe @unverbraucht can help? |
I'm unclear on the details and will try to have a look -- but my take is that rtl_433 master branch need only be compatible with the most recent release of HA. rtl_433 doesn't even have releases on a regular basis, so it seems beyond reasonable to try to maintain compat with old HA releases. People who want to run old HA can run old scripts from the repo. But I think the right thing to do is update HA regularly, for all the usual "run the latest stable release" reasons. |
Sounds reasonable. (sidenote: something in HA broke for me when upgrading from 2023.4.6 and I rolled back and didn't update since) |
Yes, seems that we need to drop the device name from the entity_name, in the release notes they say: This means any MQTT entity which is part of a device will automatically have its friendly_name attribute prefixed with the device name. Today I'll look into the other issue #2554 , maybe I can take a stab at both. |
Actually it looks like HA already goes ahead and removes the device name with the current release. This is latest HA with no changes from my side: BTW would it make sense to rename entities to something more verbose like "temperature" instead of "T"? The original topics that RTL433 create are already named "temperature" and so on, so we could reuse these. |
…dable entity names
* Fixes merbanan#2591: Remove device name from entity name, use more readable entity names * Remove changes that slipped in from merbanan#2593
As of Home Assistant 2023.8.0, the
examples/rtl_433_mqtt_hass.py
script causes Home Assistant to log warnings such as:There's a bug report at home-assistant/core#97656 for a different Home Assistant integration. Via links in that report, I found:
There's an example of how they want things to be named in:
The thread also refers to the MQTT breaking changes re: naming in the Home Assistant 2023.8.0 release notes.
The text was updated successfully, but these errors were encountered: