-
Notifications
You must be signed in to change notification settings - Fork 13
/
example_obis.yml
94 lines (84 loc) · 2.06 KB
/
example_obis.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
external_components:
- source: github://jplitza/esphome_components
logger:
baud_rate: 0
uart:
id: uart_bus
rx_pin: GPIO3
# Adapt the following three lines to the energy meter you're reading!
baud_rate: 9600
data_bits: 7
parity: ODD
# Some devices need to be triggered to send their data. We can use the
# integrated "interval" component for that:
interval:
- interval: 10sec
then:
- uart.write:
id: uart_bus
data: [0x2F, 0x3F, 0x21, 0x0D, 0x0A]
obis:
uart_id: uart_bus
sensor:
- platform: obis
channel: "1-0:1.8.0*255"
name: "Power Meter"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
accuracy_decimals: 2
icon: "mdi:speedometer"
filters:
- throttle: 30s
- platform: obis
channel: "1-0:21.7.255*255"
name: "Phase 1 Power"
unit_of_measurement: "W"
device_class: power
state_class: measurement
accuracy_decimals: 0
icon: "mdi:numeric-1-circle"
filters:
- sliding_window_moving_average:
window_size: 5
send_every: 5
- platform: obis
channel: "1-0:41.7.255*255"
name: "Phase 2 Power"
unit_of_measurement: "W"
device_class: power
state_class: measurement
accuracy_decimals: 0
icon: "mdi:numeric-2-circle"
filters:
- sliding_window_moving_average:
window_size: 5
send_every: 5
- platform: obis
channel: "1-0:61.7.255*255"
name: "Phase 3 Power"
unit_of_measurement: "W"
device_class: power
state_class: measurement
accuracy_decimals: 0
icon: "mdi:numeric-3-circle"
filters:
- sliding_window_moving_average:
window_size: 5
send_every: 5
- platform: obis
channel: "1-0:1.7.255*255"
name: "Total Power"
unit_of_measurement: "W"
device_class: power
state_class: measurement
accuracy_decimals: 0
icon: "mdi:flash"
filters:
- sliding_window_moving_average:
window_size: 5
send_every: 5
text_sensor:
- platform: obis
channel: "0-0:96.1.255*255"
name: "Serial Number"