homebridge-easy-mqtt 2.2.0 → 2.2.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -4
- package/config.schema.json +41 -20
- package/config.schema.template.json +41 -20
- package/dist/homekit/sensor/temperature.d.ts +1 -0
- package/dist/homekit/sensor/temperature.js +8 -1
- package/dist/homekit/sensor/temperature.js.map +1 -1
- package/dist/model/types.d.ts +2 -0
- package/package.json +1 -1
- package/schemas/config.schema.da.json +41 -20
- package/schemas/config.schema.de.json +41 -20
- package/schemas/config.schema.fr.json +41 -20
- package/schemas/config.schema.it.json +41 -20
- package/schemas/config.schema.ro.json +41 -20
- package/schemas/config.schema.vi.json +41 -20
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to homebridge-easy-mqtt will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 2.2.1-beta.0 ()
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- Temperature minimum/maximum setting for [TemperatureSensor](https://github.com/mpatfield/homebridge-easy-mqtt/wiki/TemperatureSensor)
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
### Notes
|
|
14
|
+
- Please consider giving this plugin a ⭐️ on [GitHub](https://github.com/mpatfield/homebridge-easy-mqtt) if you're finding it useful!
|
|
15
|
+
|
|
5
16
|
## 2.2.0 (2026-11-10)
|
|
6
17
|
|
|
7
18
|
### Added
|
|
8
|
-
- [
|
|
19
|
+
- [IrrigationSystem](https://github.com/mpatfield/homebridge-easy-mqtt/wiki/IrrigationSystem) (Beta) for properly grouping multiple valves ([#311](https://github.com/mpatfield/homebridge-easy-mqtt/issues/311))
|
|
9
20
|
- Please [open a ticket](https://github.com/mpatfield/homebridge-easy-mqtt/issues/new/choose) if you notice any issues with this feature
|
|
10
21
|
|
|
11
22
|
### Fixed
|
|
@@ -14,9 +25,6 @@ All notable changes to homebridge-easy-mqtt will be documented in this file.
|
|
|
14
25
|
### Changed
|
|
15
26
|
- Updated dependencies
|
|
16
27
|
|
|
17
|
-
### Notes
|
|
18
|
-
- Please consider giving this plugin a ⭐️ on [GitHub](https://github.com/mpatfield/homebridge-easy-mqtt) if you're finding it useful!
|
|
19
|
-
|
|
20
28
|
## 2.1.3 (2026-10-11)
|
|
21
29
|
|
|
22
30
|
### Changed
|
package/config.schema.json
CHANGED
|
@@ -3209,29 +3209,11 @@
|
|
|
3209
3209
|
}
|
|
3210
3210
|
]
|
|
3211
3211
|
},
|
|
3212
|
-
{
|
|
3213
|
-
"type": "div",
|
|
3214
|
-
"displayFlex": true,
|
|
3215
|
-
"flex-direction": "row",
|
|
3216
|
-
"condition": {
|
|
3217
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3218
|
-
},
|
|
3219
|
-
"items": [
|
|
3220
|
-
{
|
|
3221
|
-
"key": "accessories[].topicGetCurrentTemperature",
|
|
3222
|
-
"flex": "0 0 67%"
|
|
3223
|
-
},
|
|
3224
|
-
{
|
|
3225
|
-
"key": "accessories[].temperatureUnits",
|
|
3226
|
-
"flex": "0 0 33%"
|
|
3227
|
-
}
|
|
3228
|
-
]
|
|
3229
|
-
},
|
|
3230
3212
|
{
|
|
3231
3213
|
"type": "fieldset",
|
|
3232
3214
|
"notitle": true,
|
|
3233
3215
|
"condition": {
|
|
3234
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type
|
|
3216
|
+
"functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
|
|
3235
3217
|
},
|
|
3236
3218
|
"items": [
|
|
3237
3219
|
{
|
|
@@ -3253,7 +3235,10 @@
|
|
|
3253
3235
|
},
|
|
3254
3236
|
{
|
|
3255
3237
|
"key": "accessories[].minimumStep",
|
|
3256
|
-
"flex": "0 0 25%"
|
|
3238
|
+
"flex": "0 0 25%",
|
|
3239
|
+
"condition": {
|
|
3240
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3241
|
+
}
|
|
3257
3242
|
}
|
|
3258
3243
|
]
|
|
3259
3244
|
},
|
|
@@ -3261,6 +3246,9 @@
|
|
|
3261
3246
|
"type": "div",
|
|
3262
3247
|
"displayFlex": true,
|
|
3263
3248
|
"flex-direction": "row",
|
|
3249
|
+
"condition": {
|
|
3250
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3251
|
+
},
|
|
3264
3252
|
"items": [
|
|
3265
3253
|
{
|
|
3266
3254
|
"key": "accessories[].topicGetCurrentHeatingCoolingState",
|
|
@@ -3272,6 +3260,9 @@
|
|
|
3272
3260
|
"type": "div",
|
|
3273
3261
|
"displayFlex": true,
|
|
3274
3262
|
"flex-direction": "row",
|
|
3263
|
+
"condition": {
|
|
3264
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3265
|
+
},
|
|
3275
3266
|
"items": [
|
|
3276
3267
|
{
|
|
3277
3268
|
"key": "accessories[].topicGetTargetHeatingCoolingState",
|
|
@@ -3287,6 +3278,9 @@
|
|
|
3287
3278
|
"type": "div",
|
|
3288
3279
|
"displayFlex": true,
|
|
3289
3280
|
"flex-direction": "row",
|
|
3281
|
+
"condition": {
|
|
3282
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3283
|
+
},
|
|
3290
3284
|
"items": [
|
|
3291
3285
|
{
|
|
3292
3286
|
"key": "accessories[].topicGetCurrentTemperature",
|
|
@@ -3298,6 +3292,9 @@
|
|
|
3298
3292
|
"type": "div",
|
|
3299
3293
|
"displayFlex": true,
|
|
3300
3294
|
"flex-direction": "row",
|
|
3295
|
+
"condition": {
|
|
3296
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3297
|
+
},
|
|
3301
3298
|
"items": [
|
|
3302
3299
|
{
|
|
3303
3300
|
"key": "accessories[].topicGetTargetTemperature",
|
|
@@ -3313,6 +3310,9 @@
|
|
|
3313
3310
|
"type": "div",
|
|
3314
3311
|
"displayFlex": true,
|
|
3315
3312
|
"flex-direction": "row",
|
|
3313
|
+
"condition": {
|
|
3314
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3315
|
+
},
|
|
3316
3316
|
"items": [
|
|
3317
3317
|
{
|
|
3318
3318
|
"key": "accessories[].topicGetCurrentRelativeHumidity",
|
|
@@ -3325,6 +3325,9 @@
|
|
|
3325
3325
|
"type": "div",
|
|
3326
3326
|
"displayFlex": true,
|
|
3327
3327
|
"flex-direction": "row",
|
|
3328
|
+
"condition": {
|
|
3329
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3330
|
+
},
|
|
3328
3331
|
"items": [
|
|
3329
3332
|
{
|
|
3330
3333
|
"key": "accessories[].topicGetTargetRelativeHumidity",
|
|
@@ -3338,6 +3341,24 @@
|
|
|
3338
3341
|
}
|
|
3339
3342
|
]
|
|
3340
3343
|
},
|
|
3344
|
+
{
|
|
3345
|
+
"type": "div",
|
|
3346
|
+
"displayFlex": true,
|
|
3347
|
+
"flex-direction": "row",
|
|
3348
|
+
"condition": {
|
|
3349
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3350
|
+
},
|
|
3351
|
+
"items": [
|
|
3352
|
+
{
|
|
3353
|
+
"key": "accessories[].topicGetCurrentTemperature",
|
|
3354
|
+
"flex": "0 0 67%"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"key": "accessories[].temperatureUnits",
|
|
3358
|
+
"flex": "0 0 33%"
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3341
3362
|
{
|
|
3342
3363
|
"type": "fieldset",
|
|
3343
3364
|
"notitle": true,
|
|
@@ -3209,29 +3209,11 @@
|
|
|
3209
3209
|
}
|
|
3210
3210
|
]
|
|
3211
3211
|
},
|
|
3212
|
-
{
|
|
3213
|
-
"type": "div",
|
|
3214
|
-
"displayFlex": true,
|
|
3215
|
-
"flex-direction": "row",
|
|
3216
|
-
"condition": {
|
|
3217
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3218
|
-
},
|
|
3219
|
-
"items": [
|
|
3220
|
-
{
|
|
3221
|
-
"key": "accessories[].topicGetCurrentTemperature",
|
|
3222
|
-
"flex": "0 0 67%"
|
|
3223
|
-
},
|
|
3224
|
-
{
|
|
3225
|
-
"key": "accessories[].temperatureUnits",
|
|
3226
|
-
"flex": "0 0 33%"
|
|
3227
|
-
}
|
|
3228
|
-
]
|
|
3229
|
-
},
|
|
3230
3212
|
{
|
|
3231
3213
|
"type": "fieldset",
|
|
3232
3214
|
"notitle": true,
|
|
3233
3215
|
"condition": {
|
|
3234
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type
|
|
3216
|
+
"functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
|
|
3235
3217
|
},
|
|
3236
3218
|
"items": [
|
|
3237
3219
|
{
|
|
@@ -3253,7 +3235,10 @@
|
|
|
3253
3235
|
},
|
|
3254
3236
|
{
|
|
3255
3237
|
"key": "accessories[].minimumStep",
|
|
3256
|
-
"flex": "0 0 25%"
|
|
3238
|
+
"flex": "0 0 25%",
|
|
3239
|
+
"condition": {
|
|
3240
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3241
|
+
}
|
|
3257
3242
|
}
|
|
3258
3243
|
]
|
|
3259
3244
|
},
|
|
@@ -3261,6 +3246,9 @@
|
|
|
3261
3246
|
"type": "div",
|
|
3262
3247
|
"displayFlex": true,
|
|
3263
3248
|
"flex-direction": "row",
|
|
3249
|
+
"condition": {
|
|
3250
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3251
|
+
},
|
|
3264
3252
|
"items": [
|
|
3265
3253
|
{
|
|
3266
3254
|
"key": "accessories[].topicGetCurrentHeatingCoolingState",
|
|
@@ -3272,6 +3260,9 @@
|
|
|
3272
3260
|
"type": "div",
|
|
3273
3261
|
"displayFlex": true,
|
|
3274
3262
|
"flex-direction": "row",
|
|
3263
|
+
"condition": {
|
|
3264
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3265
|
+
},
|
|
3275
3266
|
"items": [
|
|
3276
3267
|
{
|
|
3277
3268
|
"key": "accessories[].topicGetTargetHeatingCoolingState",
|
|
@@ -3287,6 +3278,9 @@
|
|
|
3287
3278
|
"type": "div",
|
|
3288
3279
|
"displayFlex": true,
|
|
3289
3280
|
"flex-direction": "row",
|
|
3281
|
+
"condition": {
|
|
3282
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3283
|
+
},
|
|
3290
3284
|
"items": [
|
|
3291
3285
|
{
|
|
3292
3286
|
"key": "accessories[].topicGetCurrentTemperature",
|
|
@@ -3298,6 +3292,9 @@
|
|
|
3298
3292
|
"type": "div",
|
|
3299
3293
|
"displayFlex": true,
|
|
3300
3294
|
"flex-direction": "row",
|
|
3295
|
+
"condition": {
|
|
3296
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3297
|
+
},
|
|
3301
3298
|
"items": [
|
|
3302
3299
|
{
|
|
3303
3300
|
"key": "accessories[].topicGetTargetTemperature",
|
|
@@ -3313,6 +3310,9 @@
|
|
|
3313
3310
|
"type": "div",
|
|
3314
3311
|
"displayFlex": true,
|
|
3315
3312
|
"flex-direction": "row",
|
|
3313
|
+
"condition": {
|
|
3314
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3315
|
+
},
|
|
3316
3316
|
"items": [
|
|
3317
3317
|
{
|
|
3318
3318
|
"key": "accessories[].topicGetCurrentRelativeHumidity",
|
|
@@ -3325,6 +3325,9 @@
|
|
|
3325
3325
|
"type": "div",
|
|
3326
3326
|
"displayFlex": true,
|
|
3327
3327
|
"flex-direction": "row",
|
|
3328
|
+
"condition": {
|
|
3329
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3330
|
+
},
|
|
3328
3331
|
"items": [
|
|
3329
3332
|
{
|
|
3330
3333
|
"key": "accessories[].topicGetTargetRelativeHumidity",
|
|
@@ -3338,6 +3341,24 @@
|
|
|
3338
3341
|
}
|
|
3339
3342
|
]
|
|
3340
3343
|
},
|
|
3344
|
+
{
|
|
3345
|
+
"type": "div",
|
|
3346
|
+
"displayFlex": true,
|
|
3347
|
+
"flex-direction": "row",
|
|
3348
|
+
"condition": {
|
|
3349
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3350
|
+
},
|
|
3351
|
+
"items": [
|
|
3352
|
+
{
|
|
3353
|
+
"key": "accessories[].topicGetCurrentTemperature",
|
|
3354
|
+
"flex": "0 0 67%"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"key": "accessories[].temperatureUnits",
|
|
3358
|
+
"flex": "0 0 33%"
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3341
3362
|
{
|
|
3342
3363
|
"type": "fieldset",
|
|
3343
3364
|
"notitle": true,
|
|
@@ -5,4 +5,5 @@ import { TemperatureSensorConfig } from '../../model/types.js';
|
|
|
5
5
|
export declare class TemperatureSensorAccessory extends SensorAccessory<TemperatureSensorConfig> {
|
|
6
6
|
protected getAccessoryType(): AccessoryType;
|
|
7
7
|
constructor(dependency: MQTTAccessoryDependency<TemperatureSensorConfig>);
|
|
8
|
+
private get temperatureUnits();
|
|
8
9
|
}
|
|
@@ -3,6 +3,7 @@ import { strings } from '../../i18n/i18n.js';
|
|
|
3
3
|
import { AccessoryType } from '../../model/enums.js';
|
|
4
4
|
import { HKCharacteristicKey } from '../../model/homekit.js';
|
|
5
5
|
import { HistoryType } from '../../model/history.js';
|
|
6
|
+
import { temperatureUnits, toCelsius } from '../../tools/temperature.js';
|
|
6
7
|
export class TemperatureSensorAccessory extends SensorAccessory {
|
|
7
8
|
getAccessoryType() {
|
|
8
9
|
return AccessoryType.TemperatureSensor;
|
|
@@ -11,7 +12,13 @@ export class TemperatureSensorAccessory extends SensorAccessory {
|
|
|
11
12
|
super(dependency);
|
|
12
13
|
this.setup(HKCharacteristicKey.CurrentTemperature, 0, 'topicGetCurrentTemperature', this.bindOnUpdateTemperature(dependency.config, HKCharacteristicKey.CurrentTemperature, strings.climate.temperatureUpdate, (value) => {
|
|
13
14
|
this.recordHistory(HistoryType.WEATHER, { temp: value });
|
|
14
|
-
}), true)
|
|
15
|
+
}), true)?.setProps({
|
|
16
|
+
minValue: dependency.config.minimumTemperature ? toCelsius(dependency.config.minimumTemperature, this.temperatureUnits) : undefined,
|
|
17
|
+
maxValue: dependency.config.maximumTemperature ? toCelsius(dependency.config.maximumTemperature, this.temperatureUnits) : undefined,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
get temperatureUnits() {
|
|
21
|
+
return temperatureUnits(this.config.temperatureUnits);
|
|
15
22
|
}
|
|
16
23
|
}
|
|
17
24
|
//# sourceMappingURL=temperature.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temperature.js","sourceRoot":"","sources":["../../../src/homekit/sensor/temperature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAA2B,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"temperature.js","sourceRoot":"","sources":["../../../src/homekit/sensor/temperature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAA2B,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAoB,gBAAgB,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAG3F,MAAM,OAAO,0BAA2B,SAAQ,eAAwC;IAE5E,gBAAgB;QACxB,OAAO,aAAa,CAAC,iBAAiB,CAAC;IACzC,CAAC;IAED,YACE,UAA4D;QAC5D,KAAK,CAAC,UAAU,CAAC,CAAC;QAElB,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,kBAAkB,EAAE,CAAC,EAAE,4BAA4B,EAChF,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,MAAM,EAAE,mBAAmB,CAAC,kBAAkB,EAAE,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC,KAAK,EAAE,EAAE;YACnI,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAE,CAAC;QAC5D,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;YACpB,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,kBAAkB,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS;YACnI,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,kBAAkB,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS;SACpI,CAAC,CAAC;IACL,CAAC;IAED,IAAY,gBAAgB;QAC1B,OAAO,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACxD,CAAC;CACF"}
|
package/dist/model/types.d.ts
CHANGED
|
@@ -183,6 +183,8 @@ export type SmokeSensorConfig = SensorConfig & AutoResetConfig & {
|
|
|
183
183
|
valueSmokeDetected: string;
|
|
184
184
|
};
|
|
185
185
|
export type TemperatureSensorConfig = SensorConfig & TemperatureConfig & {
|
|
186
|
+
minimumTemperature?: number;
|
|
187
|
+
maximumTemperature?: number;
|
|
186
188
|
topicGetCurrentTemperature: string;
|
|
187
189
|
};
|
|
188
190
|
export type TemperatureControlConfig = BaseAccessoryConfig & TemperatureConfig & {
|
package/package.json
CHANGED
|
@@ -3209,29 +3209,11 @@
|
|
|
3209
3209
|
}
|
|
3210
3210
|
]
|
|
3211
3211
|
},
|
|
3212
|
-
{
|
|
3213
|
-
"type": "div",
|
|
3214
|
-
"displayFlex": true,
|
|
3215
|
-
"flex-direction": "row",
|
|
3216
|
-
"condition": {
|
|
3217
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3218
|
-
},
|
|
3219
|
-
"items": [
|
|
3220
|
-
{
|
|
3221
|
-
"key": "accessories[].topicGetCurrentTemperature",
|
|
3222
|
-
"flex": "0 0 67%"
|
|
3223
|
-
},
|
|
3224
|
-
{
|
|
3225
|
-
"key": "accessories[].temperatureUnits",
|
|
3226
|
-
"flex": "0 0 33%"
|
|
3227
|
-
}
|
|
3228
|
-
]
|
|
3229
|
-
},
|
|
3230
3212
|
{
|
|
3231
3213
|
"type": "fieldset",
|
|
3232
3214
|
"notitle": true,
|
|
3233
3215
|
"condition": {
|
|
3234
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type
|
|
3216
|
+
"functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
|
|
3235
3217
|
},
|
|
3236
3218
|
"items": [
|
|
3237
3219
|
{
|
|
@@ -3253,7 +3235,10 @@
|
|
|
3253
3235
|
},
|
|
3254
3236
|
{
|
|
3255
3237
|
"key": "accessories[].minimumStep",
|
|
3256
|
-
"flex": "0 0 25%"
|
|
3238
|
+
"flex": "0 0 25%",
|
|
3239
|
+
"condition": {
|
|
3240
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3241
|
+
}
|
|
3257
3242
|
}
|
|
3258
3243
|
]
|
|
3259
3244
|
},
|
|
@@ -3261,6 +3246,9 @@
|
|
|
3261
3246
|
"type": "div",
|
|
3262
3247
|
"displayFlex": true,
|
|
3263
3248
|
"flex-direction": "row",
|
|
3249
|
+
"condition": {
|
|
3250
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3251
|
+
},
|
|
3264
3252
|
"items": [
|
|
3265
3253
|
{
|
|
3266
3254
|
"key": "accessories[].topicGetCurrentHeatingCoolingState",
|
|
@@ -3272,6 +3260,9 @@
|
|
|
3272
3260
|
"type": "div",
|
|
3273
3261
|
"displayFlex": true,
|
|
3274
3262
|
"flex-direction": "row",
|
|
3263
|
+
"condition": {
|
|
3264
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3265
|
+
},
|
|
3275
3266
|
"items": [
|
|
3276
3267
|
{
|
|
3277
3268
|
"key": "accessories[].topicGetTargetHeatingCoolingState",
|
|
@@ -3287,6 +3278,9 @@
|
|
|
3287
3278
|
"type": "div",
|
|
3288
3279
|
"displayFlex": true,
|
|
3289
3280
|
"flex-direction": "row",
|
|
3281
|
+
"condition": {
|
|
3282
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3283
|
+
},
|
|
3290
3284
|
"items": [
|
|
3291
3285
|
{
|
|
3292
3286
|
"key": "accessories[].topicGetCurrentTemperature",
|
|
@@ -3298,6 +3292,9 @@
|
|
|
3298
3292
|
"type": "div",
|
|
3299
3293
|
"displayFlex": true,
|
|
3300
3294
|
"flex-direction": "row",
|
|
3295
|
+
"condition": {
|
|
3296
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3297
|
+
},
|
|
3301
3298
|
"items": [
|
|
3302
3299
|
{
|
|
3303
3300
|
"key": "accessories[].topicGetTargetTemperature",
|
|
@@ -3313,6 +3310,9 @@
|
|
|
3313
3310
|
"type": "div",
|
|
3314
3311
|
"displayFlex": true,
|
|
3315
3312
|
"flex-direction": "row",
|
|
3313
|
+
"condition": {
|
|
3314
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3315
|
+
},
|
|
3316
3316
|
"items": [
|
|
3317
3317
|
{
|
|
3318
3318
|
"key": "accessories[].topicGetCurrentRelativeHumidity",
|
|
@@ -3325,6 +3325,9 @@
|
|
|
3325
3325
|
"type": "div",
|
|
3326
3326
|
"displayFlex": true,
|
|
3327
3327
|
"flex-direction": "row",
|
|
3328
|
+
"condition": {
|
|
3329
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3330
|
+
},
|
|
3328
3331
|
"items": [
|
|
3329
3332
|
{
|
|
3330
3333
|
"key": "accessories[].topicGetTargetRelativeHumidity",
|
|
@@ -3338,6 +3341,24 @@
|
|
|
3338
3341
|
}
|
|
3339
3342
|
]
|
|
3340
3343
|
},
|
|
3344
|
+
{
|
|
3345
|
+
"type": "div",
|
|
3346
|
+
"displayFlex": true,
|
|
3347
|
+
"flex-direction": "row",
|
|
3348
|
+
"condition": {
|
|
3349
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3350
|
+
},
|
|
3351
|
+
"items": [
|
|
3352
|
+
{
|
|
3353
|
+
"key": "accessories[].topicGetCurrentTemperature",
|
|
3354
|
+
"flex": "0 0 67%"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"key": "accessories[].temperatureUnits",
|
|
3358
|
+
"flex": "0 0 33%"
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3341
3362
|
{
|
|
3342
3363
|
"type": "fieldset",
|
|
3343
3364
|
"notitle": true,
|
|
@@ -3209,29 +3209,11 @@
|
|
|
3209
3209
|
}
|
|
3210
3210
|
]
|
|
3211
3211
|
},
|
|
3212
|
-
{
|
|
3213
|
-
"type": "div",
|
|
3214
|
-
"displayFlex": true,
|
|
3215
|
-
"flex-direction": "row",
|
|
3216
|
-
"condition": {
|
|
3217
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3218
|
-
},
|
|
3219
|
-
"items": [
|
|
3220
|
-
{
|
|
3221
|
-
"key": "accessories[].topicGetCurrentTemperature",
|
|
3222
|
-
"flex": "0 0 67%"
|
|
3223
|
-
},
|
|
3224
|
-
{
|
|
3225
|
-
"key": "accessories[].temperatureUnits",
|
|
3226
|
-
"flex": "0 0 33%"
|
|
3227
|
-
}
|
|
3228
|
-
]
|
|
3229
|
-
},
|
|
3230
3212
|
{
|
|
3231
3213
|
"type": "fieldset",
|
|
3232
3214
|
"notitle": true,
|
|
3233
3215
|
"condition": {
|
|
3234
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type
|
|
3216
|
+
"functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
|
|
3235
3217
|
},
|
|
3236
3218
|
"items": [
|
|
3237
3219
|
{
|
|
@@ -3253,7 +3235,10 @@
|
|
|
3253
3235
|
},
|
|
3254
3236
|
{
|
|
3255
3237
|
"key": "accessories[].minimumStep",
|
|
3256
|
-
"flex": "0 0 25%"
|
|
3238
|
+
"flex": "0 0 25%",
|
|
3239
|
+
"condition": {
|
|
3240
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3241
|
+
}
|
|
3257
3242
|
}
|
|
3258
3243
|
]
|
|
3259
3244
|
},
|
|
@@ -3261,6 +3246,9 @@
|
|
|
3261
3246
|
"type": "div",
|
|
3262
3247
|
"displayFlex": true,
|
|
3263
3248
|
"flex-direction": "row",
|
|
3249
|
+
"condition": {
|
|
3250
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3251
|
+
},
|
|
3264
3252
|
"items": [
|
|
3265
3253
|
{
|
|
3266
3254
|
"key": "accessories[].topicGetCurrentHeatingCoolingState",
|
|
@@ -3272,6 +3260,9 @@
|
|
|
3272
3260
|
"type": "div",
|
|
3273
3261
|
"displayFlex": true,
|
|
3274
3262
|
"flex-direction": "row",
|
|
3263
|
+
"condition": {
|
|
3264
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3265
|
+
},
|
|
3275
3266
|
"items": [
|
|
3276
3267
|
{
|
|
3277
3268
|
"key": "accessories[].topicGetTargetHeatingCoolingState",
|
|
@@ -3287,6 +3278,9 @@
|
|
|
3287
3278
|
"type": "div",
|
|
3288
3279
|
"displayFlex": true,
|
|
3289
3280
|
"flex-direction": "row",
|
|
3281
|
+
"condition": {
|
|
3282
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3283
|
+
},
|
|
3290
3284
|
"items": [
|
|
3291
3285
|
{
|
|
3292
3286
|
"key": "accessories[].topicGetCurrentTemperature",
|
|
@@ -3298,6 +3292,9 @@
|
|
|
3298
3292
|
"type": "div",
|
|
3299
3293
|
"displayFlex": true,
|
|
3300
3294
|
"flex-direction": "row",
|
|
3295
|
+
"condition": {
|
|
3296
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3297
|
+
},
|
|
3301
3298
|
"items": [
|
|
3302
3299
|
{
|
|
3303
3300
|
"key": "accessories[].topicGetTargetTemperature",
|
|
@@ -3313,6 +3310,9 @@
|
|
|
3313
3310
|
"type": "div",
|
|
3314
3311
|
"displayFlex": true,
|
|
3315
3312
|
"flex-direction": "row",
|
|
3313
|
+
"condition": {
|
|
3314
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3315
|
+
},
|
|
3316
3316
|
"items": [
|
|
3317
3317
|
{
|
|
3318
3318
|
"key": "accessories[].topicGetCurrentRelativeHumidity",
|
|
@@ -3325,6 +3325,9 @@
|
|
|
3325
3325
|
"type": "div",
|
|
3326
3326
|
"displayFlex": true,
|
|
3327
3327
|
"flex-direction": "row",
|
|
3328
|
+
"condition": {
|
|
3329
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3330
|
+
},
|
|
3328
3331
|
"items": [
|
|
3329
3332
|
{
|
|
3330
3333
|
"key": "accessories[].topicGetTargetRelativeHumidity",
|
|
@@ -3338,6 +3341,24 @@
|
|
|
3338
3341
|
}
|
|
3339
3342
|
]
|
|
3340
3343
|
},
|
|
3344
|
+
{
|
|
3345
|
+
"type": "div",
|
|
3346
|
+
"displayFlex": true,
|
|
3347
|
+
"flex-direction": "row",
|
|
3348
|
+
"condition": {
|
|
3349
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3350
|
+
},
|
|
3351
|
+
"items": [
|
|
3352
|
+
{
|
|
3353
|
+
"key": "accessories[].topicGetCurrentTemperature",
|
|
3354
|
+
"flex": "0 0 67%"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"key": "accessories[].temperatureUnits",
|
|
3358
|
+
"flex": "0 0 33%"
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3341
3362
|
{
|
|
3342
3363
|
"type": "fieldset",
|
|
3343
3364
|
"notitle": true,
|
|
@@ -3209,29 +3209,11 @@
|
|
|
3209
3209
|
}
|
|
3210
3210
|
]
|
|
3211
3211
|
},
|
|
3212
|
-
{
|
|
3213
|
-
"type": "div",
|
|
3214
|
-
"displayFlex": true,
|
|
3215
|
-
"flex-direction": "row",
|
|
3216
|
-
"condition": {
|
|
3217
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3218
|
-
},
|
|
3219
|
-
"items": [
|
|
3220
|
-
{
|
|
3221
|
-
"key": "accessories[].topicGetCurrentTemperature",
|
|
3222
|
-
"flex": "0 0 67%"
|
|
3223
|
-
},
|
|
3224
|
-
{
|
|
3225
|
-
"key": "accessories[].temperatureUnits",
|
|
3226
|
-
"flex": "0 0 33%"
|
|
3227
|
-
}
|
|
3228
|
-
]
|
|
3229
|
-
},
|
|
3230
3212
|
{
|
|
3231
3213
|
"type": "fieldset",
|
|
3232
3214
|
"notitle": true,
|
|
3233
3215
|
"condition": {
|
|
3234
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type
|
|
3216
|
+
"functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
|
|
3235
3217
|
},
|
|
3236
3218
|
"items": [
|
|
3237
3219
|
{
|
|
@@ -3253,7 +3235,10 @@
|
|
|
3253
3235
|
},
|
|
3254
3236
|
{
|
|
3255
3237
|
"key": "accessories[].minimumStep",
|
|
3256
|
-
"flex": "0 0 25%"
|
|
3238
|
+
"flex": "0 0 25%",
|
|
3239
|
+
"condition": {
|
|
3240
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3241
|
+
}
|
|
3257
3242
|
}
|
|
3258
3243
|
]
|
|
3259
3244
|
},
|
|
@@ -3261,6 +3246,9 @@
|
|
|
3261
3246
|
"type": "div",
|
|
3262
3247
|
"displayFlex": true,
|
|
3263
3248
|
"flex-direction": "row",
|
|
3249
|
+
"condition": {
|
|
3250
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3251
|
+
},
|
|
3264
3252
|
"items": [
|
|
3265
3253
|
{
|
|
3266
3254
|
"key": "accessories[].topicGetCurrentHeatingCoolingState",
|
|
@@ -3272,6 +3260,9 @@
|
|
|
3272
3260
|
"type": "div",
|
|
3273
3261
|
"displayFlex": true,
|
|
3274
3262
|
"flex-direction": "row",
|
|
3263
|
+
"condition": {
|
|
3264
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3265
|
+
},
|
|
3275
3266
|
"items": [
|
|
3276
3267
|
{
|
|
3277
3268
|
"key": "accessories[].topicGetTargetHeatingCoolingState",
|
|
@@ -3287,6 +3278,9 @@
|
|
|
3287
3278
|
"type": "div",
|
|
3288
3279
|
"displayFlex": true,
|
|
3289
3280
|
"flex-direction": "row",
|
|
3281
|
+
"condition": {
|
|
3282
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3283
|
+
},
|
|
3290
3284
|
"items": [
|
|
3291
3285
|
{
|
|
3292
3286
|
"key": "accessories[].topicGetCurrentTemperature",
|
|
@@ -3298,6 +3292,9 @@
|
|
|
3298
3292
|
"type": "div",
|
|
3299
3293
|
"displayFlex": true,
|
|
3300
3294
|
"flex-direction": "row",
|
|
3295
|
+
"condition": {
|
|
3296
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3297
|
+
},
|
|
3301
3298
|
"items": [
|
|
3302
3299
|
{
|
|
3303
3300
|
"key": "accessories[].topicGetTargetTemperature",
|
|
@@ -3313,6 +3310,9 @@
|
|
|
3313
3310
|
"type": "div",
|
|
3314
3311
|
"displayFlex": true,
|
|
3315
3312
|
"flex-direction": "row",
|
|
3313
|
+
"condition": {
|
|
3314
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3315
|
+
},
|
|
3316
3316
|
"items": [
|
|
3317
3317
|
{
|
|
3318
3318
|
"key": "accessories[].topicGetCurrentRelativeHumidity",
|
|
@@ -3325,6 +3325,9 @@
|
|
|
3325
3325
|
"type": "div",
|
|
3326
3326
|
"displayFlex": true,
|
|
3327
3327
|
"flex-direction": "row",
|
|
3328
|
+
"condition": {
|
|
3329
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3330
|
+
},
|
|
3328
3331
|
"items": [
|
|
3329
3332
|
{
|
|
3330
3333
|
"key": "accessories[].topicGetTargetRelativeHumidity",
|
|
@@ -3338,6 +3341,24 @@
|
|
|
3338
3341
|
}
|
|
3339
3342
|
]
|
|
3340
3343
|
},
|
|
3344
|
+
{
|
|
3345
|
+
"type": "div",
|
|
3346
|
+
"displayFlex": true,
|
|
3347
|
+
"flex-direction": "row",
|
|
3348
|
+
"condition": {
|
|
3349
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3350
|
+
},
|
|
3351
|
+
"items": [
|
|
3352
|
+
{
|
|
3353
|
+
"key": "accessories[].topicGetCurrentTemperature",
|
|
3354
|
+
"flex": "0 0 67%"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"key": "accessories[].temperatureUnits",
|
|
3358
|
+
"flex": "0 0 33%"
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3341
3362
|
{
|
|
3342
3363
|
"type": "fieldset",
|
|
3343
3364
|
"notitle": true,
|
|
@@ -3209,29 +3209,11 @@
|
|
|
3209
3209
|
}
|
|
3210
3210
|
]
|
|
3211
3211
|
},
|
|
3212
|
-
{
|
|
3213
|
-
"type": "div",
|
|
3214
|
-
"displayFlex": true,
|
|
3215
|
-
"flex-direction": "row",
|
|
3216
|
-
"condition": {
|
|
3217
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3218
|
-
},
|
|
3219
|
-
"items": [
|
|
3220
|
-
{
|
|
3221
|
-
"key": "accessories[].topicGetCurrentTemperature",
|
|
3222
|
-
"flex": "0 0 67%"
|
|
3223
|
-
},
|
|
3224
|
-
{
|
|
3225
|
-
"key": "accessories[].temperatureUnits",
|
|
3226
|
-
"flex": "0 0 33%"
|
|
3227
|
-
}
|
|
3228
|
-
]
|
|
3229
|
-
},
|
|
3230
3212
|
{
|
|
3231
3213
|
"type": "fieldset",
|
|
3232
3214
|
"notitle": true,
|
|
3233
3215
|
"condition": {
|
|
3234
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type
|
|
3216
|
+
"functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
|
|
3235
3217
|
},
|
|
3236
3218
|
"items": [
|
|
3237
3219
|
{
|
|
@@ -3253,7 +3235,10 @@
|
|
|
3253
3235
|
},
|
|
3254
3236
|
{
|
|
3255
3237
|
"key": "accessories[].minimumStep",
|
|
3256
|
-
"flex": "0 0 25%"
|
|
3238
|
+
"flex": "0 0 25%",
|
|
3239
|
+
"condition": {
|
|
3240
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3241
|
+
}
|
|
3257
3242
|
}
|
|
3258
3243
|
]
|
|
3259
3244
|
},
|
|
@@ -3261,6 +3246,9 @@
|
|
|
3261
3246
|
"type": "div",
|
|
3262
3247
|
"displayFlex": true,
|
|
3263
3248
|
"flex-direction": "row",
|
|
3249
|
+
"condition": {
|
|
3250
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3251
|
+
},
|
|
3264
3252
|
"items": [
|
|
3265
3253
|
{
|
|
3266
3254
|
"key": "accessories[].topicGetCurrentHeatingCoolingState",
|
|
@@ -3272,6 +3260,9 @@
|
|
|
3272
3260
|
"type": "div",
|
|
3273
3261
|
"displayFlex": true,
|
|
3274
3262
|
"flex-direction": "row",
|
|
3263
|
+
"condition": {
|
|
3264
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3265
|
+
},
|
|
3275
3266
|
"items": [
|
|
3276
3267
|
{
|
|
3277
3268
|
"key": "accessories[].topicGetTargetHeatingCoolingState",
|
|
@@ -3287,6 +3278,9 @@
|
|
|
3287
3278
|
"type": "div",
|
|
3288
3279
|
"displayFlex": true,
|
|
3289
3280
|
"flex-direction": "row",
|
|
3281
|
+
"condition": {
|
|
3282
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3283
|
+
},
|
|
3290
3284
|
"items": [
|
|
3291
3285
|
{
|
|
3292
3286
|
"key": "accessories[].topicGetCurrentTemperature",
|
|
@@ -3298,6 +3292,9 @@
|
|
|
3298
3292
|
"type": "div",
|
|
3299
3293
|
"displayFlex": true,
|
|
3300
3294
|
"flex-direction": "row",
|
|
3295
|
+
"condition": {
|
|
3296
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3297
|
+
},
|
|
3301
3298
|
"items": [
|
|
3302
3299
|
{
|
|
3303
3300
|
"key": "accessories[].topicGetTargetTemperature",
|
|
@@ -3313,6 +3310,9 @@
|
|
|
3313
3310
|
"type": "div",
|
|
3314
3311
|
"displayFlex": true,
|
|
3315
3312
|
"flex-direction": "row",
|
|
3313
|
+
"condition": {
|
|
3314
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3315
|
+
},
|
|
3316
3316
|
"items": [
|
|
3317
3317
|
{
|
|
3318
3318
|
"key": "accessories[].topicGetCurrentRelativeHumidity",
|
|
@@ -3325,6 +3325,9 @@
|
|
|
3325
3325
|
"type": "div",
|
|
3326
3326
|
"displayFlex": true,
|
|
3327
3327
|
"flex-direction": "row",
|
|
3328
|
+
"condition": {
|
|
3329
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3330
|
+
},
|
|
3328
3331
|
"items": [
|
|
3329
3332
|
{
|
|
3330
3333
|
"key": "accessories[].topicGetTargetRelativeHumidity",
|
|
@@ -3338,6 +3341,24 @@
|
|
|
3338
3341
|
}
|
|
3339
3342
|
]
|
|
3340
3343
|
},
|
|
3344
|
+
{
|
|
3345
|
+
"type": "div",
|
|
3346
|
+
"displayFlex": true,
|
|
3347
|
+
"flex-direction": "row",
|
|
3348
|
+
"condition": {
|
|
3349
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3350
|
+
},
|
|
3351
|
+
"items": [
|
|
3352
|
+
{
|
|
3353
|
+
"key": "accessories[].topicGetCurrentTemperature",
|
|
3354
|
+
"flex": "0 0 67%"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"key": "accessories[].temperatureUnits",
|
|
3358
|
+
"flex": "0 0 33%"
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3341
3362
|
{
|
|
3342
3363
|
"type": "fieldset",
|
|
3343
3364
|
"notitle": true,
|
|
@@ -3209,29 +3209,11 @@
|
|
|
3209
3209
|
}
|
|
3210
3210
|
]
|
|
3211
3211
|
},
|
|
3212
|
-
{
|
|
3213
|
-
"type": "div",
|
|
3214
|
-
"displayFlex": true,
|
|
3215
|
-
"flex-direction": "row",
|
|
3216
|
-
"condition": {
|
|
3217
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3218
|
-
},
|
|
3219
|
-
"items": [
|
|
3220
|
-
{
|
|
3221
|
-
"key": "accessories[].topicGetCurrentTemperature",
|
|
3222
|
-
"flex": "0 0 67%"
|
|
3223
|
-
},
|
|
3224
|
-
{
|
|
3225
|
-
"key": "accessories[].temperatureUnits",
|
|
3226
|
-
"flex": "0 0 33%"
|
|
3227
|
-
}
|
|
3228
|
-
]
|
|
3229
|
-
},
|
|
3230
3212
|
{
|
|
3231
3213
|
"type": "fieldset",
|
|
3232
3214
|
"notitle": true,
|
|
3233
3215
|
"condition": {
|
|
3234
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type
|
|
3216
|
+
"functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
|
|
3235
3217
|
},
|
|
3236
3218
|
"items": [
|
|
3237
3219
|
{
|
|
@@ -3253,7 +3235,10 @@
|
|
|
3253
3235
|
},
|
|
3254
3236
|
{
|
|
3255
3237
|
"key": "accessories[].minimumStep",
|
|
3256
|
-
"flex": "0 0 25%"
|
|
3238
|
+
"flex": "0 0 25%",
|
|
3239
|
+
"condition": {
|
|
3240
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3241
|
+
}
|
|
3257
3242
|
}
|
|
3258
3243
|
]
|
|
3259
3244
|
},
|
|
@@ -3261,6 +3246,9 @@
|
|
|
3261
3246
|
"type": "div",
|
|
3262
3247
|
"displayFlex": true,
|
|
3263
3248
|
"flex-direction": "row",
|
|
3249
|
+
"condition": {
|
|
3250
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3251
|
+
},
|
|
3264
3252
|
"items": [
|
|
3265
3253
|
{
|
|
3266
3254
|
"key": "accessories[].topicGetCurrentHeatingCoolingState",
|
|
@@ -3272,6 +3260,9 @@
|
|
|
3272
3260
|
"type": "div",
|
|
3273
3261
|
"displayFlex": true,
|
|
3274
3262
|
"flex-direction": "row",
|
|
3263
|
+
"condition": {
|
|
3264
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3265
|
+
},
|
|
3275
3266
|
"items": [
|
|
3276
3267
|
{
|
|
3277
3268
|
"key": "accessories[].topicGetTargetHeatingCoolingState",
|
|
@@ -3287,6 +3278,9 @@
|
|
|
3287
3278
|
"type": "div",
|
|
3288
3279
|
"displayFlex": true,
|
|
3289
3280
|
"flex-direction": "row",
|
|
3281
|
+
"condition": {
|
|
3282
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3283
|
+
},
|
|
3290
3284
|
"items": [
|
|
3291
3285
|
{
|
|
3292
3286
|
"key": "accessories[].topicGetCurrentTemperature",
|
|
@@ -3298,6 +3292,9 @@
|
|
|
3298
3292
|
"type": "div",
|
|
3299
3293
|
"displayFlex": true,
|
|
3300
3294
|
"flex-direction": "row",
|
|
3295
|
+
"condition": {
|
|
3296
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3297
|
+
},
|
|
3301
3298
|
"items": [
|
|
3302
3299
|
{
|
|
3303
3300
|
"key": "accessories[].topicGetTargetTemperature",
|
|
@@ -3313,6 +3310,9 @@
|
|
|
3313
3310
|
"type": "div",
|
|
3314
3311
|
"displayFlex": true,
|
|
3315
3312
|
"flex-direction": "row",
|
|
3313
|
+
"condition": {
|
|
3314
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3315
|
+
},
|
|
3316
3316
|
"items": [
|
|
3317
3317
|
{
|
|
3318
3318
|
"key": "accessories[].topicGetCurrentRelativeHumidity",
|
|
@@ -3325,6 +3325,9 @@
|
|
|
3325
3325
|
"type": "div",
|
|
3326
3326
|
"displayFlex": true,
|
|
3327
3327
|
"flex-direction": "row",
|
|
3328
|
+
"condition": {
|
|
3329
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3330
|
+
},
|
|
3328
3331
|
"items": [
|
|
3329
3332
|
{
|
|
3330
3333
|
"key": "accessories[].topicGetTargetRelativeHumidity",
|
|
@@ -3338,6 +3341,24 @@
|
|
|
3338
3341
|
}
|
|
3339
3342
|
]
|
|
3340
3343
|
},
|
|
3344
|
+
{
|
|
3345
|
+
"type": "div",
|
|
3346
|
+
"displayFlex": true,
|
|
3347
|
+
"flex-direction": "row",
|
|
3348
|
+
"condition": {
|
|
3349
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3350
|
+
},
|
|
3351
|
+
"items": [
|
|
3352
|
+
{
|
|
3353
|
+
"key": "accessories[].topicGetCurrentTemperature",
|
|
3354
|
+
"flex": "0 0 67%"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"key": "accessories[].temperatureUnits",
|
|
3358
|
+
"flex": "0 0 33%"
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3341
3362
|
{
|
|
3342
3363
|
"type": "fieldset",
|
|
3343
3364
|
"notitle": true,
|
|
@@ -3209,29 +3209,11 @@
|
|
|
3209
3209
|
}
|
|
3210
3210
|
]
|
|
3211
3211
|
},
|
|
3212
|
-
{
|
|
3213
|
-
"type": "div",
|
|
3214
|
-
"displayFlex": true,
|
|
3215
|
-
"flex-direction": "row",
|
|
3216
|
-
"condition": {
|
|
3217
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3218
|
-
},
|
|
3219
|
-
"items": [
|
|
3220
|
-
{
|
|
3221
|
-
"key": "accessories[].topicGetCurrentTemperature",
|
|
3222
|
-
"flex": "0 0 67%"
|
|
3223
|
-
},
|
|
3224
|
-
{
|
|
3225
|
-
"key": "accessories[].temperatureUnits",
|
|
3226
|
-
"flex": "0 0 33%"
|
|
3227
|
-
}
|
|
3228
|
-
]
|
|
3229
|
-
},
|
|
3230
3212
|
{
|
|
3231
3213
|
"type": "fieldset",
|
|
3232
3214
|
"notitle": true,
|
|
3233
3215
|
"condition": {
|
|
3234
|
-
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type
|
|
3216
|
+
"functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
|
|
3235
3217
|
},
|
|
3236
3218
|
"items": [
|
|
3237
3219
|
{
|
|
@@ -3253,7 +3235,10 @@
|
|
|
3253
3235
|
},
|
|
3254
3236
|
{
|
|
3255
3237
|
"key": "accessories[].minimumStep",
|
|
3256
|
-
"flex": "0 0 25%"
|
|
3238
|
+
"flex": "0 0 25%",
|
|
3239
|
+
"condition": {
|
|
3240
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3241
|
+
}
|
|
3257
3242
|
}
|
|
3258
3243
|
]
|
|
3259
3244
|
},
|
|
@@ -3261,6 +3246,9 @@
|
|
|
3261
3246
|
"type": "div",
|
|
3262
3247
|
"displayFlex": true,
|
|
3263
3248
|
"flex-direction": "row",
|
|
3249
|
+
"condition": {
|
|
3250
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3251
|
+
},
|
|
3264
3252
|
"items": [
|
|
3265
3253
|
{
|
|
3266
3254
|
"key": "accessories[].topicGetCurrentHeatingCoolingState",
|
|
@@ -3272,6 +3260,9 @@
|
|
|
3272
3260
|
"type": "div",
|
|
3273
3261
|
"displayFlex": true,
|
|
3274
3262
|
"flex-direction": "row",
|
|
3263
|
+
"condition": {
|
|
3264
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3265
|
+
},
|
|
3275
3266
|
"items": [
|
|
3276
3267
|
{
|
|
3277
3268
|
"key": "accessories[].topicGetTargetHeatingCoolingState",
|
|
@@ -3287,6 +3278,9 @@
|
|
|
3287
3278
|
"type": "div",
|
|
3288
3279
|
"displayFlex": true,
|
|
3289
3280
|
"flex-direction": "row",
|
|
3281
|
+
"condition": {
|
|
3282
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3283
|
+
},
|
|
3290
3284
|
"items": [
|
|
3291
3285
|
{
|
|
3292
3286
|
"key": "accessories[].topicGetCurrentTemperature",
|
|
@@ -3298,6 +3292,9 @@
|
|
|
3298
3292
|
"type": "div",
|
|
3299
3293
|
"displayFlex": true,
|
|
3300
3294
|
"flex-direction": "row",
|
|
3295
|
+
"condition": {
|
|
3296
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3297
|
+
},
|
|
3301
3298
|
"items": [
|
|
3302
3299
|
{
|
|
3303
3300
|
"key": "accessories[].topicGetTargetTemperature",
|
|
@@ -3313,6 +3310,9 @@
|
|
|
3313
3310
|
"type": "div",
|
|
3314
3311
|
"displayFlex": true,
|
|
3315
3312
|
"flex-direction": "row",
|
|
3313
|
+
"condition": {
|
|
3314
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3315
|
+
},
|
|
3316
3316
|
"items": [
|
|
3317
3317
|
{
|
|
3318
3318
|
"key": "accessories[].topicGetCurrentRelativeHumidity",
|
|
@@ -3325,6 +3325,9 @@
|
|
|
3325
3325
|
"type": "div",
|
|
3326
3326
|
"displayFlex": true,
|
|
3327
3327
|
"flex-direction": "row",
|
|
3328
|
+
"condition": {
|
|
3329
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
|
|
3330
|
+
},
|
|
3328
3331
|
"items": [
|
|
3329
3332
|
{
|
|
3330
3333
|
"key": "accessories[].topicGetTargetRelativeHumidity",
|
|
@@ -3338,6 +3341,24 @@
|
|
|
3338
3341
|
}
|
|
3339
3342
|
]
|
|
3340
3343
|
},
|
|
3344
|
+
{
|
|
3345
|
+
"type": "div",
|
|
3346
|
+
"displayFlex": true,
|
|
3347
|
+
"flex-direction": "row",
|
|
3348
|
+
"condition": {
|
|
3349
|
+
"functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'TemperatureSensor';"
|
|
3350
|
+
},
|
|
3351
|
+
"items": [
|
|
3352
|
+
{
|
|
3353
|
+
"key": "accessories[].topicGetCurrentTemperature",
|
|
3354
|
+
"flex": "0 0 67%"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"key": "accessories[].temperatureUnits",
|
|
3358
|
+
"flex": "0 0 33%"
|
|
3359
|
+
}
|
|
3360
|
+
]
|
|
3361
|
+
},
|
|
3341
3362
|
{
|
|
3342
3363
|
"type": "fieldset",
|
|
3343
3364
|
"notitle": true,
|