Unfortunately, I have problems finding a suitable integration for HA to read the data from the electricity meter.
Hass OS 5.8 runs on a Raspberry PI 3b with HA 2020.12.7
The electricity meter is a Logarex LK13BD.
As a sensor I use an IR read / write head USB from Weidmann.
I wanted to use EDL21 as an integration. This should actually be compatible with the Weidmann sensor. Unfortunately, that doesn’t work.
The sensor is recognized in the hardware info of HA:
serial:
- /dev/ttyAMA0
- /dev/ttyACM0
- >-
/dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B000BE90270-if00
- /dev/ttyUSB0
- /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_D309V61T-if00-port0
I have the following configuration in the configuration.yaml:
sensor:
- platform: edl21
name: stromzaehler
serial_port: /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_D309V61T-if00-port0
After a reboot, however, no “electricity meter” sensor is registered or displayed in HA.
I also entered a different port:
sensor:
- platform: edl21
name: stromzaehler
serial_port: /dev/ttyUSB0
Unfortunately without success.
Then I read out the meter data directly with the Weidmann test program. That worked and resulted in the following data sets.
Emlog Testprogramm v.1.08
Test 1 mit Baud 9600 8N1 unidirektional:
Ergebnis: Keine Daten
Test 2 mit Baud 9600 8N1 bidirektional:
Sende:1B1B1B1B010101017603303062006200726500000100770101093131333131383632010101016303360076033031620062007265000007007501010101016314CB007603303262006200726500000200710163756D0000001B1B1B1B1A027241
Ergebnis: Keine Daten
Test 3 mit Baud 300 7E1 unidirektional:
Ergebnis: Keine Daten
Test 4 mit Baud 300 7E1 bidirektional:
Sende:2F3F210D0A
Sende:063030300D0A
Ergebnis: /?!
/LOG4LK13BD102015
000
C.1.0(06021862)
0.0.0(1LOGxxxxxxxxxx)
F.F(0000)
1.8.0(021769.116*kWh)
C.7.1(00000000)
C.7.2(00000001)
C.7.3(00000000)
0.2.1(ver.02, 130314, 41BD)
C.2.1(1409031212)
C.2.9(1409031212)
Test no. 4 has output the current counter reading under point 1.8.0.
The “OBIS” protocol was specified here.
I found the following note in the specifications of the EDL21 integration:
The
edl21
integration lets you read German EDL21 smart meters using SML from Home Assistant.
Maybe there is a problem with the protocol?
Has anyone ever managed this in this constellation or can they help here?