Skip to content
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

After Update from 3.6.2 to 3.6.3 some entities are not available in HA any more #1442

Closed
DoubleYou2 opened this issue Nov 20, 2023 · 10 comments
Labels
bug Something isn't working
Milestone

Comments

@DoubleYou2
Copy link

PROBLEM DESCRIPTION

RC310 / Buderus GB125 / EMS-ESP V3.6.3 and HA latest version:

After updating from V3.6.2 (or from 3.6.3-dev6c) some entities are not available in home assistant (HA) any more.
Some entities are incomplete (regarding attributes) and unavailable also.

Here is an example for climate.thermostat_hc1.

This screenshot shows state of entity climate.thermostat_hc1 with V3.6.3-dev6c (similar to V3.6.2):

HC1 available

This screenshot shows state of entity climate.thermostat_hc1 with V3.6.3 :
HC1 unavailable

From my (user) perspective this issue is not caused by home assistant. Replacing firmware 3.6.3 (released version) with 3.6.2 or 3.6.3-dev6c immediately solves this issue. Regarding release notes for V3.6.3 I don't think this issue has to do with breaking changes, or does it?

@proddy
Copy link
Contributor

proddy commented Nov 20, 2023

Do you see the values in the EMS-ESP web dashboard? Are there errors in the log of EMS-ESP or HA? Do they come back after a restart?

@MichaelDvP
Copy link
Contributor

Same issue as #1440, i've made a fix, but no feedback yet.

@DoubleYou2
Copy link
Author

DoubleYou2 commented Nov 20, 2023

Yes, I see all values in the EMS-ESP dashboard.
Yes, due to missing entities and attributes, HA log is full of error-messages (because my scripts try to access these attributes).
Restart of HA or EMS-ESP do not change situation.

Is there already a fix for test available?

@proddy
Copy link
Contributor

proddy commented Nov 20, 2023

I'm still thinking of what could have caused this. Do you see anything interesting in HA->devices->mqtt ?

And no fix yet as I'm still on a bus on my way home. We're not google !

@DoubleYou2
Copy link
Author

DoubleYou2 commented Nov 20, 2023

Thanks for your support.
In HA-> devices -> MQTT there is a red exclamation mark regarding climate.thermostat_hc1 stating "unavailable", but nothing really special.

My question regarding an available fix is because of MichaelDvP comment on a similar issue he is working on...

@MichaelDvP
Copy link
Contributor

'm still thinking of what could have caused this.

The hc->mode is not set because in this line the if is wrong

if (telegram->read_value(mode, 0)) {

A second bug is that i have missed the to adapt the setting here:

hc->mode = set_mode_value ? 1 : 0;

The fix is MichaelDvP@aed4596
and now confirmed working in #1440.

@DoubleYou2 Please also test https://github.com/MichaelDvP/EMS-ESP32/releases/tag/latest, i think this wll fix the bug.

@proddy
Copy link
Contributor

proddy commented Nov 21, 2023

@DoubleYou2 if you can try that build and let us know - then I'll do a patch

@DoubleYou2
Copy link
Author

OK. I checked the new build v3.6.4.-dev_0 and my reported problem is fixed!
I guess there will be a patch based on v3.6.3 ?

Thanks for your incredible fast support.

Another question which has nothing to do with update to v3.6.3:
There are other entities which are not available (which I don't use, so I don't care) even in earlier versions like 3.6.2 (?):

  • sensor.ems_espheizung_shower_duration
  • sensor.boiler_dhw_energy_dhw
  • sensor.thermostat_hc1_heatpump_operating_state
  • sensor.ems_esp_shower_duration
  • sensor.ems_esp_shower_timestamp

Are these entities not supported any more?

@proddy
Copy link
Contributor

proddy commented Nov 21, 2023

thanks, we'll work on the patch.

Regarding those other entities, the shower ones are still there but will only show in HA after the first shower. hpoperatingstate is still there so maybe it's waiting on a value to come in. dhw_energy_dhw was renamed because of the duplicate dwh (there was a GH issue for this). Not sure what it's renamed to now, perhaps total energy warm supplied. In general it's best to look at the shortnames and not the full translated names which helps us locate the actual entity. And another good practice is when upgrading versions delete any old HA dashboards/cards and re-add them directly from HA->Devices&Service->MQTT

proddy added a commit to proddy/EMS-ESP32 that referenced this issue Nov 21, 2023
proddy added a commit that referenced this issue Nov 21, 2023
@DoubleYou2
Copy link
Author

... ok. Thanks...

@proddy proddy closed this as completed in cff5b8c Nov 21, 2023
@proddy proddy added the bug Something isn't working label Nov 21, 2023
@proddy proddy added this to the v3.6.3 milestone Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants