-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix: Home Assistant 2023.8 MQTT #20
base: main
Are you sure you want to change the base?
Conversation
Will this EVER make its way into a stable HASS agent release (still following LAB02-Research/HASS.Agent#337) ? |
As this is my PR I'll allow myself to answer. |
Got it, started migrating already an hour ago, still on the first client. I now have plenty of MQTT topics: many with the old naming and few already with the new naming (formerly: |
This PR:
"object_id" logic:
Unless explicitly assigned in given sensor's or command's code, it will follow "_" scheme
Sensor/command conversion logic:
Compatibility interface running the name change task:
Warning message when trying to add a sensor/command containing the device name, and HASS.Agent is connected to HA version 2023.8 and up:
Comparison between "normal" and converted sensors/commands:
Before:
After:
Since the entity IDs stay the same (conversion task has a check for this) the entity history is preserved for HA:
(examples are taken after conversion task was run on 11.08.2023)
(please note that the "cpuload" sensor values are garbage due to performance counter bug - #16)