Add addtional device classes to ISY994 sensors and bump PyISY to 3.0.11 (#85315)

This commit is contained in:
shbatm 2023-01-06 11:41:39 -06:00 committed by GitHub
parent 9d45071e3f
commit f12ffe1e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 4 deletions

View File

@ -3,7 +3,7 @@
"name": "Universal Devices ISY/IoX",
"integration_type": "hub",
"documentation": "https://www.home-assistant.io/integrations/isy994",
"requirements": ["pyisy==3.0.10"],
"requirements": ["pyisy==3.0.11"],
"codeowners": ["@bdraco", "@shbatm"],
"config_flow": true,
"ssdp": [

View File

@ -60,6 +60,7 @@ SKIP_AUX_PROPERTIES = {PROP_BUSY, PROP_COMMS_ERROR, PROP_STATUS}
# Reference pyisy.constants.COMMAND_FRIENDLY_NAME for API details.
# Note: "LUMIN"/Illuminance removed, some devices use non-conformant "%" unit
# "VOCLVL"/VOC removed, uses qualitative UOM not ug/m^3
ISY_CONTROL_TO_DEVICE_CLASS = {
PROP_BATTERY_LEVEL: SensorDeviceClass.BATTERY,
PROP_HUMIDITY: SensorDeviceClass.HUMIDITY,
@ -71,15 +72,29 @@ ISY_CONTROL_TO_DEVICE_CLASS = {
"CV": SensorDeviceClass.VOLTAGE,
"DEWPT": SensorDeviceClass.TEMPERATURE,
"DISTANC": SensorDeviceClass.DISTANCE,
"ETO": SensorDeviceClass.PRECIPITATION_INTENSITY,
"FATM": SensorDeviceClass.WEIGHT,
"FREQ": SensorDeviceClass.FREQUENCY,
"MUSCLEM": SensorDeviceClass.WEIGHT,
"PF": SensorDeviceClass.POWER_FACTOR,
"PM10": SensorDeviceClass.PM10,
"PM25": SensorDeviceClass.PM25,
"PRECIP": SensorDeviceClass.PRECIPITATION,
"RAINRT": SensorDeviceClass.PRECIPITATION_INTENSITY,
"RFSS": SensorDeviceClass.SIGNAL_STRENGTH,
"SOILH": SensorDeviceClass.MOISTURE,
"SOILT": SensorDeviceClass.TEMPERATURE,
"SOLRAD": SensorDeviceClass.IRRADIANCE,
"SPEED": SensorDeviceClass.SPEED,
"TEMPEXH": SensorDeviceClass.TEMPERATURE,
"TEMPOUT": SensorDeviceClass.TEMPERATURE,
"TPW": SensorDeviceClass.ENERGY,
"VOCLVL": SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS,
"WATERP": SensorDeviceClass.PRESSURE,
"WATERT": SensorDeviceClass.TEMPERATURE,
"WATERTB": SensorDeviceClass.TEMPERATURE,
"WATERTD": SensorDeviceClass.TEMPERATURE,
"WEIGHT": SensorDeviceClass.WEIGHT,
"WINDCH": SensorDeviceClass.TEMPERATURE,
}
ISY_CONTROL_TO_STATE_CLASS = {
control: SensorStateClass.MEASUREMENT for control in ISY_CONTROL_TO_DEVICE_CLASS

View File

@ -1684,7 +1684,7 @@ pyirishrail==0.0.2
pyiss==1.0.1
# homeassistant.components.isy994
pyisy==3.0.10
pyisy==3.0.11
# homeassistant.components.itach
pyitachip2ir==0.0.7

View File

@ -1197,7 +1197,7 @@ pyiqvia==2022.04.0
pyiss==1.0.1
# homeassistant.components.isy994
pyisy==3.0.10
pyisy==3.0.11
# homeassistant.components.kaleidescape
pykaleidescape==1.0.1