Add Matter Climate support#95434
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
|
ddcf422 to
aa7b355
Compare
|
@hidaris I've updated the code and tests. Only thing I wanted to ask is if its also possible to put the device in auto mode or is that only passive ? As I can see that the device can be in auto mode but its not a mode we can set it to as it seems. |
MartinHjelmare
left a comment
There was a problem hiding this comment.
Looks good! We need some more test coverage.
|
I think this PR is almost complete. I have some doubts about constructing test cases for properties like target temp and min temp when they are set to None. In such cases, it seems that I have to adjust the matter fixture to accommodate it, even though there is a default value for the set point in the matter spec. Is there a better way to handle this? I am currently not sure |
|
If the case where max and min returns |
|
Thanks for your reviews and help! |
|
Thank you for doing this change!! |
* Add Matter Climate support * update set target temp and update callback * remove print * remove optional property * Adjust the code to improve readability. * add thermostat test * Remove irrelevant cases in setting the target temperature. * add temp range support * update hvac action * support adjust low high setpoint.. * support set hvac mode * address some review feedback * move some methods around * dont discover climate in switch platform * set some default values * fix some of the tests * fix some typos * Update thermostat.json * Update homeassistant/components/matter/climate.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/matter/climate.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * support heat_cool in hvac_modes * address some review feedback * handle hvac mode param in set temp service * check hvac modes by featuremap * add comment to thermostat feature class * make ruff happy.. * use enum to enhance readability. * use builtin feature bitmap * fix target temp range and address some feedback * use instance attribute instead of class attr * make ruff happy... * address feedback about single case * add init docstring * more test * fix typo in tests * make ruff happy * fix hvac modes test * test case for update callback * remove optional check * more tests * more tests * update all attributes in the update callback * Update climate.py * fix missing test --------- Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Breaking change
Proposed change
Add Matter Climate support
Type of change
Additional information
Checklist
black --fast 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..coveragerc.To help with the load of incoming pull requests: