Add extra entity descriptions to Overkiz integration (#66093)

This commit is contained in:
Mick Vleeshouwer 2022-02-15 12:24:33 -08:00 committed by GitHub
parent 9f1c58cda3
commit 30528e0de0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

View file

@ -48,6 +48,34 @@ NUMBER_DESCRIPTIONS: list[OverkizNumberDescription] = [
max_value=4,
entity_category=EntityCategory.CONFIG,
),
# SomfyHeatingTemperatureInterface
OverkizNumberDescription(
key=OverkizState.CORE_ECO_ROOM_TEMPERATURE,
name="Eco Room Temperature",
icon="mdi:thermometer",
command=OverkizCommand.SET_ECO_TEMPERATURE,
min_value=6,
max_value=29,
entity_category=EntityCategory.CONFIG,
),
OverkizNumberDescription(
key=OverkizState.CORE_COMFORT_ROOM_TEMPERATURE,
name="Comfort Room Temperature",
icon="mdi:home-thermometer-outline",
command=OverkizCommand.SET_COMFORT_TEMPERATURE,
min_value=7,
max_value=30,
entity_category=EntityCategory.CONFIG,
),
OverkizNumberDescription(
key=OverkizState.CORE_SECURED_POSITION_TEMPERATURE,
name="Freeze Protection Temperature",
icon="mdi:sun-thermometer-outline",
command=OverkizCommand.SET_SECURED_POSITION_TEMPERATURE,
min_value=5,
max_value=15,
entity_category=EntityCategory.CONFIG,
),
]
SUPPORTED_STATES = {description.key: description for description in NUMBER_DESCRIPTIONS}

View file

@ -73,6 +73,17 @@ SELECT_DESCRIPTIONS: list[OverkizSelectDescription] = [
entity_category=EntityCategory.CONFIG,
device_class=OverkizDeviceClass.MEMORIZED_SIMPLE_VOLUME,
),
# SomfyHeatingTemperatureInterface
OverkizSelectDescription(
key=OverkizState.OVP_HEATING_TEMPERATURE_INTERFACE_OPERATING_MODE,
name="Operating Mode",
icon="mdi:sun-snowflake",
options=[OverkizCommandParam.HEATING, OverkizCommandParam.COOLING],
select_option=lambda option, execute_command: execute_command(
OverkizCommand.SET_OPERATING_MODE, option
),
entity_category=EntityCategory.CONFIG,
),
]
SUPPORTED_STATES = {description.key: description for description in SELECT_DESCRIPTIONS}

View file

@ -359,6 +359,13 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
key=OverkizState.IO_ELECTRIC_BOOSTER_OPERATING_TIME,
name="Electric Booster Operating Time",
),
# Cover
OverkizSensorDescription(
key=OverkizState.CORE_TARGET_CLOSURE,
name="Target Closure",
native_unit_of_measurement=PERCENTAGE,
entity_registry_enabled_default=False,
),
]
SUPPORTED_STATES = {description.key: description for description in SENSOR_DESCRIPTIONS}