From ea13ce597d1bccfb2cde83a22236c173bf7e2662 Mon Sep 17 00:00:00 2001 From: Michael Krug Date: Mon, 2 Jan 2023 21:37:34 +0100 Subject: [PATCH] Add new sensors Signed-off-by: Michael Krug --- .../web/src/assets/definitions/metadata/ga.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/metadata/ga.js b/bundles/org.openhab.ui/web/src/assets/definitions/metadata/ga.js index 9600700c28..7e75344ae8 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/metadata/ga.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/metadata/ga.js @@ -46,7 +46,7 @@ const volumeDefaultPercentageParameter = p('INTEGER', 'volumeDefaultPercentage', const levelStepSizeParameter = p('INTEGER', 'levelStepSize', 'Step size', 'Step size for relative volume queries like "volume up" (default is 1)') // Thermostat const thermostatModesParameter = p('TEXT', 'modes', 'Thermostat modes', 'Mappings from Google values to openHAB item values (comma separated), e.g. "off=OFF:WINDOW_OPEN,heat=COMFORT:BOOST,eco=ECO,on=ON,auto"') -const thermostatTemperatureRangeParameter = p('TEXT', 'thermostatTemperatureRange', 'Temperature range', 'The temperature range your thermostat supports (comma separated), e.g. "10,30"') +const thermostatTemperatureRangeParameter = p('TEXT', 'thermostatTemperatureRange', 'Thermostat temperature range', 'The temperature range your thermostat supports (comma separated, in Celsius), e.g. "10,30"') const useFahrenheitParameter = p('BOOLEAN', 'useFahrenheit', 'Use Fahrenheit') // TV const transportControlSupportedCommandsParameter = p('TEXT', 'transportControlSupportedCommands', 'Supported transport controls', 'List of supported controls, e.g. "NEXT,PREVIOUS,PAUSE,RESUME"') @@ -98,7 +98,9 @@ const deviceTypes = { 'SecuritySystem': [armLevelsParameter, pinOnDisarmOnlyParameter, waitForStateChangeParameter, invertedParameter], 'Sensor': [sensorNameParameter, valueUnitParameter, statesParameter], 'Speaker': [volumeMaxLevelParameter, volumeDefaultPercentageParameter, levelStepSizeParameter], + 'HumiditySensor': [], 'TemperatureSensor': [useFahrenheitParameter], + 'ClimateSensor': [useFahrenheitParameter], 'Thermostat': [useFahrenheitParameter, thermostatModesParameter, thermostatTemperatureRangeParameter], 'TV': [volumeMaxLevelParameter, volumeDefaultPercentageParameter, levelStepSizeParameter, langParameter, transportControlSupportedCommandsParameter, availableInputsParameter, availableChannelsParameter, availableApplicationsParameter], 'Valve': [invertedParameter] @@ -115,6 +117,8 @@ const deviceAttributes = { 'thermostatTemperatureSetpointLow': [], 'thermostatTemperatureSetpointHigh': [], 'thermostatMode': [], + 'temperatureAmbient': [], + 'humidityAmbient': [], 'tvPower': [], 'tvMute': [], 'tvVolume': [],