msvisser / remeha_home

Remeha Home integration for Home Assistant
60 stars 13 forks source link

Consumption sensors BETA #41

Open msvisser opened 9 months ago

msvisser commented 9 months ago

This issue can be used to post problems with the beta versions (v0.1.14b0) containing the consumption sensors. The beta version can be installed via HACS and then the consumption sensors can be enabled under the "home" entity of the integration.

msvisser commented 9 months ago

I have just released v0.1.14b1 which addresses an issue with fetching the consumption data around midnight, which would cause the complete integration to become unavailable for ~1.5 hours.

m4v3r1ckNl commented 9 months ago

Thanks for the quick fix. Downloaded and updated, no issues so far. Keep you posted.

hugo-leij commented 9 months ago

Hi @msvisser,

thnx again for this update! In the beginning was everything ok. Unfortunately all my entities are not reachable.

Logger: custom_components.remeha_home.coordinator
Source: helpers/update_coordinator.py:290
Integration: Remeha Home (documentation,
issues)
First occurred: 00:11:58 (46 occurrences)
Last logged: 00:57:45

Unexpected error fetching remeha_home data: list index out of range
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers /update_coordinator.py", line 290, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/remeha_home/coordinator.py", line 87, in _async_update_data
    self.appliance_consumption_data[appliance_id] = consumption_data[
                                                    ^^^^^^^^^^^^^^^^^
IndexError: list index out of range
msvisser commented 9 months ago

@hugo-leij the error that you are experiencing is the same one I found. It should be fixed in v0.1.14b1. If that does not fix it for you, please let me know.

p2923260 commented 9 months ago

In the Energy dashboard the cost counters do not get refreshed (I put a fixed cost per KWh). Same issue in b0 and b1 drops.

See below a daily report (with inconsistent value, fixed price was 0.087EUR/KWh)

image

See below a weekly report (with inconsistent value, same as daily)

image
msvisser commented 9 months ago

@p2923260 that is weird behavior, as I don't think I have any control over the calculation of those values. What does the history of the sensors look like?

p2923260 commented 9 months ago

Tonight Baxi server experienced some major glitches and Remeha reload failed multiple times randomly due to timeout. Also MyBaxi app had the same problem (tested on Wifi and 5G networks) so I assume it was not network related, I will retest tomorrow. 2023-11-22 20:20:18.090 ERROR (MainThread) [custom_components.remeha_home.coordinator] Timeout fetching remeha_home data.

When I had patched the 0.13 Remeha version manually from Github (1 week ago) the gas cost counters appeared to be working right. Since then I installed the beta version but I have also upgraded HA (11.2 and 11.3) so I cannot finger point anyone. Just wondered if 0.14.b1 changed any entity format/type because the cost value appears to be always the same.

Looking for your directions what logs or counters I can provide to help.

p2923260 commented 9 months ago

Had to revert to 0.13 unfortunately. Baxi server failed multiple times and now they don't report measures any more. Using 0.14b1 fails uploading any resources so I had to revert back. Any clue what happened cloud side?

p2923260 commented 9 months ago

Remeha stopped providing power measures after this drop was deployed. 0.14b1 polling too frequent, it clashes with Remeha app. Fix required.

msvisser commented 9 months ago

I'm not experiencing any issues with the power measurements on my personal Home Assistant setup. It has been working fine for the last week. It seems that the Remeha Home servers we overloaded/unavailable for a while, but right now it works fine for me.

@p2923260 are you still experiencing problems with the beta version right now?

p2923260 commented 9 months ago

Beta version looks good but it collects only zero measures because Remeha does not collect them anymore. Not a fault in your integration but I'm worried they disabled the counter collection. I also tried to cancel and create a new Remeha account but no way. Just note the thermostat manages the measurement but Remeha cloud does not retrieve it. Can you see actual measures on your side?

msvisser commented 9 months ago

I'm not sure why you are not seeing any energy usage measurements. My personal setup has been working fine since the beginning, and I'm still seeing it update regularly. Can you see the usage information in the app, or is that also not working?

p2923260 commented 9 months ago

Problem solved, I had to delete the Remeha thermostat device and reset it to factory settings. Now collecting measurements and reporting to HA. Your 0.14b1 works very well.

jeroenvdd commented 8 months ago

I'm getting image

now too, I should check the logs when it started :)

Pirionfr commented 5 months ago

0.14b1 working great on my side too