Hallo zusammen,
ich versuche mittels ESP8266 meinen Stromzähler auszulesen. Hierzu habe ich in ESP Home die folgende .yaml geflashed.
esphome:
name: smart-meter-sml
friendly_name: Smart_Meter_SML
esp8266:
board: d1_mini
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
api:
encryption:
key: blablabla
ota:
- platform: esphome
password: "blablabla"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Smart-Meter-Sml Fallback Hotspot"
password: blablabla
captive_portal:
uart:
id: uart_bus
rx_pin:
#D7 GPIO13 bei Wemos D1 Mini, other boars may use different Pin Layouts.
number: D7
inverted: false
baud_rate: 9600
data_bits: 8
parity: NONE
stop_bits: 1
debug:
sml:
id: mysml
uart_id: uart_bus
text_sensor:
- platform: sml
name: "ED100l"
#Change to your Smart Meter Name
sml_id: mysml
#server_id: "YOURSERVERID"
#Change to your server ID as visiable fro the text debug console
obis_code: "129-129:199.130.3"
format: text
sensor:
- platform: sml
name: "SM_Total energy bought"
sml_id: mysml
obis_code: "1-0:1.8.0"
unit_of_measurement: kWh
accuracy_decimals: 4
device_class: energy
state_class: total_increasing
filters:
- multiply: 0.0001
- platform: sml
name: "SM_Total energy bought-1.8.2"
sml_id: mysml
obis_code: "1-0:1.8.2"
unit_of_measurement: kWh
accuracy_decimals: 4
device_class: energy
state_class: total_increasing
filters:
- multiply: 0.0001
- platform: sml
name: "SM_Total energy sold"
sml_id: mysml
obis_code: "1-0:2.8.0"
unit_of_measurement: kWh
accuracy_decimals: 4
device_class: energy
state_class: total_increasing
filters:
- multiply: 0.0001
- platform: sml
name: "Current load"
sml_id: mysml
obis_code: "1-0:16.7.0"
unit_of_measurement: W
accuracy_decimals: 0
device_class: energy
filters:
- multiply: 0.1
Das hat soweit auch funktioniert. Nun sehe ich allerdings in den logs nur am Anfang in lila die Sensoren, jedoch keine zyklischen Updates in türkis, wie üblich.
[13:38:53.168][I][app:206]: ESPHome version 2026.1.1 compiled on 2026-01-24 13:36:07 +0100
[13:38:53.168][C][logger:316]: Logger:
[13:38:53.168][C][logger:316]: Max Level: DEBUG
[13:38:53.168][C][logger:316]: Initial Level: DEBUG
[13:38:53.168][C][logger:322]: Log Baud Rate: 115200
[13:38:53.168][C][logger:322]: Hardware UART: UART0
[13:38:53.212][C][uart.arduino_esp8266:137]: UART Bus:
[13:38:53.212][C][uart.arduino_esp8266:152]: RX Pin: GPIO13
[13:38:53.212][C][uart.arduino_esp8266:141]: RX Buffer Size: 256
[13:38:53.212][C][uart.arduino_esp8266:143]: Baud Rate: 9600 baud
[13:38:53.212][C][uart.arduino_esp8266:143]: Data Bits: 8
[13:38:53.212][C][uart.arduino_esp8266:143]: Parity: NONE
[13:38:53.212][C][uart.arduino_esp8266:143]: Stop bits: 1
[13:38:53.212][C][uart.arduino_esp8266:152]: Using software serial
[13:38:53.226][C][sml:106]: SML:
[13:38:53.229][C][sml_text_sensor:017]: SML 'ED100l'
[13:38:53.230][C][sml_text_sensor:060]: OBIS Code: 129-129:199.130.3
[13:38:53.251][C][sml_sensor:016]: SML 'SM_Total energy bought'
[13:38:53.251][C][sml_sensor:016]: State Class: 'total_increasing'
[13:38:53.251][C][sml_sensor:016]: Unit of Measurement: 'kWh'
[13:38:53.251][C][sml_sensor:016]: Accuracy Decimals: 4
[13:38:53.257][C][sml_sensor:026]: Device Class: 'energy'
[13:38:53.257][C][sml_sensor:037]: OBIS Code: 1-0:1.8.0
[13:38:53.269][C][sml_sensor:016]: SML 'SM_Total energy bought-1.8.2'
[13:38:53.269][C][sml_sensor:016]: State Class: 'total_increasing'
[13:38:53.269][C][sml_sensor:016]: Unit of Measurement: 'kWh'
[13:38:53.269][C][sml_sensor:016]: Accuracy Decimals: 4
[13:38:53.282][C][sml_sensor:026]: Device Class: 'energy'
[13:38:53.282][C][sml_sensor:037]: OBIS Code: 1-0:1.8.2
[13:38:53.293][C][sml_sensor:016]: SML 'SM_Total energy sold'
[13:38:53.293][C][sml_sensor:016]: State Class: 'total_increasing'
[13:38:53.293][C][sml_sensor:016]: Unit of Measurement: 'kWh'
[13:38:53.293][C][sml_sensor:016]: Accuracy Decimals: 4
[13:38:53.303][C][sml_sensor:026]: Device Class: 'energy'
[13:38:53.303][C][sml_sensor:037]: OBIS Code: 1-0:2.8.0
[13:38:53.314][C][sml_sensor:016]: SML 'Current load'
[13:38:53.314][C][sml_sensor:016]: State Class: ''
[13:38:53.314][C][sml_sensor:016]: Unit of Measurement: 'W'
[13:38:53.314][C][sml_sensor:016]: Accuracy Decimals: 0
[13:38:53.314][C][sml_sensor:026]: Device Class: 'energy'
[13:38:53.323][C][sml_sensor:037]: OBIS Code: 1-0:16.7.0
[13:38:53.341][C][captive_portal:128]: Captive Portal:
[13:38:53.353][C][wifi:1304]: WiFi:
[13:38:53.353][C][wifi:1304]: Local MAC: 48:3F:DA:6E:CB:E4
[13:38:53.353][C][wifi:1304]: Connected: YES
[13:38:53.353][C][wifi:1037]: IP Address: 192.168.178.174
[13:38:53.353][C][wifi:1048]: SSID: [redacted]
[13:38:53.353][C][wifi:1048]: BSSID: [redacted]
[13:38:53.353][C][wifi:1048]: Hostname: 'smart-meter-sml'
[13:38:53.353][C][wifi:1048]: Signal strength: -75 dB ▂▄▆█
[13:38:53.353][C][wifi:1048]: Channel: 6
[13:38:53.353][C][wifi:1048]: Subnet: 255.255.255.0
[13:38:53.353][C][wifi:1048]: Gateway: 192.168.178.1
[13:38:53.353][C][wifi:1048]: DNS1: 192.168.178.1
[13:38:53.353][C][wifi:1048]: DNS2: 0.0.0.0
[13:38:53.395][C][esphome.ota:075]: Over-The-Air updates:
[13:38:53.395][C][esphome.ota:075]: Address: smart-meter-sml.local:8266
[13:38:53.395][C][esphome.ota:075]: Version: 2
[13:38:53.395][C][esphome.ota:082]: Password configured
[13:38:53.395][C][safe_mode:021]: Safe Mode:
[13:38:53.395][C][safe_mode:021]: Successful after: 60s
[13:38:53.395][C][safe_mode:021]: Invoke after: 10 attempts
[13:38:53.395][C][safe_mode:021]: Duration: 300s
[13:38:53.416][C][web_server.ota:231]: Web Server OTA
[13:38:53.417][C][api:221]: Server:
[13:38:53.417][C][api:221]: Address: smart-meter-sml.local:6053
[13:38:53.417][C][api:221]: Listen backlog: 1
[13:38:53.417][C][api:221]: Max connections: 4
[13:38:53.417][C][api:228]: Noise encryption: YES
[13:38:53.658][C][mdns:177]: mDNS:
[13:38:53.658][C][mdns:177]: Hostname: smart-meter-sml
[13:39:40.541][I][safe_mode:066]: Boot seems successful; resetting boot loop counter
[13:43:48.134][D][wifi:2112]: Roam scan (-73 dBm, attempt 1/3)
Ist das doch normal und ich irre mich nur, oder wo liegt ansonsten mein Fehler?
Kann mir vielleicht jemand seine yaml und logs zeigen? Das würde mir schon weiterhelfen.
Vielen Dank!