|
21 | 21 | "type": { |
22 | 22 | "type": "string", |
23 | 23 | "title": "${config.title.type}", |
24 | | - "enum": [ "CarbonMonoxideSensor", "CarbonDioxideSensor", "ContactSensor", "HumiditySensor", "LeakSensor", "Lightbulb", "LockMechanism", "MotionSensor", "OccupancySensor", "Outlet", "SecuritySystem", "SmokeSensor", "Switch", "TemperatureSensor"], |
25 | | - "enumNames": ["${config.enumNames.carbonMonoxideSensor}", "${config.enumNames.carbonDioxideSensor}", "${config.enumNames.contactSensor}", "${config.enumNames.humiditySensor}", "${config.enumNames.leakSensor}", "${config.enumNames.lightbulb}", "${config.enumNames.lockMechanism}", "${config.enumNames.motionSensor}", "${config.enumNames.occupancySensor}", "${config.enumNames.outlet}", "${config.enumNames.securitySystem}", "${config.enumNames.smokeSensor}", "${config.enumNames.switch}", "${config.enumNames.temperatureSensor}"], |
| 24 | + "enum": [ "CarbonMonoxideSensor", "CarbonDioxideSensor", "ContactSensor", "HumiditySensor", "LeakSensor", "Lightbulb", "LockMechanism", "MotionSensor", "OccupancySensor", "Outlet", "SecuritySystem", "SmokeSensor", "Switch", "TemperatureSensor", "Thermostat"], |
| 25 | + "enumNames": ["${config.enumNames.carbonMonoxideSensor}", "${config.enumNames.carbonDioxideSensor}", "${config.enumNames.contactSensor}", "${config.enumNames.humiditySensor}", "${config.enumNames.leakSensor}", "${config.enumNames.lightbulb}", "${config.enumNames.lockMechanism}", "${config.enumNames.motionSensor}", "${config.enumNames.occupancySensor}", "${config.enumNames.outlet}", "${config.enumNames.securitySystem}", "${config.enumNames.smokeSensor}", "${config.enumNames.switch}", "${config.enumNames.temperatureSensor}", "${config.enumNames.thermostat}"], |
26 | 26 | "required": true |
27 | 27 | }, |
28 | 28 | "manufacturer": { |
|
247 | 247 | "type": "string", |
248 | 248 | "title": "${config.title.topicGetCurrentTemperature}" |
249 | 249 | }, |
| 250 | + "topicGetCurrentHeatingCoolingState": { |
| 251 | + "type": "string", |
| 252 | + "title": "${config.title.topicGetCurrentHeatingCoolingState}" |
| 253 | + }, |
| 254 | + "topicGetTargetHeatingCoolingState": { |
| 255 | + "type": "string", |
| 256 | + "title": "${config.title.topicGetTargetHeatingCoolingState}" |
| 257 | + }, |
| 258 | + "topicSetTargetHeatingCoolingState": { |
| 259 | + "type": "string", |
| 260 | + "title": "${config.title.topicSetTargetHeatingCoolingState}" |
| 261 | + }, |
| 262 | + "topicGetTargetTemperature": { |
| 263 | + "type": "string", |
| 264 | + "title": "${config.title.topicGetTargetTemperature}" |
| 265 | + }, |
| 266 | + "topicSetTargetTemperature": { |
| 267 | + "type": "string", |
| 268 | + "title": "${config.title.topicSetTargetTemperature}" |
| 269 | + }, |
| 270 | + "topicGetTargetRelativeHumidity": { |
| 271 | + "type": "string", |
| 272 | + "title": "${config.title.topicGetTargetRelativeHumidity}" |
| 273 | + }, |
| 274 | + "topicSetTargetRelativeHumidity": { |
| 275 | + "type": "string", |
| 276 | + "title": "${config.title.topicSetTargetRelativeHumidity}" |
| 277 | + }, |
| 278 | + "topicGetCoolingThresholdTemperature": { |
| 279 | + "type": "string", |
| 280 | + "title": "${config.title.topicGetCoolingThresholdTemperature}" |
| 281 | + }, |
| 282 | + "topicSetCoolingThresholdTemperature": { |
| 283 | + "type": "string", |
| 284 | + "title": "${config.title.topicSetCoolingThresholdTemperature}" |
| 285 | + }, |
| 286 | + "topicGetHeatingThresholdTemperature": { |
| 287 | + "type": "string", |
| 288 | + "title": "${config.title.topicGetHeatingThresholdTemperature}" |
| 289 | + }, |
| 290 | + "topicSetHeatingThresholdTemperature": { |
| 291 | + "type": "string", |
| 292 | + "title": "${config.title.topicSetHeatingThresholdTemperature}" |
| 293 | + }, |
250 | 294 | "valueBatteryLow": { |
251 | 295 | "type": "string", |
252 | 296 | "title": "${config.title.valueBatteryLow}" |
|
335 | 379 | "type": "string", |
336 | 380 | "title": "${config.title.valueSmokeDetected}" |
337 | 381 | }, |
| 382 | + "valueModeAuto": { |
| 383 | + "type": "string", |
| 384 | + "title": "${config.title.valueModeAuto}" |
| 385 | + }, |
| 386 | + "valueModeCool": { |
| 387 | + "type": "string", |
| 388 | + "title": "${config.title.valueModeCool}" |
| 389 | + }, |
| 390 | + "valueModeHeat": { |
| 391 | + "type": "string", |
| 392 | + "title": "${config.title.valueModeHeat}" |
| 393 | + }, |
| 394 | + "valueModeOff": { |
| 395 | + "type": "string", |
| 396 | + "title": "${config.title.valueModeOff}" |
| 397 | + }, |
338 | 398 | "disableLogging": { |
339 | 399 | "type": "boolean", |
340 | 400 | "title": "${config.title.disableLogging}" |
|
768 | 828 | } |
769 | 829 | ] |
770 | 830 | }, |
| 831 | + { |
| 832 | + "type": "fieldset", |
| 833 | + "notitle": true, |
| 834 | + "condition": { |
| 835 | + "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';" |
| 836 | + }, |
| 837 | + "items": [ |
| 838 | + { |
| 839 | + "type": "div", |
| 840 | + "displayFlex": true, |
| 841 | + "flex-direction": "row", |
| 842 | + "items": [ |
| 843 | + { |
| 844 | + "key": "accessories[].topicGetCurrentHeatingCoolingState", |
| 845 | + "flex": "0 0 50%" |
| 846 | + } |
| 847 | + ] |
| 848 | + }, |
| 849 | + { |
| 850 | + "type": "div", |
| 851 | + "displayFlex": true, |
| 852 | + "flex-direction": "row", |
| 853 | + "items": [ |
| 854 | + { |
| 855 | + "key": "accessories[].topicGetTargetHeatingCoolingState", |
| 856 | + "flex": "0 0 50%" |
| 857 | + }, |
| 858 | + { |
| 859 | + "key": "accessories[].topicSetTargetHeatingCoolingState", |
| 860 | + "flex": "0 0 50%" |
| 861 | + } |
| 862 | + ] |
| 863 | + }, |
| 864 | + { |
| 865 | + "type": "div", |
| 866 | + "displayFlex": true, |
| 867 | + "flex-direction": "row", |
| 868 | + "items": [ |
| 869 | + { |
| 870 | + "key": "accessories[].topicGetCurrentTemperature", |
| 871 | + "flex": "0 0 50%" |
| 872 | + }, |
| 873 | + { |
| 874 | + "key": "accessories[].temperatureUnits", |
| 875 | + "title": "${config.title.sourceUnits}", |
| 876 | + "flex": "0 0 33%" |
| 877 | + } |
| 878 | + ] |
| 879 | + }, |
| 880 | + { |
| 881 | + "type": "div", |
| 882 | + "displayFlex": true, |
| 883 | + "flex-direction": "row", |
| 884 | + "items": [ |
| 885 | + { |
| 886 | + "key": "accessories[].topicGetTargetTemperature", |
| 887 | + "flex": "0 0 50%" |
| 888 | + }, |
| 889 | + { |
| 890 | + "key": "accessories[].topicSetTargetTemperature", |
| 891 | + "flex": "0 0 50%" |
| 892 | + } |
| 893 | + ] |
| 894 | + }, |
| 895 | + { |
| 896 | + "type": "div", |
| 897 | + "displayFlex": true, |
| 898 | + "flex-direction": "row", |
| 899 | + "items": [ |
| 900 | + { |
| 901 | + "key": "accessories[].topicGetCurrentRelativeHumidity", |
| 902 | + "title": "${config.title.topicGetCurrentRelativeHumidityOptional}", |
| 903 | + "flex": "0 0 50%" |
| 904 | + } |
| 905 | + ] |
| 906 | + }, |
| 907 | + { |
| 908 | + "type": "div", |
| 909 | + "displayFlex": true, |
| 910 | + "flex-direction": "row", |
| 911 | + "items": [ |
| 912 | + { |
| 913 | + "key": "accessories[].topicGetTargetRelativeHumidity", |
| 914 | + "flex": "0 0 50%" |
| 915 | + }, |
| 916 | + { |
| 917 | + "key": "accessories[].topicSetTargetRelativeHumidity", |
| 918 | + "flex": "0 0 50%" |
| 919 | + } |
| 920 | + ] |
| 921 | + }, |
| 922 | + { |
| 923 | + "type": "div", |
| 924 | + "displayFlex": true, |
| 925 | + "flex-direction": "row", |
| 926 | + "items": [ |
| 927 | + { |
| 928 | + "key": "accessories[].topicGetCoolingThresholdTemperature", |
| 929 | + "flex": "0 0 50%" |
| 930 | + }, |
| 931 | + { |
| 932 | + "key": "accessories[].topicSetCoolingThresholdTemperature", |
| 933 | + "flex": "0 0 50%" |
| 934 | + } |
| 935 | + ] |
| 936 | + }, |
| 937 | + { |
| 938 | + "type": "div", |
| 939 | + "displayFlex": true, |
| 940 | + "flex-direction": "row", |
| 941 | + "items": [ |
| 942 | + { |
| 943 | + "key": "accessories[].topicGetHeatingThresholdTemperature", |
| 944 | + "flex": "0 0 50%" |
| 945 | + }, |
| 946 | + { |
| 947 | + "key": "accessories[].topicSetHeatingThresholdTemperature", |
| 948 | + "flex": "0 0 50%" |
| 949 | + } |
| 950 | + ] |
| 951 | + } |
| 952 | + ] |
| 953 | + }, |
771 | 954 | { |
772 | 955 | "type": "div", |
773 | 956 | "displayFlex": true, |
|
926 | 1109 | } |
927 | 1110 | ] |
928 | 1111 | }, |
| 1112 | + { |
| 1113 | + "type": "div", |
| 1114 | + "displayFlex": true, |
| 1115 | + "flex-direction": "row", |
| 1116 | + "condition": { |
| 1117 | + "functionBody": "return model.accessories?.[arguments[1]]?.info?.type === 'Thermostat';" |
| 1118 | + }, |
| 1119 | + "items": [ |
| 1120 | + { |
| 1121 | + "key": "accessories[].valueModeAuto", |
| 1122 | + "flex": "0 0 25%" |
| 1123 | + }, |
| 1124 | + { |
| 1125 | + "key": "accessories[].valueModeCool", |
| 1126 | + "flex": "0 0 25%" |
| 1127 | + }, |
| 1128 | + { |
| 1129 | + "key": "accessories[].valueModeHeat", |
| 1130 | + "flex": "0 0 25%" |
| 1131 | + }, |
| 1132 | + { |
| 1133 | + "key": "accessories[].valueModeOff", |
| 1134 | + "flex": "0 0 25%" |
| 1135 | + } |
| 1136 | + ] |
| 1137 | + }, |
929 | 1138 | { |
930 | 1139 | "type": "div", |
931 | 1140 | "displayFlex": true, |
|
0 commit comments