summaryrefslogtreecommitdiff
path: root/ee-discovery.json
blob: 3e327993d19095eeb7bf17da5e0880bd4828a30a (plain) (blame)
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
# for each battery:
# topic homeassistant/device/%SERIAL/config

# Configuration variables:
#   NAMEOFPROGRAM
#   MQTTTOPIC     solar/battery/esp-5100/%SERIAL%/state
#   SWVERSION
#   SERIAL
#   ESPVERSION


{
    "device": {
        "identifiers": "%SERIAL",
        "name": "ESP-5100",
        "manufacturer": "EndurEnergy",
        "hw_version": "%ESPHWVERSION%",
        "serial_number": "%SERIAL%",
        "sw_version": "%ESPVERSION%",
    },
    "origin": {
        "name": "%NAMEOFPROGRAM%",
        "sw_version": "%SWVERSION%",
        "support_url": "https://src.rockgeeks.net"
    },
    "components": {
        "ESP-5100-%SERIAL%_CANID": {
            "platform": "sensor",
            "name": "canid",
            "unique_id": "%SERIAL%canid",
            "value_template":"{{ value_json.canid }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_SOH": {
            "platform": "sensor",
            "device_class": "battery",
            "name": "SOH",
            "unique_id": "%SERIAL%soh",
            "value_template":"{{ value_json.soh }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_SOC": {
            "platform": "sensor",
            "device_class": "battery",
            "name": "SOC",
            "unique_id": "%SERIAL%soc",
            "value_template":"{{ value_json.soc }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_I": {
            "platform": "sensor",
            "device_class": "current",
            "unit_of_measurement": "A",
            "name": "Current",
            "unique_id": "%SERIAL%i",
            "value_template":"{{ value_json.i }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Pack Voltage",
            "unique_id": "%SERIAL%v",
            "value_template":"{{ value_json.v }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_T1": {
            "platform": "sensor",
            "device_class": "temperature",
            "unit_of_measurement": "°C",
            "name": "Temperature 1",
            "unique_id": "%SERIAL%t1",
            "value_template":"{{ value_json.t1 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_T2": {
            "platform": "sensor",
            "device_class": "temperature",
            "unit_of_measurement": "°C",
            "name": "Temperature 2",
            "unique_id": "%SERIAL%t2",
            "value_template":"{{ value_json.t2 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_T3": {
            "platform": "sensor",
            "device_class": "temperature",
            "unit_of_measurement": "°C",
            "name": "Temperature 3",
            "unique_id": "%SERIAL%t3",
            "value_template":"{{ value_json.t3 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V1": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 1 Voltage",
            "unique_id": "%SERIAL%v01",
            "value_template":"{{ value_json.v01 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V2": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 2 Voltage",
            "unique_id": "%SERIAL%v02",
            "value_template":"{{ value_json.v02 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V3": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 3 Voltage",
            "unique_id": "%SERIAL%v03",
            "value_template":"{{ value_json.v03 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V4": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 4 Voltage",
            "unique_id": "%SERIAL%v04",
            "value_template":"{{ value_json.v04 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V5": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 5 Voltage",
            "unique_id": "%SERIAL%v05",
            "value_template":"{{ value_json.v05 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V6": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 6 Voltage",
            "unique_id": "%SERIAL%v06",
            "value_template":"{{ value_json.v06 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V7": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 7 Voltage",
            "unique_id": "%SERIAL%v07",
            "value_template":"{{ value_json.v07 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V8": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 8 Voltage",
            "unique_id": "%SERIAL%v08",
            "value_template":"{{ value_json.v08 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V9": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 9 Voltage",
            "unique_id": "%SERIAL%v09",
            "value_template":"{{ value_json.v09 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V10": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 10 Voltage",
            "unique_id": "%SERIAL%v10",
            "value_template":"{{ value_json.v10 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V11": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 11 Voltage",
            "unique_id": "%SERIAL%v11",
            "value_template":"{{ value_json.v11 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V12": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 12 Voltage",
            "unique_id": "%SERIAL%v12",
            "value_template":"{{ value_json.v12 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V13": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 13 Voltage",
            "unique_id": "%SERIAL%v13",
            "value_template":"{{ value_json.v13 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V14": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 14 Voltage",
            "unique_id": "%SERIAL%v14",
            "value_template":"{{ value_json.v14 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V15": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 15 Voltage",
            "unique_id": "%SERIAL%v15",
            "value_template":"{{ value_json.v15 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        },
        "ESP-5100_%SERIAL%_V16": {
            "platform": "sensor",
            "device_class": "voltage",
            "unit_of_measurement": "V",
            "name": "Cell 16 Voltage",
            "unique_id": "%SERIAL%v16",
            "value_template":"{{ value_json.v16 }}",
            "state_topic": "solar/battery/esp-5100/%SERIAL%/state"
        }
        

    }
}
# homeassistant/<component>/[node_id/]<object_id>/config
#{
#         "canid": %d,
#         "soh": %4.2f,
#         "soc": %4.2f,
#         "i": %5.3f,
#         "v": %5.3f,
#         "t1": %d,
#         "t2": %d,
#         "t3": %d,
#         "v1": %5.3f,
#         "v2": %5.3f,
#         "v3": %5.3f,
#         "v4": %5.3f,
#         "v5": %5.3f,
#         "v6": %5.3f,
#         "v7": %5.3f,
#         "v8": %5.3f,
#         "v9": %5.3f,
#         "v10": %5.3f,
#         "v11": %5.3f,
#         "v12": %5.3f,
#         "v13": %5.3f,
#         "v14": %5.3f,
#         "v15": %5.3f,
#         "v16": %5.3f
#}