The scripts in the kamstrup_402.zip file work perfectly with the 403. No changes necessary.
Hardware i use:
Raspberry Pi 3 with Domoticz
IR read/write head for USB
Kamstrup Multical 403
It's a pain to get the head correctly aligned with the little 'eye' on the meter, but I managed... The advantage of the 403 meter is that it doesn't need to be 'awake' to read. You can do it anytime. I heard that the 402 had to be woken every time, or keeping it alive by reading every x minutes before it sleeps.
I use two shell scripts to call the kamstrup_single.py script:
- one to get the actual readings like waterflow, temperatures, power use and execute that every 5 minutes
- one to get the actual reading AND the overall consumption (ie the meter position), or enery use (GJ) and Hot Water usage in M3. This script is called every 15 minutes
What I read in other posts too is that everybody seems to ignore the other data that's available. Most of the data is not very useful, but there is this item 'Infoevent' (item# 113) which is basically an errorcode from the meter or installation. It's supposed to be 0.0, but if it is something else, there's a problem and you should call the energy supplier. I set this up and the moment there's an error, I get a message through Telegram. Obviously this is a very useful addition, because nobody ever walks to the meter to look for an errorcode. Unless there's a problem. But with an alarm on it, you get notified immediately.
[edit]
I noticed that USB devices like the IR read/write head get a better identifier apart from /dev/ttyUSB1 or USB0. It's the serial-by-id:
Code: Select all
ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Jan 15 14:18 usb-FTDI_FT230X_Basic_UART_D306YVGM-if00-port0 -> ../../ttyUSB1
lrwxrwxrwx 1 root root 13 Jan 14 22:21 usb-FTDI_FT232R_USB_UART_AL245V2V-if00-port0 -> ../../ttyUSB0
So the lines in the shell script can be like:
Code: Select all
# Infoevent (moet 0 zijn, anders alert) [113] [x]
python3 /home/pi/domoticz/scripts/python/kamstrup_single.py /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_D306YVGM-if00-port0 113 20