-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Matter TemperatureNumber feature from TemperatureControl cluster #128838
base: dev
Are you sure you want to change the base?
Conversation
Hey there @home-assistant/matter, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Is there a HomeAssistant entity to map this cluster with? |
You should add/integrate this code into the |
Co-authored-by: Marcel van der Veldt <[email protected]>
@lboue can you address the final feedback, rebase the PR and fix any merge conflicts ? |
if self._feature_map == feature_map: | ||
return | ||
self._feature_map = feature_map | ||
self._attr_hvac_modes: list[HVACMode] = [HVACMode.HEAT_COOL] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment above this line that you can not set the mode for a TemperatureControl cluster, you can only set the target temperature.
Also I'm wondering if heat_cool is the right mode here. Can we somewhere determine if this device is either a cooling or heating device ? I think we can derive that from the device type maybe ?
So if we know from the devicetype that its a fridge, we should hardcode this mode to cooling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set it to HVACMode.HEAT_COOL
because TemperatureControlledCabinet
device type can have cooling/heating functionality:
https://github.com/project-chip/connectedhomeip/blob/master/data_model/1.4/device_types/TemperatureControlledCabinet.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes you should look at root endpoint if its a refrigerator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EP0 device type is 'Root Node' so we can't use that trick:
"attributes": {
"0/29/0": [
{
"0": 22,
"1": 1
}
],
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Marcel van der Veldt <[email protected]>
Co-authored-by: Marcel van der Veldt <[email protected]>
Co-authored-by: Marcel van der Veldt <[email protected]>
Co-authored-by: Marcel van der Veldt <[email protected]>
Attributes of Descriptor Cluster TagList / AttributeId: 4 (0x004) - Value type: Optional[List[Descriptor.Structs.SemanticTagStruct]] kNamespaceRefrigerator = 0x41 kTagRefrigerator [{"0":null,"1":65,"2":0}] TagFreezer [{"0":null,"1":65,"2":1}]
Proposed change
It would be useful to add support for Matter Temperature Control Cluster (0x0056) used in the following device types:
This would allow manufacturers to test their products.
This cluster provides an interface to the setpoint temperature on devices such as washers, refrigerators, and water heaters. The setpoint temperature is the temperature to which a device using this cluster would attempt to control to. This cluster does not provide access to the actual or physical temperature associated with any device using this cluster. Access to the physical temperature associated with a device using this cluster would be provided by other clusters as part of that devices
device type definition.
There is 3 features for this cluster:
For devices that use an actual temperature value for the temperature setpoint, such as some water heaters
For devices that support discrete temperature setpoints that are larger than the temperature resolution imposed via the temperature data type
For devices that use vendor-specific temperature levels for the temperature setpoint, such as some washers (Dishwasher, LaundryDryer, LaundryWasher)
There is one command to change the target Temperature:
SupportedTemperatureLevels (86/5) is a
![image](https://private-user-images.githubusercontent.com/938089/378203552-103c262f-3dcc-424b-b1b0-8c6e38862f73.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzIwMTYsIm5iZiI6MTczODkzMTcxNiwicGF0aCI6Ii85MzgwODkvMzc4MjAzNTUyLTEwM2MyNjJmLTNkY2MtNDI0Yi1iMWIwLThjNmUzODg2MmY3My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QxMjM1MTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZmRjY2E0MDMxYmViNzBmYTMyNzJiMDA3YjIzNzVkMzJiZWE5YTZhYjYyMzFjOGYzMmQ4ZDE1OWIxN2U0YjRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ojDKO-mdRZ-1WokfGS_JqckO0dWd_elSFHpYGKLJqhc)
list[Str]
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: