Add extra entity descriptions to Overkiz integration (#66093)
This commit is contained in:
parent
9f1c58cda3
commit
30528e0de0
3 changed files with 46 additions and 0 deletions
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue