Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EveCluster ValvePosition Attribute #125809

Merged
merged 16 commits into from
Sep 24, 2024
3 changes: 3 additions & 0 deletions homeassistant/components/matter/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
},
"activated_carbon_filter_condition": {
"default": "mdi:filter-check"
},
"valve_position": {
"default": "mdi:valve"
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions homeassistant/components/matter/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,16 @@ def _update_from_device(self) -> None:
required_attributes=(EveCluster.Attributes.Current,),
absent_clusters=(clusters.ElectricalPowerMeasurement,),
),
MatterDiscoverySchema(
platform=Platform.SENSOR,
entity_description=MatterSensorEntityDescription(
key="EveThermoValvePosition",
translation_key="valve_position",
native_unit_of_measurement=PERCENTAGE,
),
entity_class=MatterSensor,
required_attributes=(EveCluster.Attributes.ValvePosition,),
),
MatterDiscoverySchema(
platform=Platform.SENSOR,
entity_description=MatterSensorEntityDescription(
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/matter/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@
},
"switch_current_position": {
"name": "Current switch position"
},
"valve_position": {
"name": "Valve position"
}
},
"switch": {
Expand Down
Loading