joggs / home_assistant_ebeco

Integration for Ebeco thermostats
28 stars 14 forks source link

Sensors not updating #16

Closed TurboJonte closed 2 years ago

TurboJonte commented 2 years ago

Since a while the sensors for relay, power and energy is not updating. Anyone else with the same issue?

bhr74 commented 2 years ago

No, its seems to work fine here.

TurboJonte commented 2 years ago

Strange, I removed and added the integration again with no luck.

TurboJonte commented 2 years ago

The sensor for energy seems to update after a restart, but does not continue to do so.

TurboJonte commented 2 years ago

The log after a restart, it's fetching data once after Home Assistant has started then it does not seem to fetch data again.

2022-03-04 18:36:22 WARNING (SyncWorker_9) [homeassistant.loader] We found a custom integration ebeco which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-03-04 18:36:32 DEBUG (MainThread) [custom_components.ebeco] Attempting to fetch new data from Ebeco API
2022-03-04 18:36:32 DEBUG (MainThread) [custom_components.ebeco] Attempting to fetch new data from Ebeco API
2022-03-04 18:36:36 DEBUG (MainThread) [custom_components.ebeco] Received data: {'displayName': 'Hall nere', 'powerOn': True, 'selectedProgram': 'Manual', 'programState': 'Standby', 'temperatureSet': 17.0, 'temperatureFloor': 17.0, 'temperatureRoom': 23.0, 'relayOn': False, 'minutesToTarget': 0, 'remoteInput': False, 'hasError': False, 'errorMessage': None, 'todaysOnMinutes': 60, 'installedEffect': 3000, 'building': {'name': 'Kvarnbergsvägen 5', 'id': 1014}, 'id': 1485}
2022-03-04 18:36:36 DEBUG (MainThread) [custom_components.ebeco] Finished fetching Ebeco data in 4.328 seconds (success: True)
2022-03-04 18:36:37 DEBUG (MainThread) [custom_components.ebeco] Received data: {'displayName': 'Badrum nere', 'powerOn': True, 'selectedProgram': 'Manual', 'programState': 'Standby', 'temperatureSet': 18.0, 'temperatureFloor': 18.0, 'temperatureRoom': 19.0, 'relayOn': False, 'minutesToTarget': 0, 'remoteInput': False, 'hasError': False, 'errorMessage': None, 'todaysOnMinutes': 526, 'installedEffect': 500, 'building': {'name': 'Kvarnbergsvägen 5', 'id': 1014}, 'id': 1486}
2022-03-04 18:36:37 DEBUG (MainThread) [custom_components.ebeco] Finished fetching Ebeco data in 5.174 seconds (success: True)
2022-03-04 18:37:32 DEBUG (MainThread) [custom_components.ebeco.ebeco_device] Going to apply changes {'id': 1485, 'action': <EbecoClimateActions.SET_POWERSTATE: 'set_powerstate'>, 'state': True}
2022-03-04 18:37:32 DEBUG (MainThread) [custom_components.ebeco.ebeco_device] Going to apply changes {'id': 1486, 'action': <EbecoClimateActions.SET_POWERSTATE: 'set_powerstate'>, 'state': True}
2022-03-04 18:37:32 DEBUG (MainThread) [custom_components.ebeco] Manually updated Ebeco data
2022-03-04 18:37:32 DEBUG (MainThread) [custom_components.ebeco] Manually updated Ebeco data
2022-03-04 18:38:02 DEBUG (MainThread) [custom_components.ebeco.ebeco_device] Going to apply changes {'id': 1485, 'action': <EbecoClimateActions.SET_POWERSTATE: 'set_powerstate'>, 'state': True}
2022-03-04 18:38:02 DEBUG (MainThread) [custom_components.ebeco.ebeco_device] Going to apply changes {'id': 1486, 'action': <EbecoClimateActions.SET_POWERSTATE: 'set_powerstate'>, 'state': True}
2022-03-04 18:38:02 DEBUG (MainThread) [custom_components.ebeco] Manually updated Ebeco data
2022-03-04 18:38:02 DEBUG (MainThread) [custom_components.ebeco] Manually updated Ebeco data
2022-03-04 18:38:32 DEBUG (MainThread) [custom_components.ebeco.ebeco_device] Going to apply changes {'id': 1485, 'action': <EbecoClimateActions.SET_POWERSTATE: 'set_powerstate'>, 'state': True}
2022-03-04 18:38:32 DEBUG (MainThread) [custom_components.ebeco.ebeco_device] Going to apply changes {'id': 1486, 'action': <EbecoClimateActions.SET_POWERSTATE: 'set_powerstate'>, 'state': True}
2022-03-04 18:38:32 DEBUG (MainThread) [custom_components.ebeco] Manually updated Ebeco data
2022-03-04 18:38:32 DEBUG (MainThread) [custom_components.ebeco] Manually updated Ebeco data
2022-03-04 18:39:02 DEBUG (MainThread) [custom_components.ebeco.ebeco_device] Going to apply changes {'id': 1485, 'action': <EbecoClimateActions.SET_POWERSTATE: 'set_powerstate'>, 'state': True}
2022-03-04 18:39:02 DEBUG (MainThread) [custom_components.ebeco.ebeco_device] Going to apply changes {'id': 1486, 'action': <EbecoClimateActions.SET_POWERSTATE: 'set_powerstate'>, 'state': True}
TurboJonte commented 2 years ago

I found the cause to why the sensors was not updating. I had an Node-red flow that was triggered with a 30s interval that either turned on or off the thermostats if the battery for the PV-system was active.