ESP8266 / ESP32 Tasmota images and decumentation
https://ottelo.jimdofree.com/stromz%C3%A4hler-auslesen-tasmota/#Downloads
https://www.wispr-shop.de/produkt/wifi-ir-schreib-lesekopf-diy-set/
Smart Meter Interface configruation scripts
https://tasmota.github.io/docs/Smart-Meter-Interface/#emh-ehz-generation-k-sml
>D
>B
=>sensor53 r
>M 1
+1,3,s,0,9600,
1,77070100010800ff@1000,Total consumption,kWh,total_in,2
1,77070100020800ff@1000,Total feed-in,kWh,total_out,2
1,77070100100700ff@1,Power,W,power_curr,0
#
Tasmota Diagramme
https://github.com/ottelo9/tasmota-sml-script/
Tasmota Script Language Support
https://marketplace.visualstudio.com/items?itemName=StefanoBertini.tasmota-script-support#Automatic-script-upload
Firmware
https://github.com/ottelo9/tasmota-sml-images/releases
Flash ESPhome (smartmeter-pulscounter.yaml)
esphome:
name: smartmeter-pulscounter
esp8266:
board: esp01_1m
# logger:
# baud_rate: 0
uart:
rx_pin: GPIO3
baud_rate: 9600
api:
ota:
platform: esphome
web_server:
port: 80
wifi:
ssid: "my-wifi"
password: "pass1234"
ap:
ssid: "Smartmeter"
password: "12345678"
sml:
id: mysml
sensor:
- platform: sml
name: "smartmeter-total-consumption"
sml_id: mysml
obis_code: "1-0:1.8.0"
unit_of_measurement: kWh
device_class: energy
state_class: total_increasing
accuracy_decimals: 3
filters:
- multiply: 0.0001 # scaler -4: 0.1 Wh per LSB
- platform: sml
name: "smartmeter-power"
sml_id: mysml
obis_code: "1-0:16.7.0"
unit_of_measurement: W
device_class: power
state_class: measurement
accuracy_decimals: 1
filters:
- multiply: 0.1 # scaler -1: 0.1 W per LSBOTA flash to Volkszähler
esphome run smartmeter-pulscounter.yaml --device
Links
https://github.com/gerhardmueller1/SML-Zaehler-mit-ESPhome-auslesen