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

Improve support for sinope Calypso and Eco Mode #2829

Merged
merged 6 commits into from
Dec 23, 2023

Conversation

claudegel
Copy link
Contributor

@claudegel claudegel commented Dec 10, 2023

Proposed change

  • Code cleanup for calypso controller.
  • Add support for Eco Mode on thermostats, Eco Sinopé
  • Add many attributes for sensor and light in manufacturer cluster

Additional information

Checklist

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works

Copy link

codecov bot commented Dec 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5291121) 87.37% compared to head (c449552) 87.37%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2829      +/-   ##
==========================================
- Coverage   87.37%   87.37%   -0.01%     
==========================================
  Files         287      287              
  Lines        8847     8845       -2     
==========================================
- Hits         7730     7728       -2     
  Misses       1117     1117              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@claudegel
Copy link
Contributor Author

It was an error as the TankSize finally is not in the attribute but only in Neviweb cloud. It is not used by the Calypso. I've left the attribute there as other could be able to find out the usage.
I have many other attribute that are still unknown. is it better to leave them out until I find the usage or put them in the quirks so other have access to play with them.

@claudegel
Copy link
Contributor Author

Another thing, I'm thinking of splitting the 4 files into specific file for each device model. Could it be better ? It's a big job to separate everything but if it is better I can try to split them.

@TheJulianJES
Copy link
Collaborator

I'm thinking of splitting the 4 files into specific file for each device model.

Generally yeah, it's nicer to have different device types separated. For example, switch.py has smart plugs, valve controllers, ... from what I can see. IMO, it's still fine for these, as there aren't too many models, but we're open for a "cleanup PR" if you want.

Copy link
Collaborator

@TheJulianJES TheJulianJES left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@claudegel
Copy link
Contributor Author

I have many attributes found in manufacturer cluster but still need to find out the use. Generally I don't add them to the quirks but could it be better to add them as unknown_attr_xx so other can try to understand the usage for them so we can put a name on them ?

@TheJulianJES
Copy link
Collaborator

many attributes found in manufacturer cluster but still need to find out the use. Generally I don't add them to the quirks but could it be better to add them as unknown_attr_xx

I don't have a real preference. If they're likely not needed, I wouldn't add them, but it should also be fine if you do add them.

@TheJulianJES TheJulianJES merged commit 0eb7fc2 into zigpy:dev Dec 23, 2023
14 checks passed
@claudegel claudegel deleted the claudegel-sinope branch December 23, 2023 21:31
elupus pushed a commit to elupus/zha-device-handlers that referenced this pull request Jan 17, 2024
* Add attribute 0x0090 current_summation_delivered

* Add min/max_measured_temperature

* Fix eco modes

* Better support for calypso

* Add attributes for leak sensor

* Add attr 0x0101
lgraf pushed a commit to lgraf/zha-device-handlers that referenced this pull request May 6, 2024
* Add attribute 0x0090 current_summation_delivered

* Add min/max_measured_temperature

* Fix eco modes

* Better support for calypso

* Add attributes for leak sensor

* Add attr 0x0101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants