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

Read multiple values in chunks of max 8 values #66

Closed golles closed 1 year ago

golles commented 1 year ago

I've enabled 10 sensors, see below the log output:

Log:

2023-01-28 15:45:58.213 DEBUG (MainThread) [custom_components.kamstrup_403] Set up entry, with scan_interval of 600 seconds and timeout of 0.5 seconds
2023-01-28 15:46:01.498 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 60
2023-01-28 15:46:01.499 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 86
2023-01-28 15:46:01.499 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 87
2023-01-28 15:46:01.499 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 68
2023-01-28 15:46:01.500 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 149
2023-01-28 15:46:01.500 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 150
2023-01-28 15:46:01.501 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 146
2023-01-28 15:46:01.501 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 147
2023-01-28 15:46:01.501 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 113
2023-01-28 15:46:01.501 DEBUG (MainThread) [custom_components.kamstrup_403] Register command 1004
2023-01-28 15:46:01.743 DEBUG (MainThread) [custom_components.kamstrup_403] Start update
2023-01-28 15:46:01.743 DEBUG (MainThread) [custom_components.kamstrup_403] Get values for [60, 86, 87, 68, 149, 150, 146, 147]
2023-01-28 15:46:02.529 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 60, value: 35.657000000000004 GJ
2023-01-28 15:46:02.529 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 86, value: 38.61 °C
2023-01-28 15:46:02.529 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 87, value: 33.77 °C
2023-01-28 15:46:02.529 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 68, value: 259.912 m³
2023-01-28 15:46:02.529 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 149, value: 77.0 °C
2023-01-28 15:46:02.529 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 150, value: 43.0 °C
2023-01-28 15:46:02.529 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 146, value: 77.0 °C
2023-01-28 15:46:02.529 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 147, value: 43.0 °C
2023-01-28 15:46:02.529 DEBUG (MainThread) [custom_components.kamstrup_403] Get values for [113, 1004]
2023-01-28 15:46:02.850 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 113, value: 0.0 
2023-01-28 15:46:02.850 DEBUG (MainThread) [custom_components.kamstrup_403] New value for sensor 1004, value: 17725.0 h
2023-01-28 15:46:02.850 DEBUG (MainThread) [custom_components.kamstrup_403] Finished update, 0 out of 10 readings failed
2023-01-28 15:46:02.850 DEBUG (MainThread) [custom_components.kamstrup_403] Finished fetching kamstrup_403 data in 1.108 seconds (success: True)
codecov[bot] commented 1 year ago

Codecov Report

Base: 73.79% // Head: 74.11% // Increases project coverage by +0.32% :tada:

Coverage data is based on head (9d14aa0) compared to base (c123a44). Patch coverage: 54.54% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #66 +/- ## ========================================== + Coverage 73.79% 74.11% +0.32% ========================================== Files 7 7 Lines 332 340 +8 ========================================== + Hits 245 252 +7 - Misses 87 88 +1 ``` | [Impacted Files](https://codecov.io/gh/golles/ha-kamstrup_403/pull/66?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sander) | Coverage Δ | | |---|---|---| | [...tom\_components/kamstrup\_403/pykamstrup/kamstrup.py](https://codecov.io/gh/golles/ha-kamstrup_403/pull/66?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sander#diff-Y3VzdG9tX2NvbXBvbmVudHMva2Ftc3RydXBfNDAzL3B5a2Ftc3RydXAva2Ftc3RydXAucHk=) | `51.12% <50.00%> (-0.04%)` | :arrow_down: | | [custom\_components/kamstrup\_403/\_\_init\_\_.py](https://codecov.io/gh/golles/ha-kamstrup_403/pull/66?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sander#diff-Y3VzdG9tX2NvbXBvbmVudHMva2Ftc3RydXBfNDAzL19faW5pdF9fLnB5) | `86.20% <55.55%> (+1.86%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sander). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sander)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.