golles / ha-kamstrup_403

Custom component that integrates the Kamstrup 403 heating system into Home Assistant. This component does also support a few other heating systems
MIT License
70 stars 10 forks source link

First reading fails #92

Closed golles closed 1 year ago

golles commented 1 year ago

Did you read the instructions?

The problem

After restarting HA, the entities remain unavailable till the next update of the component

Integration version

branch: main

Home Assistant version

core-2023.5.3

Python version

3.10.11

Home Assistant log

2023-05-18 16:48:57.325 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration kamstrup_403 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
...
2023-05-18 16:49:00.707 DEBUG (MainThread) [custom_components.kamstrup_403] Set up entry, with scan_interval of 600 seconds and timeout of 0.5 seconds
2023-05-18 16:49:00.708 DEBUG (MainThread) [custom_components.kamstrup_403] Start update
2023-05-18 16:49:00.708 ERROR (MainThread) [custom_components.kamstrup_403] Finished update, No readings from the meter. Please check the IR connection
2023-05-18 16:49:00.718 DEBUG (MainThread) [custom_components.kamstrup_403] Finished fetching kamstrup_403 data in 0.009 seconds (success: True)
2023-05-18 16:49:03.771 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 60
2023-05-18 16:49:03.772 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 86
2023-05-18 16:49:03.772 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 87
2023-05-18 16:49:03.773 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 68
2023-05-18 16:49:03.774 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 99
2023-05-18 16:49:03.774 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 1004
# Triggered manual update
2023-05-18 16:50:03.529 DEBUG (MainThread) [custom_components.kamstrup_403] Start update
2023-05-18 16:50:03.529 DEBUG (MainThread) [custom_components.kamstrup_403] Get values for [60, 86, 87, 68, 99, 1004]
2023-05-18 16:50:04.208 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 60, value: 42.910000000000004 GJ
2023-05-18 16:50:04.208 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 86, value: 36.21 °C
2023-05-18 16:50:04.208 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 87, value: 29.88 °C
2023-05-18 16:50:04.208 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 68, value: 310.818 m³
2023-05-18 16:50:04.209 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 99, value: 0.0 
2023-05-18 16:50:04.209 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 1004, value: 20365.0 h
2023-05-18 16:50:04.209 DEBUG (MainThread) [custom_components.kamstrup_403] Finished update, 0 out of 6 readings failed
2023-05-18 16:50:04.209 DEBUG (MainThread) [custom_components.kamstrup_403] Finished fetching kamstrup_403 data in 0.680 seconds (success: True)

Diagnostics

No response

Additional information

The state is attempted to be updated before the entities are registered