-
-
Notifications
You must be signed in to change notification settings - Fork 106
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 changes on uniq_id and obj_id for dhw entities for HA discovery within 3.7 dev version #1714
Comments
can you provide some examples of the uniq_id and obj_id changes between 3.6.5 and 3.7-dev? |
There are some more changes for dhw circuits in 3.7. introduces with #1379. The new water device-class remap MM100 (dip8/9) and SM100 (dip3..) modules. For the exotic convservative people we can remap in the mqtt
here: Lines 857 to 861 in 3270139
|
Since you introduced the new device water, I ask myself why haven't you put all dhw entities in this new device. |
I started to check and test: It would be possible write a script (e.g. within node-red in HA) to rename the entities in the lovelace files and transferring the statistics to the new entities if MariaDB / mySQL is used. But I do not think that this is useful for non-experienced users. |
Because the modules are registered by device_id: 0x28 is mixer/dhw1, 0x20 is mixer/hc1, but 0x08 is boiler, boiler/dhw does not have a own id. Same for thermostat. |
Most important point is for me not to change boiler_nrgww into boiler_dhw_nrgdhw for use within energy dashboard. |
pretty sure you can rename entities (and ids) directly from the HA UI, haven't looked. There's also a script in https://emsesp.github.io/docs/Troubleshooting/#ha-has-messed-up-the-names-of-my-entities. But the point is here: we should respect the history somehow. I'll need to think of what to do, either a) build backwards compatibility or b) brute force it and annoy users. If EMS-ESP was commercial and we were financially impacted by user dissatisfaction, then I would think differently. It's still a hobby project outside my 80hr work week. So mny preference is still b. |
If your final decision is b, please make sure to keep boiler_nrgww in mqtt discovery. |
We already have the v3.4 compatibility as mqtt setting, we can add a setting for v3.6 updates.
First try, a bit tuning expected. |
I downloaded from here: https://github.com/MichaelDvP/EMS-ESP32/releases/tag/latest But the new ID Format is not shown / selectable |
refresh browser cache (reload page) |
Is the customization for RC310 still showing dhw2 entities? |
NO - It is ok.
As far as I can see for the moment, all entities should be ok by checking with mqtt-explorer. |
@MichaelDvP HA clone is up and running with a 2nd mqtt server and your 3.7.0-dev.5 firmware on my test gateway. I checked all lovelace ui's, automations and node-red scripts. Everything is running the same as on my HA production system. Well done ! |
Also in dashboard and customizations?
If youre playing around with 2nd server, downgrade to 3.6.5, set mqtt option to single/short or multi/short, recreate the HA settings. |
Weird behavior within HA.
There might be a problem with HA discovery mode. Or do you have a different idea? |
Hm, i think after upgrade you have 2 mqtt topics with config for the same unique_id. eg. |
what I always do I just go to MQTTExplorer, delete everything ems-esp and restart EMS-ESP. Then you get a clean install |
@tp1de I've adapted the topics, if it's not too frustrating you can test again. |
Yes this version works, since you use the same mqtt topics as in 3.6.5. |
@proddy Are all changes within 3.7.0-dev.5 from today? |
yes, thanks Thomas. |
As already discussed the latest dev versions of 3.7. are introducing changes for home assistant discovery for dhw enities.
In a consequence uniq_id and ob_id are changed for mqtt ha discovery. The results are new entity id's:
Everyone using the energy dashboard with nrgww entity are loosing all historical statistic data unless transferred by own sql-scripts.
I recommend to secure downwards compatibility with 3.6.5 within mqtt setup in respect to home assistant id's for all users with only one dhw circuit.
The text was updated successfully, but these errors were encountered: