forked from esphome/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbl0942.json
155 lines (155 loc) · 6.25 KB
/
bl0942.json
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"bl0942.sensor": {
"schemas": {
"CONFIG_SCHEMA": {
"type": "schema",
"schema": {
"config_vars": {
"id": {
"key": "GeneratedID",
"id_type": {
"class": "bl0942::BL0942",
"parents": [
"PollingComponent",
"Component",
"uart::UARTDevice"
]
}
},
"voltage": {
"key": "Optional",
"type": "schema",
"schema": {
"extends": [
"sensor.SENSOR_SCHEMA"
],
"config_vars": {
"unit_of_measurement": {
"default": "V"
},
"accuracy_decimals": {
"default": "1"
},
"device_class": {
"default": "voltage"
},
"state_class": {
"default": "measurement"
}
}
},
"docs": "The voltage value of the sensor in Volts. All options from [Sensor](https://esphome.io/components/sensor/index.html#config-sensor).\n\n*See also: [Belling BL0942 Energy Monitor](https://esphome.io/components/sensor/bl0942.html#configuration-variables)*"
},
"current": {
"key": "Optional",
"type": "schema",
"schema": {
"extends": [
"sensor.SENSOR_SCHEMA"
],
"config_vars": {
"unit_of_measurement": {
"default": "A"
},
"accuracy_decimals": {
"default": "2"
},
"device_class": {
"default": "current"
},
"state_class": {
"default": "measurement"
}
}
},
"docs": "The current value of the sensor in Amperes. All options from [Sensor](https://esphome.io/components/sensor/index.html#config-sensor).\n\n*See also: [Belling BL0942 Energy Monitor](https://esphome.io/components/sensor/bl0942.html#configuration-variables)*"
},
"power": {
"key": "Optional",
"type": "schema",
"schema": {
"extends": [
"sensor.SENSOR_SCHEMA"
],
"config_vars": {
"unit_of_measurement": {
"default": "W"
},
"accuracy_decimals": {
"default": "0"
},
"device_class": {
"default": "power"
},
"state_class": {
"default": "measurement"
}
}
},
"docs": "The (active) power value of the sensor in Watts. Note that some power meters will report this in negative values (probably wired backwards), so you may want to use a filter to multiply it by -1. All options from [Sensor](https://esphome.io/components/sensor/index.html#config-sensor).\n\n*See also: [Belling BL0942 Energy Monitor](https://esphome.io/components/sensor/bl0942.html#configuration-variables)*"
},
"energy": {
"key": "Optional",
"type": "schema",
"schema": {
"extends": [
"sensor.SENSOR_SCHEMA"
],
"config_vars": {
"unit_of_measurement": {
"default": "kWh"
},
"accuracy_decimals": {
"default": "0"
},
"device_class": {
"default": "energy"
}
}
},
"docs": "Use the voltage value of the sensor in kWh. All options from [Sensor](https://esphome.io/components/sensor/index.html#config-sensor).\n\n*See also: [Belling BL0942 Energy Monitor](https://esphome.io/components/sensor/bl0942.html#configuration-variables)*"
},
"frequency": {
"key": "Optional",
"type": "schema",
"schema": {
"extends": [
"sensor.SENSOR_SCHEMA"
],
"config_vars": {
"unit_of_measurement": {
"default": "Hz"
},
"accuracy_decimals": {
"default": "0"
},
"device_class": {
"default": "frequency"
},
"state_class": {
"default": "measurement"
}
}
},
"docs": "The frequency value of the sensor in Hertz. All options from [Sensor](https://esphome.io/components/sensor/index.html#config-sensor). All options from [Sensor](https://esphome.io/components/sensor/index.html#config-sensor).\n\n*See also: [Belling BL0942 Energy Monitor](https://esphome.io/components/sensor/bl0942.html#configuration-variables)*"
},
"update_interval": {
"key": "Optional",
"default": "60s",
"docs": "**[Time](https://esphome.io/guides/configuration-types.html#config-time)**: The interval to check the sensor. Defaults to `60s`.\n\n*See also: [Belling BL0942 Energy Monitor](https://esphome.io/components/sensor/bl0942.html#configuration-variables)*"
},
"uart_id": {
"key": "GeneratedID",
"use_id_type": "uart::UARTComponent",
"type": "use_id",
"docs": "**[ID](https://esphome.io/guides/configuration-types.html#config-id)**: Manually specify the ID of the [UART Component](https://esphome.io/components/uart.html#uart) if you want to use multiple UART buses.\n\n*See also: [Belling BL0942 Energy Monitor](https://esphome.io/components/sensor/bl0942.html#configuration-variables)*"
}
},
"extends": [
"core.COMPONENT_SCHEMA"
]
}
}
}
}
}