Add Homematic sensor descriptions (#82156)

Update sensor.py

Add Sensor Descriptions.
This commit is contained in:
Benjamin 2022-11-19 13:09:57 +01:00 committed by GitHub
parent e4666206ec
commit c8d4febe13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

View File

@ -253,6 +253,36 @@ SENSOR_DESCRIPTIONS: dict[str, SensorEntityDescription] = {
device_class=SensorDeviceClass.PM10,
state_class=SensorStateClass.MEASUREMENT,
),
"STATE": SensorEntityDescription(
key="STATE",
),
"SMOKE_DETECTOR_ALARM_STATUS": SensorEntityDescription(
key="SMOKE_DETECTOR_ALARM_STATUS",
),
"WIND_DIR": SensorEntityDescription(
key="WIND_DIR",
),
"WIND_DIR_RANGE": SensorEntityDescription(
key="WIND_DIR_RANGE",
),
"CONCENTRATION_STATUS": SensorEntityDescription(
key="CONCENTRATION_STATUS",
),
"PASSAGE_COUNTER_VALUE": SensorEntityDescription(
key="PASSAGE_COUNTER_VALUE",
),
"LEVEL": SensorEntityDescription(
key="LEVEL",
),
"LEVEL_2": SensorEntityDescription(
key="LEVEL_2",
),
"DOOR_STATE": SensorEntityDescription(
key="DOOR_STATE",
),
"FILLING_LEVEL": SensorEntityDescription(
key="FILLING_LEVEL",
),
}
DEFAULT_SENSOR_DESCRIPTION = SensorEntityDescription(