homebridge-easy-mqtt 2.2.1-beta.0 → 2.2.1

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 CHANGED
@@ -2,7 +2,7 @@
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 ()
5
+ ## 2.2.1 (2026-11-16)
6
6
 
7
7
  ### Added
8
8
  - Temperature minimum/maximum setting for [TemperatureSensor](https://github.com/mpatfield/homebridge-easy-mqtt/wiki/TemperatureSensor)
@@ -3209,11 +3209,37 @@
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 33%"
3223
+ },
3224
+ {
3225
+ "key": "accessories[].temperatureUnits",
3226
+ "flex": "0 0 23%"
3227
+ },
3228
+ {
3229
+ "key": "accessories[].minimumTemperature",
3230
+ "flex": "0 0 22%"
3231
+ },
3232
+ {
3233
+ "key": "accessories[].maximumTemperature",
3234
+ "flex": "0 0 22%"
3235
+ }
3236
+ ]
3237
+ },
3212
3238
  {
3213
3239
  "type": "fieldset",
3214
3240
  "notitle": true,
3215
3241
  "condition": {
3216
- "functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
3242
+ "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3217
3243
  },
3218
3244
  "items": [
3219
3245
  {
@@ -3235,10 +3261,7 @@
3235
3261
  },
3236
3262
  {
3237
3263
  "key": "accessories[].minimumStep",
3238
- "flex": "0 0 25%",
3239
- "condition": {
3240
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3241
- }
3264
+ "flex": "0 0 25%"
3242
3265
  }
3243
3266
  ]
3244
3267
  },
@@ -3246,9 +3269,6 @@
3246
3269
  "type": "div",
3247
3270
  "displayFlex": true,
3248
3271
  "flex-direction": "row",
3249
- "condition": {
3250
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3251
- },
3252
3272
  "items": [
3253
3273
  {
3254
3274
  "key": "accessories[].topicGetCurrentHeatingCoolingState",
@@ -3260,9 +3280,6 @@
3260
3280
  "type": "div",
3261
3281
  "displayFlex": true,
3262
3282
  "flex-direction": "row",
3263
- "condition": {
3264
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3265
- },
3266
3283
  "items": [
3267
3284
  {
3268
3285
  "key": "accessories[].topicGetTargetHeatingCoolingState",
@@ -3278,9 +3295,6 @@
3278
3295
  "type": "div",
3279
3296
  "displayFlex": true,
3280
3297
  "flex-direction": "row",
3281
- "condition": {
3282
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3283
- },
3284
3298
  "items": [
3285
3299
  {
3286
3300
  "key": "accessories[].topicGetCurrentTemperature",
@@ -3292,9 +3306,6 @@
3292
3306
  "type": "div",
3293
3307
  "displayFlex": true,
3294
3308
  "flex-direction": "row",
3295
- "condition": {
3296
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3297
- },
3298
3309
  "items": [
3299
3310
  {
3300
3311
  "key": "accessories[].topicGetTargetTemperature",
@@ -3310,9 +3321,6 @@
3310
3321
  "type": "div",
3311
3322
  "displayFlex": true,
3312
3323
  "flex-direction": "row",
3313
- "condition": {
3314
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3315
- },
3316
3324
  "items": [
3317
3325
  {
3318
3326
  "key": "accessories[].topicGetCurrentRelativeHumidity",
@@ -3325,9 +3333,6 @@
3325
3333
  "type": "div",
3326
3334
  "displayFlex": true,
3327
3335
  "flex-direction": "row",
3328
- "condition": {
3329
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3330
- },
3331
3336
  "items": [
3332
3337
  {
3333
3338
  "key": "accessories[].topicGetTargetRelativeHumidity",
@@ -3341,24 +3346,6 @@
3341
3346
  }
3342
3347
  ]
3343
3348
  },
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
- },
3362
3349
  {
3363
3350
  "type": "fieldset",
3364
3351
  "notitle": true,
@@ -3209,11 +3209,37 @@
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 33%"
3223
+ },
3224
+ {
3225
+ "key": "accessories[].temperatureUnits",
3226
+ "flex": "0 0 23%"
3227
+ },
3228
+ {
3229
+ "key": "accessories[].minimumTemperature",
3230
+ "flex": "0 0 22%"
3231
+ },
3232
+ {
3233
+ "key": "accessories[].maximumTemperature",
3234
+ "flex": "0 0 22%"
3235
+ }
3236
+ ]
3237
+ },
3212
3238
  {
3213
3239
  "type": "fieldset",
3214
3240
  "notitle": true,
3215
3241
  "condition": {
3216
- "functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
3242
+ "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3217
3243
  },
3218
3244
  "items": [
3219
3245
  {
@@ -3235,10 +3261,7 @@
3235
3261
  },
3236
3262
  {
3237
3263
  "key": "accessories[].minimumStep",
3238
- "flex": "0 0 25%",
3239
- "condition": {
3240
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3241
- }
3264
+ "flex": "0 0 25%"
3242
3265
  }
3243
3266
  ]
3244
3267
  },
@@ -3246,9 +3269,6 @@
3246
3269
  "type": "div",
3247
3270
  "displayFlex": true,
3248
3271
  "flex-direction": "row",
3249
- "condition": {
3250
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3251
- },
3252
3272
  "items": [
3253
3273
  {
3254
3274
  "key": "accessories[].topicGetCurrentHeatingCoolingState",
@@ -3260,9 +3280,6 @@
3260
3280
  "type": "div",
3261
3281
  "displayFlex": true,
3262
3282
  "flex-direction": "row",
3263
- "condition": {
3264
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3265
- },
3266
3283
  "items": [
3267
3284
  {
3268
3285
  "key": "accessories[].topicGetTargetHeatingCoolingState",
@@ -3278,9 +3295,6 @@
3278
3295
  "type": "div",
3279
3296
  "displayFlex": true,
3280
3297
  "flex-direction": "row",
3281
- "condition": {
3282
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3283
- },
3284
3298
  "items": [
3285
3299
  {
3286
3300
  "key": "accessories[].topicGetCurrentTemperature",
@@ -3292,9 +3306,6 @@
3292
3306
  "type": "div",
3293
3307
  "displayFlex": true,
3294
3308
  "flex-direction": "row",
3295
- "condition": {
3296
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3297
- },
3298
3309
  "items": [
3299
3310
  {
3300
3311
  "key": "accessories[].topicGetTargetTemperature",
@@ -3310,9 +3321,6 @@
3310
3321
  "type": "div",
3311
3322
  "displayFlex": true,
3312
3323
  "flex-direction": "row",
3313
- "condition": {
3314
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3315
- },
3316
3324
  "items": [
3317
3325
  {
3318
3326
  "key": "accessories[].topicGetCurrentRelativeHumidity",
@@ -3325,9 +3333,6 @@
3325
3333
  "type": "div",
3326
3334
  "displayFlex": true,
3327
3335
  "flex-direction": "row",
3328
- "condition": {
3329
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3330
- },
3331
3336
  "items": [
3332
3337
  {
3333
3338
  "key": "accessories[].topicGetTargetRelativeHumidity",
@@ -3341,24 +3346,6 @@
3341
3346
  }
3342
3347
  ]
3343
3348
  },
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
- },
3362
3349
  {
3363
3350
  "type": "fieldset",
3364
3351
  "notitle": true,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName": "Easy MQTT",
5
5
  "description": "Homebridge plugin for MQTT devices",
6
6
  "type": "module",
7
- "version": "2.2.1-beta.0",
7
+ "version": "2.2.1",
8
8
  "homepage": "https://github.com/mpatfield/homebridge-easy-mqtt#readme",
9
9
  "repository": {
10
10
  "type": "git",
@@ -3209,11 +3209,37 @@
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 33%"
3223
+ },
3224
+ {
3225
+ "key": "accessories[].temperatureUnits",
3226
+ "flex": "0 0 23%"
3227
+ },
3228
+ {
3229
+ "key": "accessories[].minimumTemperature",
3230
+ "flex": "0 0 22%"
3231
+ },
3232
+ {
3233
+ "key": "accessories[].maximumTemperature",
3234
+ "flex": "0 0 22%"
3235
+ }
3236
+ ]
3237
+ },
3212
3238
  {
3213
3239
  "type": "fieldset",
3214
3240
  "notitle": true,
3215
3241
  "condition": {
3216
- "functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
3242
+ "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3217
3243
  },
3218
3244
  "items": [
3219
3245
  {
@@ -3235,10 +3261,7 @@
3235
3261
  },
3236
3262
  {
3237
3263
  "key": "accessories[].minimumStep",
3238
- "flex": "0 0 25%",
3239
- "condition": {
3240
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3241
- }
3264
+ "flex": "0 0 25%"
3242
3265
  }
3243
3266
  ]
3244
3267
  },
@@ -3246,9 +3269,6 @@
3246
3269
  "type": "div",
3247
3270
  "displayFlex": true,
3248
3271
  "flex-direction": "row",
3249
- "condition": {
3250
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3251
- },
3252
3272
  "items": [
3253
3273
  {
3254
3274
  "key": "accessories[].topicGetCurrentHeatingCoolingState",
@@ -3260,9 +3280,6 @@
3260
3280
  "type": "div",
3261
3281
  "displayFlex": true,
3262
3282
  "flex-direction": "row",
3263
- "condition": {
3264
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3265
- },
3266
3283
  "items": [
3267
3284
  {
3268
3285
  "key": "accessories[].topicGetTargetHeatingCoolingState",
@@ -3278,9 +3295,6 @@
3278
3295
  "type": "div",
3279
3296
  "displayFlex": true,
3280
3297
  "flex-direction": "row",
3281
- "condition": {
3282
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3283
- },
3284
3298
  "items": [
3285
3299
  {
3286
3300
  "key": "accessories[].topicGetCurrentTemperature",
@@ -3292,9 +3306,6 @@
3292
3306
  "type": "div",
3293
3307
  "displayFlex": true,
3294
3308
  "flex-direction": "row",
3295
- "condition": {
3296
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3297
- },
3298
3309
  "items": [
3299
3310
  {
3300
3311
  "key": "accessories[].topicGetTargetTemperature",
@@ -3310,9 +3321,6 @@
3310
3321
  "type": "div",
3311
3322
  "displayFlex": true,
3312
3323
  "flex-direction": "row",
3313
- "condition": {
3314
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3315
- },
3316
3324
  "items": [
3317
3325
  {
3318
3326
  "key": "accessories[].topicGetCurrentRelativeHumidity",
@@ -3325,9 +3333,6 @@
3325
3333
  "type": "div",
3326
3334
  "displayFlex": true,
3327
3335
  "flex-direction": "row",
3328
- "condition": {
3329
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3330
- },
3331
3336
  "items": [
3332
3337
  {
3333
3338
  "key": "accessories[].topicGetTargetRelativeHumidity",
@@ -3341,24 +3346,6 @@
3341
3346
  }
3342
3347
  ]
3343
3348
  },
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
- },
3362
3349
  {
3363
3350
  "type": "fieldset",
3364
3351
  "notitle": true,
@@ -3209,11 +3209,37 @@
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 33%"
3223
+ },
3224
+ {
3225
+ "key": "accessories[].temperatureUnits",
3226
+ "flex": "0 0 23%"
3227
+ },
3228
+ {
3229
+ "key": "accessories[].minimumTemperature",
3230
+ "flex": "0 0 22%"
3231
+ },
3232
+ {
3233
+ "key": "accessories[].maximumTemperature",
3234
+ "flex": "0 0 22%"
3235
+ }
3236
+ ]
3237
+ },
3212
3238
  {
3213
3239
  "type": "fieldset",
3214
3240
  "notitle": true,
3215
3241
  "condition": {
3216
- "functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
3242
+ "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3217
3243
  },
3218
3244
  "items": [
3219
3245
  {
@@ -3235,10 +3261,7 @@
3235
3261
  },
3236
3262
  {
3237
3263
  "key": "accessories[].minimumStep",
3238
- "flex": "0 0 25%",
3239
- "condition": {
3240
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3241
- }
3264
+ "flex": "0 0 25%"
3242
3265
  }
3243
3266
  ]
3244
3267
  },
@@ -3246,9 +3269,6 @@
3246
3269
  "type": "div",
3247
3270
  "displayFlex": true,
3248
3271
  "flex-direction": "row",
3249
- "condition": {
3250
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3251
- },
3252
3272
  "items": [
3253
3273
  {
3254
3274
  "key": "accessories[].topicGetCurrentHeatingCoolingState",
@@ -3260,9 +3280,6 @@
3260
3280
  "type": "div",
3261
3281
  "displayFlex": true,
3262
3282
  "flex-direction": "row",
3263
- "condition": {
3264
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3265
- },
3266
3283
  "items": [
3267
3284
  {
3268
3285
  "key": "accessories[].topicGetTargetHeatingCoolingState",
@@ -3278,9 +3295,6 @@
3278
3295
  "type": "div",
3279
3296
  "displayFlex": true,
3280
3297
  "flex-direction": "row",
3281
- "condition": {
3282
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3283
- },
3284
3298
  "items": [
3285
3299
  {
3286
3300
  "key": "accessories[].topicGetCurrentTemperature",
@@ -3292,9 +3306,6 @@
3292
3306
  "type": "div",
3293
3307
  "displayFlex": true,
3294
3308
  "flex-direction": "row",
3295
- "condition": {
3296
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3297
- },
3298
3309
  "items": [
3299
3310
  {
3300
3311
  "key": "accessories[].topicGetTargetTemperature",
@@ -3310,9 +3321,6 @@
3310
3321
  "type": "div",
3311
3322
  "displayFlex": true,
3312
3323
  "flex-direction": "row",
3313
- "condition": {
3314
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3315
- },
3316
3324
  "items": [
3317
3325
  {
3318
3326
  "key": "accessories[].topicGetCurrentRelativeHumidity",
@@ -3325,9 +3333,6 @@
3325
3333
  "type": "div",
3326
3334
  "displayFlex": true,
3327
3335
  "flex-direction": "row",
3328
- "condition": {
3329
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3330
- },
3331
3336
  "items": [
3332
3337
  {
3333
3338
  "key": "accessories[].topicGetTargetRelativeHumidity",
@@ -3341,24 +3346,6 @@
3341
3346
  }
3342
3347
  ]
3343
3348
  },
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
- },
3362
3349
  {
3363
3350
  "type": "fieldset",
3364
3351
  "notitle": true,
@@ -3209,11 +3209,37 @@
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 33%"
3223
+ },
3224
+ {
3225
+ "key": "accessories[].temperatureUnits",
3226
+ "flex": "0 0 23%"
3227
+ },
3228
+ {
3229
+ "key": "accessories[].minimumTemperature",
3230
+ "flex": "0 0 22%"
3231
+ },
3232
+ {
3233
+ "key": "accessories[].maximumTemperature",
3234
+ "flex": "0 0 22%"
3235
+ }
3236
+ ]
3237
+ },
3212
3238
  {
3213
3239
  "type": "fieldset",
3214
3240
  "notitle": true,
3215
3241
  "condition": {
3216
- "functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
3242
+ "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3217
3243
  },
3218
3244
  "items": [
3219
3245
  {
@@ -3235,10 +3261,7 @@
3235
3261
  },
3236
3262
  {
3237
3263
  "key": "accessories[].minimumStep",
3238
- "flex": "0 0 25%",
3239
- "condition": {
3240
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3241
- }
3264
+ "flex": "0 0 25%"
3242
3265
  }
3243
3266
  ]
3244
3267
  },
@@ -3246,9 +3269,6 @@
3246
3269
  "type": "div",
3247
3270
  "displayFlex": true,
3248
3271
  "flex-direction": "row",
3249
- "condition": {
3250
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3251
- },
3252
3272
  "items": [
3253
3273
  {
3254
3274
  "key": "accessories[].topicGetCurrentHeatingCoolingState",
@@ -3260,9 +3280,6 @@
3260
3280
  "type": "div",
3261
3281
  "displayFlex": true,
3262
3282
  "flex-direction": "row",
3263
- "condition": {
3264
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3265
- },
3266
3283
  "items": [
3267
3284
  {
3268
3285
  "key": "accessories[].topicGetTargetHeatingCoolingState",
@@ -3278,9 +3295,6 @@
3278
3295
  "type": "div",
3279
3296
  "displayFlex": true,
3280
3297
  "flex-direction": "row",
3281
- "condition": {
3282
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3283
- },
3284
3298
  "items": [
3285
3299
  {
3286
3300
  "key": "accessories[].topicGetCurrentTemperature",
@@ -3292,9 +3306,6 @@
3292
3306
  "type": "div",
3293
3307
  "displayFlex": true,
3294
3308
  "flex-direction": "row",
3295
- "condition": {
3296
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3297
- },
3298
3309
  "items": [
3299
3310
  {
3300
3311
  "key": "accessories[].topicGetTargetTemperature",
@@ -3310,9 +3321,6 @@
3310
3321
  "type": "div",
3311
3322
  "displayFlex": true,
3312
3323
  "flex-direction": "row",
3313
- "condition": {
3314
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3315
- },
3316
3324
  "items": [
3317
3325
  {
3318
3326
  "key": "accessories[].topicGetCurrentRelativeHumidity",
@@ -3325,9 +3333,6 @@
3325
3333
  "type": "div",
3326
3334
  "displayFlex": true,
3327
3335
  "flex-direction": "row",
3328
- "condition": {
3329
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3330
- },
3331
3336
  "items": [
3332
3337
  {
3333
3338
  "key": "accessories[].topicGetTargetRelativeHumidity",
@@ -3341,24 +3346,6 @@
3341
3346
  }
3342
3347
  ]
3343
3348
  },
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
- },
3362
3349
  {
3363
3350
  "type": "fieldset",
3364
3351
  "notitle": true,
@@ -3209,11 +3209,37 @@
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 33%"
3223
+ },
3224
+ {
3225
+ "key": "accessories[].temperatureUnits",
3226
+ "flex": "0 0 23%"
3227
+ },
3228
+ {
3229
+ "key": "accessories[].minimumTemperature",
3230
+ "flex": "0 0 22%"
3231
+ },
3232
+ {
3233
+ "key": "accessories[].maximumTemperature",
3234
+ "flex": "0 0 22%"
3235
+ }
3236
+ ]
3237
+ },
3212
3238
  {
3213
3239
  "type": "fieldset",
3214
3240
  "notitle": true,
3215
3241
  "condition": {
3216
- "functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
3242
+ "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3217
3243
  },
3218
3244
  "items": [
3219
3245
  {
@@ -3235,10 +3261,7 @@
3235
3261
  },
3236
3262
  {
3237
3263
  "key": "accessories[].minimumStep",
3238
- "flex": "0 0 25%",
3239
- "condition": {
3240
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3241
- }
3264
+ "flex": "0 0 25%"
3242
3265
  }
3243
3266
  ]
3244
3267
  },
@@ -3246,9 +3269,6 @@
3246
3269
  "type": "div",
3247
3270
  "displayFlex": true,
3248
3271
  "flex-direction": "row",
3249
- "condition": {
3250
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3251
- },
3252
3272
  "items": [
3253
3273
  {
3254
3274
  "key": "accessories[].topicGetCurrentHeatingCoolingState",
@@ -3260,9 +3280,6 @@
3260
3280
  "type": "div",
3261
3281
  "displayFlex": true,
3262
3282
  "flex-direction": "row",
3263
- "condition": {
3264
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3265
- },
3266
3283
  "items": [
3267
3284
  {
3268
3285
  "key": "accessories[].topicGetTargetHeatingCoolingState",
@@ -3278,9 +3295,6 @@
3278
3295
  "type": "div",
3279
3296
  "displayFlex": true,
3280
3297
  "flex-direction": "row",
3281
- "condition": {
3282
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3283
- },
3284
3298
  "items": [
3285
3299
  {
3286
3300
  "key": "accessories[].topicGetCurrentTemperature",
@@ -3292,9 +3306,6 @@
3292
3306
  "type": "div",
3293
3307
  "displayFlex": true,
3294
3308
  "flex-direction": "row",
3295
- "condition": {
3296
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3297
- },
3298
3309
  "items": [
3299
3310
  {
3300
3311
  "key": "accessories[].topicGetTargetTemperature",
@@ -3310,9 +3321,6 @@
3310
3321
  "type": "div",
3311
3322
  "displayFlex": true,
3312
3323
  "flex-direction": "row",
3313
- "condition": {
3314
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3315
- },
3316
3324
  "items": [
3317
3325
  {
3318
3326
  "key": "accessories[].topicGetCurrentRelativeHumidity",
@@ -3325,9 +3333,6 @@
3325
3333
  "type": "div",
3326
3334
  "displayFlex": true,
3327
3335
  "flex-direction": "row",
3328
- "condition": {
3329
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3330
- },
3331
3336
  "items": [
3332
3337
  {
3333
3338
  "key": "accessories[].topicGetTargetRelativeHumidity",
@@ -3341,24 +3346,6 @@
3341
3346
  }
3342
3347
  ]
3343
3348
  },
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
- },
3362
3349
  {
3363
3350
  "type": "fieldset",
3364
3351
  "notitle": true,
@@ -3209,11 +3209,37 @@
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 33%"
3223
+ },
3224
+ {
3225
+ "key": "accessories[].temperatureUnits",
3226
+ "flex": "0 0 23%"
3227
+ },
3228
+ {
3229
+ "key": "accessories[].minimumTemperature",
3230
+ "flex": "0 0 22%"
3231
+ },
3232
+ {
3233
+ "key": "accessories[].maximumTemperature",
3234
+ "flex": "0 0 22%"
3235
+ }
3236
+ ]
3237
+ },
3212
3238
  {
3213
3239
  "type": "fieldset",
3214
3240
  "notitle": true,
3215
3241
  "condition": {
3216
- "functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
3242
+ "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3217
3243
  },
3218
3244
  "items": [
3219
3245
  {
@@ -3235,10 +3261,7 @@
3235
3261
  },
3236
3262
  {
3237
3263
  "key": "accessories[].minimumStep",
3238
- "flex": "0 0 25%",
3239
- "condition": {
3240
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3241
- }
3264
+ "flex": "0 0 25%"
3242
3265
  }
3243
3266
  ]
3244
3267
  },
@@ -3246,9 +3269,6 @@
3246
3269
  "type": "div",
3247
3270
  "displayFlex": true,
3248
3271
  "flex-direction": "row",
3249
- "condition": {
3250
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3251
- },
3252
3272
  "items": [
3253
3273
  {
3254
3274
  "key": "accessories[].topicGetCurrentHeatingCoolingState",
@@ -3260,9 +3280,6 @@
3260
3280
  "type": "div",
3261
3281
  "displayFlex": true,
3262
3282
  "flex-direction": "row",
3263
- "condition": {
3264
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3265
- },
3266
3283
  "items": [
3267
3284
  {
3268
3285
  "key": "accessories[].topicGetTargetHeatingCoolingState",
@@ -3278,9 +3295,6 @@
3278
3295
  "type": "div",
3279
3296
  "displayFlex": true,
3280
3297
  "flex-direction": "row",
3281
- "condition": {
3282
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3283
- },
3284
3298
  "items": [
3285
3299
  {
3286
3300
  "key": "accessories[].topicGetCurrentTemperature",
@@ -3292,9 +3306,6 @@
3292
3306
  "type": "div",
3293
3307
  "displayFlex": true,
3294
3308
  "flex-direction": "row",
3295
- "condition": {
3296
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3297
- },
3298
3309
  "items": [
3299
3310
  {
3300
3311
  "key": "accessories[].topicGetTargetTemperature",
@@ -3310,9 +3321,6 @@
3310
3321
  "type": "div",
3311
3322
  "displayFlex": true,
3312
3323
  "flex-direction": "row",
3313
- "condition": {
3314
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3315
- },
3316
3324
  "items": [
3317
3325
  {
3318
3326
  "key": "accessories[].topicGetCurrentRelativeHumidity",
@@ -3325,9 +3333,6 @@
3325
3333
  "type": "div",
3326
3334
  "displayFlex": true,
3327
3335
  "flex-direction": "row",
3328
- "condition": {
3329
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3330
- },
3331
3336
  "items": [
3332
3337
  {
3333
3338
  "key": "accessories[].topicGetTargetRelativeHumidity",
@@ -3341,24 +3346,6 @@
3341
3346
  }
3342
3347
  ]
3343
3348
  },
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
- },
3362
3349
  {
3363
3350
  "type": "fieldset",
3364
3351
  "notitle": true,
@@ -3209,11 +3209,37 @@
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 33%"
3223
+ },
3224
+ {
3225
+ "key": "accessories[].temperatureUnits",
3226
+ "flex": "0 0 23%"
3227
+ },
3228
+ {
3229
+ "key": "accessories[].minimumTemperature",
3230
+ "flex": "0 0 22%"
3231
+ },
3232
+ {
3233
+ "key": "accessories[].maximumTemperature",
3234
+ "flex": "0 0 22%"
3235
+ }
3236
+ ]
3237
+ },
3212
3238
  {
3213
3239
  "type": "fieldset",
3214
3240
  "notitle": true,
3215
3241
  "condition": {
3216
- "functionBody": "return ['Thermostat', 'TemperatureSensor'].includes(model.accessories?.[arguments[1]]?.info?.type);"
3242
+ "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3217
3243
  },
3218
3244
  "items": [
3219
3245
  {
@@ -3235,10 +3261,7 @@
3235
3261
  },
3236
3262
  {
3237
3263
  "key": "accessories[].minimumStep",
3238
- "flex": "0 0 25%",
3239
- "condition": {
3240
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3241
- }
3264
+ "flex": "0 0 25%"
3242
3265
  }
3243
3266
  ]
3244
3267
  },
@@ -3246,9 +3269,6 @@
3246
3269
  "type": "div",
3247
3270
  "displayFlex": true,
3248
3271
  "flex-direction": "row",
3249
- "condition": {
3250
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3251
- },
3252
3272
  "items": [
3253
3273
  {
3254
3274
  "key": "accessories[].topicGetCurrentHeatingCoolingState",
@@ -3260,9 +3280,6 @@
3260
3280
  "type": "div",
3261
3281
  "displayFlex": true,
3262
3282
  "flex-direction": "row",
3263
- "condition": {
3264
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3265
- },
3266
3283
  "items": [
3267
3284
  {
3268
3285
  "key": "accessories[].topicGetTargetHeatingCoolingState",
@@ -3278,9 +3295,6 @@
3278
3295
  "type": "div",
3279
3296
  "displayFlex": true,
3280
3297
  "flex-direction": "row",
3281
- "condition": {
3282
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3283
- },
3284
3298
  "items": [
3285
3299
  {
3286
3300
  "key": "accessories[].topicGetCurrentTemperature",
@@ -3292,9 +3306,6 @@
3292
3306
  "type": "div",
3293
3307
  "displayFlex": true,
3294
3308
  "flex-direction": "row",
3295
- "condition": {
3296
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3297
- },
3298
3309
  "items": [
3299
3310
  {
3300
3311
  "key": "accessories[].topicGetTargetTemperature",
@@ -3310,9 +3321,6 @@
3310
3321
  "type": "div",
3311
3322
  "displayFlex": true,
3312
3323
  "flex-direction": "row",
3313
- "condition": {
3314
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3315
- },
3316
3324
  "items": [
3317
3325
  {
3318
3326
  "key": "accessories[].topicGetCurrentRelativeHumidity",
@@ -3325,9 +3333,6 @@
3325
3333
  "type": "div",
3326
3334
  "displayFlex": true,
3327
3335
  "flex-direction": "row",
3328
- "condition": {
3329
- "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';"
3330
- },
3331
3336
  "items": [
3332
3337
  {
3333
3338
  "key": "accessories[].topicGetTargetRelativeHumidity",
@@ -3341,24 +3346,6 @@
3341
3346
  }
3342
3347
  ]
3343
3348
  },
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
- },
3362
3349
  {
3363
3350
  "type": "fieldset",
3364
3351
  "notitle": true,