forked from GyroGearl00se/ESPHome-SML-Hichi-IR
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathesp8266-sml.yml
108 lines (93 loc) · 2.34 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
esphome:
name: 00-smart-meter-sml
friendly_name: 00_smart_meter_SML
esp8266:
board: d1_mini
# Enable logging
logger:
level: DEBUG
# for initial setup: VERY_VERBOSE
logs:
sml: DEBUG
text_sensor: DEBUG
# Enable Home Assistant API
api:
encryption:
key: "YOUR KEY"
# Please Use the Key which ESP Home automatically provided
# bitte nutzt den Key, der nach der Erstellung der ESP Home Instanz bei euch von Home Assistant eingetragen worden ist.
ota:
password: "yourOTAPW"
# Please Use the OTA PWD which ESP Home automatically provided
# bitte nutzt den OTA PWD, der nach der Erstellung der ESP Home Instanz bei euch von Home Assistant eingetragen worden ist.
wifi:
ssid: "secret wifi_ssid"
password: "secret wifi_password"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "00-Smart-Meter-Sml"
password: "9845hkksdfkhjshjdg"
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