Add activity temperature configuration entities#114
Open
temp-droid wants to merge 3 commits intomsvisser:mainfrom
Open
Add activity temperature configuration entities#114temp-droid wants to merge 3 commits intomsvisser:mainfrom
temp-droid wants to merge 3 commits intomsvisser:mainfrom
Conversation
Add async_get_activities and async_set_heating_activities methods to RemehaHomeAPI for reading activity definitions and updating heating activity temperatures for a climate zone.
Fetch activity definitions once per climate zone on first update. Data is cached and only re-fetched after a write operation invalidates the cache. Add get_activities helper for entity access.
Add NumberEntity for each heating activity temperature per climate zone (typically Home, Sleep, Evening, Work, Comfort). Values, min/max ranges, and step sizes are read from the API response. All activity temperatures are sent together in PUT requests as required by the API. Register the number platform in __init__.py.
|
Hey @temp-droid, awesome job with both PRs! I'd love to see them merged. @msvisser do you have time to review few PRs that have been created lately? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Expose heating activity temperatures (e.g. Home, Sleep, Evening, Work, Comfort) as number entities, allowing users to adjust schedule temperatures from Home Assistant and automations.
api.py—GETactivities,PUT/climate-zones/{id}/activities/heatingcoordinator.py— fetch and cache activities per climate zonenumber.py—RemehaHomeActivityNumberwith min/max/step from APINumberDeviceClass.TEMPERATUREandEntityCategory.CONFIG