Hi guys,
I am trying to read a logarex smart meter via ESP8266 (ESP01) and ESPHome to integrate all in HA.
The smart meter in unlocked via pin for extended information.
Unfortunately I do not get any readings in ESPHome.
Could someone check my config?
esphome:
name: stromzahler
friendly_name: Stromzähler
esp8266:
board: esp01_1m
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
encryption:
key: ""
ota:
- platform: esphome
password: ""
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Stromzahler Fallback Hotspot"
password: ""
uart:
id: uart_bus
tx_pin: 1
rx_pin: 3
baud_rate: 9600
data_bits: 8
parity: NONE
stop_bits: 1
sml:
id: mysml
uart_id: uart_bus
on_data:
# then:
- logger.log: "telegram received"
sensor:
- platform: sml
name: "Energie Bezug"
sml_id: mysml
obis_code: "1-0:1.8.0"
unit_of_measurement: kWh
accuracy_decimals: 3
device_class: energy
state_class: total_increasing
# filters:
# - multiply: 0.0001
# - throttle_average: 300s
- platform: sml
name: "Energie Einspeisung"
sml_id: mysml
obis_code: "1-0:2.8.0"
unit_of_measurement: kWh
accuracy_decimals: 3
device_class: energy
state_class: total_increasing
# filters:
# - multiply: 0.0001
# - throttle_average: 300s
# - platform: sml
# name: "Aktuelle Leistung"
# sml_id: mysml
# obis_code: "1-0:16.7.0"
# unit_of_measurement: W
# accuracy_decimals: 0
# device_class: power
# state_class: measurement
Should the obis code contain “255”?
obis_code: "1-0:1.8.0*255"
It is stated in the datasheet, but the examples uses “1-0:1.8.0”.
I don’t get any loggings from the uart. Is this the normal behavior? I would expect at least some info, even it is interpreted wrong.
Thanks and regards