-
Notifications
You must be signed in to change notification settings - Fork 3
/
esp8266-sml.yml
65 lines (57 loc) · 1.07 KB
/
esp8266-sml.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
esphome:
name: esp8266-sml
esp8266:
board: nodemcuv2
# Enable logging
logger:
level: DEBUG
logs:
sml: INFO
sml_sensor: INFO
# Enable Home Assistant API
api:
encryption:
key: ""
ota:
password: ""
wifi:
ssid: YOUR_WIFI_PASSWORD
password: YOUR_WIFI_PASSWORD
uart:
id: uart_bus
rx_pin: GPIO3
baud_rate: 9600
data_bits: 8
parity: NONE
stop_bits: 1
sml:
id: mysml
uart_id: uart_bus
sensor:
- platform: sml
name: "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: "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