homebridge-virtual-accessories 3.16.3 → 3.16.4

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.
@@ -185,7 +185,7 @@
185
185
  "type": "boolean"
186
186
  },
187
187
  "lowLevelThreshold": {
188
- "title": "Battery low threshold (5% - 25%) *",
188
+ "title": "Battery Low Threshold (5% - 25%) *",
189
189
  "type": "integer",
190
190
  "minimum": 5,
191
191
  "maximum": 25
@@ -781,7 +781,7 @@
781
781
  "description": "Switch triggers a sensor when its state changes",
782
782
  "type": "boolean"
783
783
  },
784
- "muteLogging" : {
784
+ "muteLogging": {
785
785
  "title": "Mute Logging",
786
786
  "description": "Log information will only be visible when running in debug mode",
787
787
  "type": "boolean"
@@ -1256,7 +1256,7 @@
1256
1256
  "title": "Start Date-Time",
1257
1257
  "type": "string",
1258
1258
  "format": "iso-date-time",
1259
- "widget":"datetime-local",
1259
+ "widget": "datetime-local",
1260
1260
  "x-inputAttributes": {
1261
1261
  "step": 1
1262
1262
  }
@@ -1265,7 +1265,7 @@
1265
1265
  "title": "End Date-Time ",
1266
1266
  "type": "string",
1267
1267
  "format": "iso-date-time",
1268
- "widget":"datetime-local",
1268
+ "widget": "datetime-local",
1269
1269
  "x-inputAttributes": {
1270
1270
  "step": 1
1271
1271
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "homebridge-virtual-accessories",
3
3
  "displayName": "Virtual Accessories for Homebridge",
4
4
  "type": "module",
5
- "version": "3.16.3",
5
+ "version": "3.16.4",
6
6
  "description": "Virtual HomeKit accessories for Homebridge.",
7
7
  "author": "justjam2023 (Renzo Zanelli - renzo.zanelli6@gmail.com)",
8
8
  "license": "MIT",
@@ -103,6 +103,8 @@
103
103
  },
104
104
  "scripts": {
105
105
  "build": "rimraf ./dist && tsc",
106
+ "generate-schemas": "node scripts/generate-schemas.js",
107
+ "generate-template": "node scripts/generate-template.js",
106
108
  "lint": "eslint . --max-warnings=0",
107
109
  "prepublishOnly": "npm run lint && npm run build",
108
110
  "watch": "npm run build && npm link && nodemon"
@@ -134,7 +134,7 @@
134
134
  { "title": "Puerta", "enum": ["door"] },
135
135
  { "title": "Timbre", "enum": ["doorbell"] },
136
136
  { "title": "Ventilador", "enum": ["fan"] },
137
- { "title": "Mantenimiento del Filtro", "enum": ["filtermaintenance"] },
137
+ { "title": "Mantenimiento de Filtro", "enum": ["filtermaintenance"] },
138
138
  { "title": "Puerta de Garaje", "enum": ["garagedoor"] },
139
139
  { "title": "Calefactor/Aire Acondicionado", "enum": ["heatercooler"] },
140
140
  { "title": "Humidificador/Deshumidificador", "enum": ["humidifierdehumidifier"] },
@@ -147,6 +147,7 @@
147
147
  { "title": "Altavoz", "enum": ["speaker"] },
148
148
  { "title": "Interruptor", "enum": ["switch"] },
149
149
  { "title": "Televisor", "enum": ["television"] },
150
+ { "title": "Termostato", "enum": ["thermostat"] },
150
151
  { "title": "Válvula", "enum": ["valve"] },
151
152
  { "title": "Ventana", "enum": ["window"] },
152
153
  { "title": "Cubierta de Ventana (Persianas, Cortinas)", "enum": ["windowcovering"] }
@@ -157,7 +158,7 @@
157
158
  "description": "El estado del accesorio se mantiene tras reiniciar Homebridge",
158
159
  "type": "boolean",
159
160
  "condition": {
160
- "functionBody": "return ['airpurifier', 'door', 'fan', 'garagedoor', 'humidifierdehumidifier', 'lightbulb', 'lock', 'securitysystem', 'speaker', 'switch', 'television', 'valve', 'window', 'windowcovering'].includes(model.devices[arrayIndices].accessoryType);"
161
+ "functionBody": "return ['airpurifier', 'door', 'fan', 'garagedoor', 'heatercooler', 'humidifierdehumidifier', 'lightbulb', 'lock', 'securitysystem', 'speaker', 'switch', 'television', 'thermostat', 'valve', 'window', 'windowcovering'].includes(model.devices[arrayIndices].accessoryType);"
161
162
  }
162
163
  },
163
164
  "airPurifier": {
@@ -316,7 +317,7 @@
316
317
  }
317
318
  },
318
319
  "temperatureDisplayUnits": {
319
- "title": "Unidades de Temperatura *",
320
+ "title": "Unidades de Visualización de Temperatura *",
320
321
  "type": "string",
321
322
  "oneOf": [
322
323
  { "title": "Celsius (ºC)", "enum": ["celsius"] },
@@ -484,6 +485,13 @@
484
485
  { "title": "Humidificador y Deshumidificador", "enum": ["auto"] }
485
486
  ]
486
487
  },
488
+ "hasFan": {
489
+ "title": "Tiene ventilador",
490
+ "type": "boolean",
491
+ "condition": {
492
+ "functionBody": "return model.devices[arrayIndices].humidifierDehumidifier && ['humidifier', 'dehumidifier', 'auto'].includes(model.devices[arrayIndices].humidifierDehumidifier.type);"
493
+ }
494
+ },
487
495
  "humidifierThreshold": {
488
496
  "title": "Umbral de Humidificación *",
489
497
  "description": "Nivel de humedad por debajo del cual se enciende el humidificador (0% - 100%)",
@@ -805,6 +813,87 @@
805
813
  "functionBody": "return model.devices[arrayIndices].accessoryType === 'television';"
806
814
  }
807
815
  },
816
+ "thermostat": {
817
+ "title": "Termostato",
818
+ "type": "object",
819
+ "properties": {
820
+ "temperatureDisplayUnits": {
821
+ "title": "Unidades de Visualización de Temperatura *",
822
+ "type": "string",
823
+ "oneOf": [
824
+ { "title": "Celsius (ºC)", "enum": ["celsius"] },
825
+ { "title": "Fahrenheit (ºF)", "enum": ["fahrenheit"] }
826
+ ]
827
+ },
828
+ "heatingThresholdCelsius": {
829
+ "title": "Umbral de Calefacción ºC *",
830
+ "description": "Nivel de temperatura por debajo del cual se activa el termostato (0ºC - 25ºC)",
831
+ "type": "integer",
832
+ "minimum": 0,
833
+ "maximum": 25,
834
+ "condition": {
835
+ "functionBody": "return model.devices[arrayIndices].thermostat && model.devices[arrayIndices].thermostat.temperatureDisplayUnits === 'celsius';"
836
+ }
837
+ },
838
+ "coolingThresholdCelsius": {
839
+ "title": "Umbral de Refrigeración ºC *",
840
+ "description": "Nivel de temperatura por encima del cual se activa el termostato (10ºC - 35ºC)",
841
+ "type": "integer",
842
+ "minimum": 10,
843
+ "maximum": 35,
844
+ "condition": {
845
+ "functionBody": "return model.devices[arrayIndices].thermostat && model.devices[arrayIndices].thermostat.temperatureDisplayUnits === 'celsius';"
846
+ }
847
+ },
848
+ "heatingThresholdFahrenheit": {
849
+ "title": "Umbral de Calefacción ºF *",
850
+ "description": "Nivel de temperatura por debajo del cual se activa el termostato (32ºF - 77ºF)",
851
+ "type": "integer",
852
+ "minimum": 32,
853
+ "maximum": 77,
854
+ "condition": {
855
+ "functionBody": "return model.devices[arrayIndices].thermostat && model.devices[arrayIndices].thermostat.temperatureDisplayUnits === 'fahrenheit';"
856
+ }
857
+ },
858
+ "coolingThresholdFahrenheit": {
859
+ "title": "Umbral de Refrigeración ºF *",
860
+ "description": "Nivel de temperatura por encima del cual se activa el termostato (50ºF - 95ºF)",
861
+ "type": "integer",
862
+ "minimum": 50,
863
+ "maximum": 95,
864
+ "condition": {
865
+ "functionBody": "return model.devices[arrayIndices].thermostat && model.devices[arrayIndices].thermostat.temperatureDisplayUnits === 'fahrenheit';"
866
+ }
867
+ }
868
+ },
869
+ "condition": {
870
+ "functionBody": "return model.devices[arrayIndices].accessoryType === 'thermostat';"
871
+ },
872
+ "allOf": [
873
+ {
874
+ "if": {
875
+ "properties": {
876
+ "temperatureDisplayUnits": { "const": "celsius" }
877
+ },
878
+ "required": [ "temperatureDisplayUnits" ]
879
+ },
880
+ "then": {
881
+ "required": [ "heatingThresholdCelsius", "coolingThresholdCelsius" ]
882
+ }
883
+ },
884
+ {
885
+ "if": {
886
+ "properties": {
887
+ "temperatureDisplayUnits": { "const": "fahrenheit" }
888
+ },
889
+ "required": [ "temperatureDisplayUnits" ]
890
+ },
891
+ "then": {
892
+ "required": [ "heatingThresholdFahrenheit", "coolingThresholdFahrenheit" ]
893
+ }
894
+ }
895
+ ]
896
+ },
808
897
  "valve": {
809
898
  "title": "Válvula",
810
899
  "type": "object",
@@ -911,20 +1000,18 @@
911
1000
  "properties": {
912
1001
  "type": {
913
1002
  "title": "Tipo *",
914
- "description": "Tipo de sensor (Las notificaciones de sensores críticos omiten el modo de enfoque 'No Molestar')",
1003
+ "description": "Tipo de sensor de medición",
915
1004
  "type": "string",
916
1005
  "oneOf": [
917
1006
  { "title": "Humedad", "enum": ["humidity"] },
918
1007
  { "title": "Temperatura", "enum": ["temperature"] }
919
1008
  ]
920
1009
  },
921
- "temperatureUnits": {
922
- "title": "Unidades de Temperatura *",
923
- "type": "string",
924
- "oneOf": [
925
- { "title": "Celsius (ºC)", "enum": ["celsius"] },
926
- { "title": "Fahrenheit (ºF)", "enum": ["fahrenheit"] }
927
- ],
1010
+ "": {
1011
+ "title": " ",
1012
+ "description": "Nota: Las unidades de temperatura se configuran en la interfaz de Homebridge, en Ajustes > Visualización (predeterminado: Celsius).",
1013
+ "type": "object",
1014
+ "properties": {},
928
1015
  "condition": {
929
1016
  "functionBody": "return model.devices[arrayIndices].measurement && model.devices[arrayIndices].measurement.type === 'temperature';"
930
1017
  }
@@ -932,20 +1019,7 @@
932
1019
  },
933
1020
  "condition": {
934
1021
  "functionBody": "return model.devices[arrayIndices].accessoryType === 'measurement';"
935
- },
936
- "allOf": [
937
- {
938
- "if": {
939
- "properties": {
940
- "type": { "const": "temperature" }
941
- },
942
- "required": [ "type" ]
943
- },
944
- "then": {
945
- "required": [ "temperatureUnits" ]
946
- }
947
- }
948
- ]
1022
+ }
949
1023
  },
950
1024
  "resetTimer": {
951
1025
  "title": "Temporizador de Reinicio",
@@ -1114,7 +1188,7 @@
1114
1188
  "type": "string",
1115
1189
  "oneOf": [
1116
1190
  { "title": "Contacto", "enum": ["contact"] },
1117
- { "title": "Fuga (crítica)", "enum": ["leak"] },
1191
+ { "title": "Fuga (crítico)", "enum": ["leak"] },
1118
1192
  { "title": "Movimiento", "enum": ["motion"] },
1119
1193
  { "title": "Ocupación", "enum": ["occupancy"] },
1120
1194
  { "title": "Dióxido de Carbono (crítico)", "enum": ["carbonDioxide"] },
@@ -1275,7 +1349,7 @@
1275
1349
  }
1276
1350
  },
1277
1351
  "startupTrigger": {
1278
- "title": "Disparador de Inicio de Homebridge",
1352
+ "title": "Disparador al Iniciar Homebridge",
1279
1353
  "type": "object",
1280
1354
  "properties": {
1281
1355
  "isDisabled": {
@@ -1584,6 +1658,21 @@
1584
1658
  }
1585
1659
  }
1586
1660
  },
1661
+ {
1662
+ "if": {
1663
+ "properties": {
1664
+ "accessoryType": { "const": "thermostat" }
1665
+ }
1666
+ },
1667
+ "then": {
1668
+ "required": [ "thermostat" ],
1669
+ "properties": {
1670
+ "thermostat": {
1671
+ "required": [ "temperatureDisplayUnits" ]
1672
+ }
1673
+ }
1674
+ }
1675
+ },
1587
1676
  {
1588
1677
  "if": {
1589
1678
  "properties": {
@@ -1790,7 +1879,7 @@
1790
1879
  },
1791
1880
  "": {
1792
1881
  "title": " ",
1793
- "description": "Note: You can change the accessory order by dragging them to a new location in the list. Click the 'Save' button to update the configuration.",
1882
+ "description": "Nota: Puede cambiar el orden de los accesorios arrastrándolos a una nueva ubicación en la lista. Haga clic en el botón «Guardar» para actualizar la configuración.",
1794
1883
  "type": "object",
1795
1884
  "properties": {}
1796
1885
  }
@@ -2,7 +2,7 @@
2
2
  "pluginAlias": "VirtualAccessoriesForHomebridge",
3
3
  "pluginType": "platform",
4
4
  "singular": true,
5
- "footerDisplay": "* = verplicht in te vullen velden",
5
+ "footerDisplay": "* = required fields",
6
6
  "strictValidation": true,
7
7
  "schema": {
8
8
  "type": "object",
@@ -140,13 +140,14 @@
140
140
  { "title": "luchtbevochtiger/Luchtontvochtigers", "enum": ["humidifierdehumidifier"] },
141
141
  { "title": "Lamp", "enum": ["lightbulb"] },
142
142
  { "title": "Slot", "enum": ["lock"] },
143
- { "title": "microfoon", "enum": ["microphone"] },
143
+ { "title": "Microfoon", "enum": ["microphone"] },
144
144
  { "title": "Beveiligingssysteem", "enum": ["securitysystem"] },
145
145
  { "title": "Sensor - Meting", "enum": ["measurement"] },
146
146
  { "title": "Sensor - Geactiveerd", "enum": ["sensor"] },
147
147
  { "title": "Luidspreker", "enum": ["speaker"] },
148
148
  { "title": "Schakelaar", "enum": ["switch"] },
149
149
  { "title": "Televisie", "enum": ["television"] },
150
+ { "title": "Thermostaat", "enum": ["thermostat"] },
150
151
  { "title": "Klep", "enum": ["valve"] },
151
152
  { "title": "Raam", "enum": ["window"] },
152
153
  { "title": "Raam Afsluiting (Rolluiken, jaloeziën)", "enum": ["windowcovering"] }
@@ -157,7 +158,7 @@
157
158
  "description": "Accessoire status overleeft Homebridge herstart",
158
159
  "type": "boolean",
159
160
  "condition": {
160
- "functionBody": "return ['airpurifier', 'door', 'fan', 'garagedoor', 'heatercooler', 'humidifierdehumidifier', 'lightbulb', 'lock', 'securitysystem', 'speaker', 'switch', 'television', 'valve', 'window', 'windowcovering'].includes(model.devices[arrayIndices].accessoryType);"
161
+ "functionBody": "return ['airpurifier', 'door', 'fan', 'garagedoor', 'heatercooler', 'humidifierdehumidifier', 'lightbulb', 'lock', 'securitysystem', 'speaker', 'switch', 'television', 'thermostat', 'valve', 'window', 'windowcovering'].includes(model.devices[arrayIndices].accessoryType);"
161
162
  }
162
163
  },
163
164
  "airPurifier": {
@@ -484,6 +485,13 @@
484
485
  { "title": "luchtbevochtiger en Luchtontvochtigers (Auto)", "enum": ["auto"] }
485
486
  ]
486
487
  },
488
+ "hasFan": {
489
+ "title": "Heeft Ventilator",
490
+ "type": "boolean",
491
+ "condition": {
492
+ "functionBody": "return model.devices[arrayIndices].humidifierDehumidifier && ['humidifier', 'dehumidifier', 'auto'].includes(model.devices[arrayIndices].humidifierDehumidifier.type);"
493
+ }
494
+ },
487
495
  "humidifierThreshold": {
488
496
  "title": "luchtbevochtiger instelling *",
489
497
  "description": "Luchtvochtigheid waarbij de luchtbevochtiger wordt uitgeschakeld (0% - 100%)",
@@ -773,7 +781,7 @@
773
781
  "description": "De schakelaar activeert een sensor wanneer de toestand ervan verandert",
774
782
  "type": "boolean"
775
783
  },
776
- "muteLogging" : {
784
+ "muteLogging": {
777
785
  "title": "Logging uitschakelen",
778
786
  "description": "Loggegevens zijn alleen zichtbaar wanneer men in de debugmodus is",
779
787
  "type": "boolean"
@@ -805,6 +813,87 @@
805
813
  "functionBody": "return model.devices[arrayIndices].accessoryType === 'television';"
806
814
  }
807
815
  },
816
+ "thermostat": {
817
+ "title": "Thermostaat",
818
+ "type": "object",
819
+ "properties": {
820
+ "temperatureDisplayUnits": {
821
+ "title": "Eenheid voor temperatuurweergave *",
822
+ "type": "string",
823
+ "oneOf": [
824
+ { "title": "Celsius (ºC)", "enum": ["celsius"] },
825
+ { "title": "Fahrenheit (ºF)", "enum": ["fahrenheit"] }
826
+ ]
827
+ },
828
+ "heatingThresholdCelsius": {
829
+ "title": "Verwarming instelling ºC *",
830
+ "description": "Temperatuurniveau waaronder de thermostaat inschakelt (0ºC - 25ºC)",
831
+ "type": "integer",
832
+ "minimum": 0,
833
+ "maximum": 25,
834
+ "condition": {
835
+ "functionBody": "return model.devices[arrayIndices].thermostat && model.devices[arrayIndices].thermostat.temperatureDisplayUnits === 'celsius';"
836
+ }
837
+ },
838
+ "coolingThresholdCelsius": {
839
+ "title": "Koeling instelling ºC *",
840
+ "description": "Temperatuurniveau waarboven de thermostaat inschakelt (10ºC - 35ºC)",
841
+ "type": "integer",
842
+ "minimum": 10,
843
+ "maximum": 35,
844
+ "condition": {
845
+ "functionBody": "return model.devices[arrayIndices].thermostat && model.devices[arrayIndices].thermostat.temperatureDisplayUnits === 'celsius';"
846
+ }
847
+ },
848
+ "heatingThresholdFahrenheit": {
849
+ "title": "Verwarming instelling ºF *",
850
+ "description": "Temperatuurniveau waaronder de thermostaat inschakelt (32ºF - 77ºF)",
851
+ "type": "integer",
852
+ "minimum": 32,
853
+ "maximum": 77,
854
+ "condition": {
855
+ "functionBody": "return model.devices[arrayIndices].thermostat && model.devices[arrayIndices].thermostat.temperatureDisplayUnits === 'fahrenheit';"
856
+ }
857
+ },
858
+ "coolingThresholdFahrenheit": {
859
+ "title": "Koeling instelling ºF *",
860
+ "description": "Temperatuurniveau waarboven de thermostaat inschakelt (50ºF - 95ºF)",
861
+ "type": "integer",
862
+ "minimum": 50,
863
+ "maximum": 95,
864
+ "condition": {
865
+ "functionBody": "return model.devices[arrayIndices].thermostat && model.devices[arrayIndices].thermostat.temperatureDisplayUnits === 'fahrenheit';"
866
+ }
867
+ }
868
+ },
869
+ "condition": {
870
+ "functionBody": "return model.devices[arrayIndices].accessoryType === 'thermostat';"
871
+ },
872
+ "allOf": [
873
+ {
874
+ "if": {
875
+ "properties": {
876
+ "temperatureDisplayUnits": { "const": "celsius" }
877
+ },
878
+ "required": [ "temperatureDisplayUnits" ]
879
+ },
880
+ "then": {
881
+ "required": [ "heatingThresholdCelsius", "coolingThresholdCelsius" ]
882
+ }
883
+ },
884
+ {
885
+ "if": {
886
+ "properties": {
887
+ "temperatureDisplayUnits": { "const": "fahrenheit" }
888
+ },
889
+ "required": [ "temperatureDisplayUnits" ]
890
+ },
891
+ "then": {
892
+ "required": [ "heatingThresholdFahrenheit", "coolingThresholdFahrenheit" ]
893
+ }
894
+ }
895
+ ]
896
+ },
808
897
  "valve": {
809
898
  "title": "Klep",
810
899
  "type": "object",
@@ -911,20 +1000,18 @@
911
1000
  "properties": {
912
1001
  "type": {
913
1002
  "title": "Type *",
914
- "description": "Sensortype (Meldingen van kritieke sensoren negeren de focusmodus ‘Niet storen’)",
1003
+ "description": "Type meetsensor",
915
1004
  "type": "string",
916
1005
  "oneOf": [
917
1006
  { "title": "Luchtvochtigheid", "enum": ["humidity"] },
918
1007
  { "title": "Temperatuur", "enum": ["temperature"] }
919
1008
  ]
920
1009
  },
921
- "temperatureUnits": {
922
- "title": "Eenheid voor temperatuurweergave *",
923
- "type": "string",
924
- "oneOf": [
925
- { "title": "Celsius (ºC)", "enum": ["celsius"] },
926
- { "title": "Fahrenheit (ºF)", "enum": ["fahrenheit"] }
927
- ],
1010
+ "": {
1011
+ "title": " ",
1012
+ "description": "Opmerking: Temperatuureenheden worden ingesteld in de Homebridge-gebruikersinterface onder Instellingen - Weergave (standaard: Celsius).",
1013
+ "type": "object",
1014
+ "properties": {},
928
1015
  "condition": {
929
1016
  "functionBody": "return model.devices[arrayIndices].measurement && model.devices[arrayIndices].measurement.type === 'temperature';"
930
1017
  }
@@ -932,20 +1019,7 @@
932
1019
  },
933
1020
  "condition": {
934
1021
  "functionBody": "return model.devices[arrayIndices].accessoryType === 'measurement';"
935
- },
936
- "allOf": [
937
- {
938
- "if": {
939
- "properties": {
940
- "type": { "const": "temperature" }
941
- },
942
- "required": [ "type" ]
943
- },
944
- "then": {
945
- "required": [ "temperatureUnits" ]
946
- }
947
- }
948
- ]
1022
+ }
949
1023
  },
950
1024
  "resetTimer": {
951
1025
  "title": "Reset Timer",
@@ -1151,8 +1225,8 @@
1151
1225
  "maximum": 15
1152
1226
  },
1153
1227
  "isDisabled": {
1154
- "title": "activering uitschakelen",
1155
- "description": "uitschakelen/inschakelen van activering",
1228
+ "title": "Activering uitschakelen",
1229
+ "description": "Uitschakelen/inschakelen van activering",
1156
1230
  "type": "boolean"
1157
1231
  }
1158
1232
  },
@@ -1182,7 +1256,7 @@
1182
1256
  "title": "Start Datum-Tijd",
1183
1257
  "type": "string",
1184
1258
  "format": "iso-date-time",
1185
- "widget":"datetime-local",
1259
+ "widget": "datetime-local",
1186
1260
  "x-inputAttributes": {
1187
1261
  "step": 1
1188
1262
  }
@@ -1191,7 +1265,7 @@
1191
1265
  "title": "Eind Datum-Tijd ",
1192
1266
  "type": "string",
1193
1267
  "format": "iso-date-time",
1194
- "widget":"datetime-local",
1268
+ "widget": "datetime-local",
1195
1269
  "x-inputAttributes": {
1196
1270
  "step": 1
1197
1271
  }
@@ -1251,8 +1325,8 @@
1251
1325
  "pattern": "^(?:(?:[A-Za-z_\\-]+\/[A-Za-z_\\-]+(?:\/[A-Za-z_\\-]+)?)|(?:Etc\/[A-Za-z0-9+\\-]+(?:\/[A-Za-z0-9]+)?|(?:CET|CST6CDT|EET|EST|EST5EDT|MET|MST|MST7MDT|PST8PDT|HST)))$"
1252
1326
  },
1253
1327
  "isDisabled": {
1254
- "title": "Disable Trigger",
1255
- "description": "Turn off/on trigger",
1328
+ "title": "Activering uitschakelen",
1329
+ "description": "Uitschakelen/inschakelen van activering",
1256
1330
  "type": "boolean"
1257
1331
  }
1258
1332
  },
@@ -1265,8 +1339,8 @@
1265
1339
  "type": "object",
1266
1340
  "properties": {
1267
1341
  "isDisabled": {
1268
- "title": "Disable Trigger",
1269
- "description": "Turn off/on trigger",
1342
+ "title": "Activering uitschakelen",
1343
+ "description": "Uitschakelen/inschakelen van activering",
1270
1344
  "type": "boolean"
1271
1345
  }
1272
1346
  },
@@ -1275,7 +1349,7 @@
1275
1349
  }
1276
1350
  },
1277
1351
  "startupTrigger": {
1278
- "title": "Homebridge Startup Trigger",
1352
+ "title": "Homebridge opstart activering",
1279
1353
  "type": "object",
1280
1354
  "properties": {
1281
1355
  "isDisabled": {
@@ -1346,7 +1420,7 @@
1346
1420
  }
1347
1421
  },
1348
1422
  "then": {
1349
- "required": [ "switch", "deviceType" ],
1423
+ "required": [ "switch" ],
1350
1424
  "properties": {
1351
1425
  "switch": {
1352
1426
  "required": [ "defaultState" ]
@@ -1584,6 +1658,21 @@
1584
1658
  }
1585
1659
  }
1586
1660
  },
1661
+ {
1662
+ "if": {
1663
+ "properties": {
1664
+ "accessoryType": { "const": "thermostat" }
1665
+ }
1666
+ },
1667
+ "then": {
1668
+ "required": [ "thermostat" ],
1669
+ "properties": {
1670
+ "thermostat": {
1671
+ "required": [ "temperatureDisplayUnits" ]
1672
+ }
1673
+ }
1674
+ }
1675
+ },
1587
1676
  {
1588
1677
  "if": {
1589
1678
  "properties": {