This repository has been archived by the owner on Feb 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathexample_sml.yaml
109 lines (92 loc) · 1.92 KB
/
example_sml.yaml
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
109
esphome:
name: sml
platform: ESP8266
# board: d1_mini_pro
board: d1_mini
external_components:
- source:
type: local
path: components
components: [ sml ]
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.2.64
gateway: 192.168.2.1
subnet: 255.255.255.0
captive_portal:
# Enable logging
logger:
hardware_uart: UART1
level: DEBUG
# Enable Home Assistant API
api:
ota:
uart:
id: uart_bus
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 9600
data_bits: 8
parity: NONE
stop_bits: 1
# AUTO_LOAD of SML component
# sml:
# # id: mysml
# uart_id: uart_bus
sensor:
- platform: wifi_signal
name: "SML WiFi Signal Sensor"
update_interval: 10s
- platform: sml
name: "Total energy"
obis_code: "1-0:1.8.0"
unit_of_measurement: kWh
accuracy_decimals: 1
device_class: energy
state_class: total_increasing
filters:
- multiply: 0.0001
- throttle: 30s
- platform: sml
name: "Total energy 1"
obis_code: "1-0:1.8.1"
unit_of_measurement: kWh
accuracy_decimals: 1
device_class: energy
state_class: total_increasing
filters:
- multiply: 0.0001
- throttle: 30s
- platform: sml
name: "Total energy 2"
obis_code: "1-0:1.8.2"
unit_of_measurement: kWh
accuracy_decimals: 1
device_class: energy
state_class: total_increasing
filters:
- multiply: 0.0001
- throttle: 30s
- platform: sml
name: "Active power"
obis_code: "1-0:15.7.0"
unit_of_measurement: Wh
device_class: power
accuracy_decimals: 1
filters:
- multiply: 0.1
text_sensor:
- platform: sml
name: "Manufacturer"
obis_code: "129-129:199.130.3"
format: text
- platform: sml
name: "Total energy Hex"
obis_code: "1-0:1.8.0"
format: hex
- platform: sml
name: "Total energy String"
obis_code: "1-0:1.8.0"
# format: uint