forked from tiagofreire-pt/Home_Assistant_EDP_Box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
95 lines (89 loc) · 2.03 KB
/
configuration.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
modbus:
name: energy_box_1
type: serial
method: rtu
port: /dev/ttyUSB0
baudrate: 9600
stopbits: 1
bytesize: 8
parity: N
timeout: 10
sensor:
- platform: modbus
scan_interval: 2
registers:
- name: 'Frequency'
hub: energy_box_1
slave: 1
register: 127
register_type: input
unit_of_measurement: 'Hz'
count: 1
scale: 0.1
offset: 0
precision: 2
# long unsigned
data_type: uint
- name: 'Voltage L1'
hub: energy_box_1
slave: 1
register: 108
register_type: input
unit_of_measurement: 'V'
count: 1
scale: 0.1
offset: 0
precision: 1
# long unsigned
data_type: uint
- name: 'Current L1'
hub: energy_box_1
slave: 1
register: 109
register_type: input
unit_of_measurement: 'A'
count: 1
scale: 0.1
offset: 0
precision: 1
# long unsigned
data_type: uint
- name: 'Power factor'
hub: energy_box_1
slave: 1
register: 123
register_type: input
unit_of_measurement: 'p.u.'
count: 1
scale: 0.001
offset: 0
precision: 3
# long unsigned
data_type: uint
- platform: modbus
scan_interval: 5
registers:
- name: 'Tariff'
## 1 para Vazio - 2 para Ponta - 3 para Cheia
hub: energy_box_1
slave: 1
register: 11
register_type: input
count: 1
# conversão de 1/256
scale: 0.00390625
offset: 0
precision: 0
# unsigned
data_type: uint
- name: 'Switch Control State'
## 0 para disconectado - 1 para conectado - 2 para preparado a reconectar
hub: energy_box_1
slave: 1
register: 132
register_type: input
count: 1
# conversão de 1/256
scale: 0.00390625
offset: 0
data_type: uint