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

Supported Device: Kamstrup 402 #27

Closed bjwo closed 1 year ago

bjwo commented 1 year ago

Meter

Kamstrup 402

More info

Kamstrup402 Works with Kamstrup 402. I struggled for a while to get the position right. The trick was to set the IR reader lower than I had first assumed. Without using paper in between or adding extra distance - or other tricks that are mentioned in different threads around the topic.

golles commented 1 year ago

Awesome, thank you for sharing!

ArthurBijGithub commented 7 months ago

Hey @bjwo, Quite new to HA, I'm trying to get data out of my Kamstrup 402. The log in HA says: Finished update, No readings from the meter. Please check the IR connection After playing with both the position of the IR-reader and the Serial read timeout I still can't get anything else. In order to ease the search: What is the Serial read timeout you set here? This hopefully helps the search for the right spot for the reader. If you have anything else that might help, please let me know.

bjwo commented 7 months ago

Hi @ArthurBijGithub , I have mine set to: Scan interval 600s Serial read timeout 0.2

But this reminds me- I have been meaning to experiment with the scan interval, trying to increase it to the max interval without it timing out. The values above have been running reliably for some months now.

ArthurBijGithub commented 7 months ago

Thanks @bjwo, This immediately gives some data:

(MainThread) [custom_components.kamstrup_403] Unregister command 60
(MainThread) [custom_components.kamstrup_403] Unregister command 68
(MainThread) [custom_components.kamstrup_403] Unregister command 99
(MainThread) [custom_components.kamstrup_403] Unregister command 113
(MainThread) [custom_components.kamstrup_403] Unregister command 1001
(MainThread) [custom_components.kamstrup_403] Unregister command 1004
(MainThread) [custom_components.kamstrup_403] Set up entry, with scan_interval of 600 seconds and timeout of 0.2 seconds
(MainThread) [custom_components.kamstrup_403] Register command 60
(MainThread) [custom_components.kamstrup_403] Register command 68
(MainThread) [custom_components.kamstrup_403] Register command 99
(MainThread) [custom_components.kamstrup_403] Register command 113
(MainThread) [custom_components.kamstrup_403] Register command 1001
(MainThread) [custom_components.kamstrup_403] Register command 1004
(MainThread) [custom_components.kamstrup_403] Start update
(MainThread) [custom_components.kamstrup_403] Get values for [60, 68, 99, 113, 1001, 1004]
(MainThread) [custom_components.kamstrup_403.pykamstrup] Write: 80 3f 10 1b f9 00 3c 00 44 00 63 00 71 03 e9 03 ec 1a aa 0d
(MainThread) [custom_components.kamstrup_403.pykamstrup] Rx Timeout
(MainThread) [custom_components.kamstrup_403] No value for sensor 60
(MainThread) [custom_components.kamstrup_403] No value for sensor 68
(MainThread) [custom_components.kamstrup_403] No value for sensor 99
(MainThread) [custom_components.kamstrup_403] No value for sensor 113
(MainThread) [custom_components.kamstrup_403] No value for sensor 1001
(MainThread) [custom_components.kamstrup_403] No value for sensor 1004
(MainThread) [custom_components.kamstrup_403] Finished update, No readings from the meter. Please check the IR connection
(MainThread) [custom_components.kamstrup_403] Finished fetching kamstrup_403 data in 0.203 seconds (success: True)

I'll have to see what happens after some scans.

bjwo commented 7 months ago

@ArthurBijGithub I had to try for a really long time to get the position of the reader right. Basically I set the interval to 10 s, and then I checked in HA if the entities showed some data. Only then I increased the interval.

And of course you have to press the buttons directly on the kamstrup to activate the IR interface. Good luck.

ArthurBijGithub commented 7 months ago

@bjwo Thanks again. I'll continue tomorrow. Got to get up early. Cheers.

ArthurBijGithub commented 7 months ago

After the first hopeful response. No sign of life from the IR-reader..... Very busy now. I'll have to get back to this later on....

ArthurBijGithub commented 7 months ago

@bjwo, Just to update you that tere is data coming in. My mistake, I checked the error log and there was no error anymore.... Because it worked. Thanks again for your support.