Fix: Home Assistant 2023.8 MQTT#20
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)