golles/ha-kamstrup_403

Supported Device: Kamstrup 402

bjwo opened this issue · 11 comments

bjwo commented

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.

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.

bjwo commented

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.

bjwo commented

@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.

Hi I also have the 402 set up with an optical reader incl WIFI. When installing this solution here, I am asked:

Kamstrup meter
Enter the serial port that is connected to your meter

Does this mean I cannot use it WIFI? Sorry for asking, obviously i am more a beginner...

I've got no experience with Wifi readers, but the component supports several URL Handlers, https://pyserial.readthedocs.io/en/latest/url_handlers.html#urls you need to find one that is supported by your reader.
See also the example here: https://github.com/golles/ha-kamstrup_403?tab=readme-ov-file#configuration
It might be that you need https://github.com/cminyard/ser2net

Thanks @golles

With regards to the position - I currently get the pre temp only, not the aft temp. Do you think that is also related to placint the reader? @bjwo ?