Add icon translations and missing text translations for select in Overkiz (#143369)

This commit is contained in:
Mick Vleeshouwer 2025-04-22 12:48:35 +02:00 committed by GitHub
parent a86c6e0809
commit 0b64151ae0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 33 additions and 5 deletions

View File

@ -16,6 +16,31 @@
} }
} }
} }
},
"select": {
"open_closed_pedestrian": {
"default": "mdi:content-save-cog"
},
"open_closed_partial": {
"default": "mdi:content-save-cog"
},
"memorized_simple_volume": {
"default": "mdi:volume-medium",
"state": {
"highest": "mdi:volume-high",
"standard": "mdi:volume-medium"
}
},
"operating_mode": {
"default": "mdi:sun-snowflake",
"state": {
"heating": "mdi:heat-wave",
"cooling": "mdi:snowflake"
}
},
"active_zones": {
"default": "mdi:shield-lock"
}
} }
} }
} }

View File

@ -72,7 +72,6 @@ SELECT_DESCRIPTIONS: list[OverkizSelectDescription] = [
OverkizSelectDescription( OverkizSelectDescription(
key=OverkizState.CORE_OPEN_CLOSED_PEDESTRIAN, key=OverkizState.CORE_OPEN_CLOSED_PEDESTRIAN,
name="Position", name="Position",
icon="mdi:content-save-cog",
options=[ options=[
OverkizCommandParam.OPEN, OverkizCommandParam.OPEN,
OverkizCommandParam.PEDESTRIAN, OverkizCommandParam.PEDESTRIAN,
@ -84,7 +83,6 @@ SELECT_DESCRIPTIONS: list[OverkizSelectDescription] = [
OverkizSelectDescription( OverkizSelectDescription(
key=OverkizState.CORE_OPEN_CLOSED_PARTIAL, key=OverkizState.CORE_OPEN_CLOSED_PARTIAL,
name="Position", name="Position",
icon="mdi:content-save-cog",
options=[ options=[
OverkizCommandParam.OPEN, OverkizCommandParam.OPEN,
OverkizCommandParam.PARTIAL, OverkizCommandParam.PARTIAL,
@ -96,7 +94,6 @@ SELECT_DESCRIPTIONS: list[OverkizSelectDescription] = [
OverkizSelectDescription( OverkizSelectDescription(
key=OverkizState.IO_MEMORIZED_SIMPLE_VOLUME, key=OverkizState.IO_MEMORIZED_SIMPLE_VOLUME,
name="Memorized simple volume", name="Memorized simple volume",
icon="mdi:volume-high",
options=[OverkizCommandParam.STANDARD, OverkizCommandParam.HIGHEST], options=[OverkizCommandParam.STANDARD, OverkizCommandParam.HIGHEST],
select_option=_select_option_memorized_simple_volume, select_option=_select_option_memorized_simple_volume,
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
@ -106,20 +103,20 @@ SELECT_DESCRIPTIONS: list[OverkizSelectDescription] = [
OverkizSelectDescription( OverkizSelectDescription(
key=OverkizState.OVP_HEATING_TEMPERATURE_INTERFACE_OPERATING_MODE, key=OverkizState.OVP_HEATING_TEMPERATURE_INTERFACE_OPERATING_MODE,
name="Operating mode", name="Operating mode",
icon="mdi:sun-snowflake",
options=[OverkizCommandParam.HEATING, OverkizCommandParam.COOLING], options=[OverkizCommandParam.HEATING, OverkizCommandParam.COOLING],
select_option=lambda option, execute_command: execute_command( select_option=lambda option, execute_command: execute_command(
OverkizCommand.SET_OPERATING_MODE, option OverkizCommand.SET_OPERATING_MODE, option
), ),
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
translation_key="operating_mode",
), ),
# StatefulAlarmController # StatefulAlarmController
OverkizSelectDescription( OverkizSelectDescription(
key=OverkizState.CORE_ACTIVE_ZONES, key=OverkizState.CORE_ACTIVE_ZONES,
name="Active zones", name="Active zones",
icon="mdi:shield-lock",
options=["", "A", "B", "C", "A,B", "B,C", "A,C", "A,B,C"], options=["", "A", "B", "C", "A,B", "B,C", "A,C", "A,B,C"],
select_option=_select_option_active_zone, select_option=_select_option_active_zone,
translation_key="active_zones",
), ),
] ]

View File

@ -112,6 +112,12 @@
"highest": "Highest", "highest": "Highest",
"standard": "Standard" "standard": "Standard"
} }
},
"operating_mode": {
"state": {
"heating": "[%key:component::climate::entity_component::_::state_attributes::hvac_action::state::heating%]",
"cooling": "[%key:component::climate::entity_component::_::state_attributes::hvac_action::state::cooling%]"
}
} }
}, },
"sensor": { "sensor": {