For about a year, I had an Raspberry Pi B+ with Domoticz and it was logging my Electricity and Gas consumption through the P1 connection on my "smart meter" (Brand Kaifa).
It was working very well and I believe it runs a wheezy image with Domoticz.
No I would like to set up a Raspberry Pi Zero for this purpose.
I clean installed Raspbian Jessie and Domoticz.
I followed these ones:
for configuration and static IP, and update OS:
https://www.domoticz.com/wiki/Initial_R ... y_Pi_Setup
Extra packages and update firmware:
https://www.domoticz.com/wiki/Preparing ... r_Domoticz
Installing Domoticz:
https://www.domoticz.com/wiki/Installin ... spberry_PI
I installed this one:
Code: Select all
sudo apt-get install cu minicom
Code: Select all
cu -l /dev/ttyAMA0 -s 115200 --parity=none
Code: Select all
pi@raspberrypi:~ $ cu -l /dev/ttyAMA0 -s 115200 --parity=none
cu: open (/dev/ttyAMA0): Permission denied
cu: /dev/ttyAMA0: Line in use
Code: Select all
sudo chmod a+rw /dev/ttyAMA0
cu -l /dev/ttyAMA0 -s 115200 --parity=none
After about 10 seconds, it stops.Connected.
/KFM5KAIFA-METER
1-3:0.2.8(42)
0-0:1.0.0(170114221820W)
0-0:96.1.1(4530303235303030303334343832353135)
1-0:1.8.1(001469.949*kWh)
1-0:1.8.2(001344.092*kWh)
1-0:2.8.1(000000.000*kWh)
1-0:2.8.2(000000.000*kWh)
0-0:96.14.0(0001)
1-0:1.7.0(00.434*kW)
1-0:2.7.0(00.000*kW)
0-0:96.7.21(00007)
0-0:96.7.9(00004)
1-0:99.97.0(1)(0-0:96.7.19)(000101000001W)(2147483647*s)
1-0:32.32.0(00000)
1-0:32.36.0(00000)
0-0:96.13.1()
0-0:96.13.0()
1-0:31.7.0(002*A)
1-0:21.7.0(00.430*kW)
1-0:22.7.0(00.000*kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303139333430323334373431383135)
0-1:24.2.1(170114220000W)(01163.212*m3)
!AE1A
/KFM5KAIFA-METER
So I get values.
Now I go to Domoticz through the IP address and added th P1 meter with following settings:
P1 Smart Meter USB
Data Timeout disabled
port: /dev/ttyAMA0
baudrate: 115200
CRC message checked.
These values are exactly the same as on my RPI B+, with functioning P1 logging.
I even use the same cable between my RPI and my P1 port.
But unfortunatelly, I do not see any devices, no electicity, no gas....
And as said, the command:
Code: Select all
cu -l /dev/ttyAMA0 -s 115200 --parity=none
Can somebody please help me! I tried a lot of things and have read a lot of forum threads.
The big difference with my working RPI, is now RPI Zero, instead of RPI B+ and Jessie OS instead of Wheezy.
I have read through the manual, but with no success....what am I missing??
I am a noob with linux/raspberry, but I am no computer noob and I did manage it last time with almost no problem, except for now......