Closed bjwo closed 1 year ago
Awesome, thank you for sharing!
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.
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.
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.
@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.
@bjwo Thanks again. I'll continue tomorrow. Got to get up early. Cheers.
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....
@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.
Meter
Kamstrup 402
More info