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

Final fix for climate react switch enabled not working properly #119

Merged
merged 6 commits into from
Nov 11, 2023
Merged

Final fix for climate react switch enabled not working properly #119

merged 6 commits into from
Nov 11, 2023

Conversation

seidnerj
Copy link
Contributor

@seidnerj seidnerj commented Nov 7, 2023

No description provided.

Copy link
Collaborator

@benwebbbenwebb benwebbbenwebb left a comment

Choose a reason for hiding this comment

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

Looking good, think we are pretty close @seidnerj!

homekit/ClimateReactSwitch.js Outdated Show resolved Hide resolved
homekit/StateManager.js Outdated Show resolved Hide resolved
homekit/StateManager.js Outdated Show resolved Hide resolved
sensibo/StateHandler.js Show resolved Hide resolved
sensibo/api.js Outdated Show resolved Hide resolved
sensibo/StateHandler.js Show resolved Hide resolved
@benwebbbenwebb benwebbbenwebb self-assigned this Nov 8, 2023
@benwebbbenwebb benwebbbenwebb added the enhancement New feature or request label Nov 8, 2023
@seidnerj
Copy link
Contributor Author

seidnerj commented Nov 8, 2023

I adjusted to code according to the discussion above and tested it. I guess that's it :) @benwebbbenwebb

@benwebbbenwebb benwebbbenwebb merged commit 7478f9c into nitaybz:master Nov 11, 2023
1 check passed
@benwebbbenwebb
Copy link
Collaborator

Thanks @seidnerj

Merged

benwebbbenwebb pushed a commit that referenced this pull request Nov 11, 2023
* Fixed StateHandler setter not firing for `enableClimateReactSwitch`
* Adjust `enableClimateReactAutoSetup` logic
benwebbbenwebb pushed a commit that referenced this pull request Nov 11, 2023
* Fixed StateHandler setter not firing for `enableClimateReactSwitch`
* Adjust `enableClimateReactAutoSetup` logic
@seidnerj
Copy link
Contributor Author

I just found a small (but critical) bug in this feature, it affects ANY configuration, even if the auto setup feature is off. I will have a PR ready very soon - I am testing it today.

benwebbbenwebb pushed a commit that referenced this pull request Jan 10, 2024
* Fixed StateHandler setter not firing for `enableClimateReactSwitch`
* Adjust `enableClimateReactAutoSetup` logic
benwebbbenwebb pushed a commit that referenced this pull request Jan 10, 2024
* Fixed StateHandler setter not firing for `enableClimateReactSwitch`
* Adjust `enableClimateReactAutoSetup` logic
benwebbbenwebb added a commit that referenced this pull request Jan 20, 2024
### Bug fixes and improvements
- #105 fan setting not remembered, round HKToFanLevel to match fanLeveltoHK
- StateHandler.js - Better handle async (WIP) API calls, especially for smartMode
- StateHandler.js - Correctly manage smartMode state changes
- api.js - Better error handling
- api.js - updated fixResponse to prevent unexpectedly adding smartMode
- README.md changes
  - Climate React feature descriptions
  - Sensor descriptions
  - added deprecations
  - general clean up
- config and config.schema updates
- move StateHandler.js
- move HKToFanLevel, toFahrenheit, sensiboFormattedACState & sensiboFormattedClimateReactState to (new) StateHandler.js
- add Utils.js and move to using Utils.updateValue()
- Additional logging and TODOs
- Only add Humidity to AC when enabled

### Security
- Bump axios from 0.21.4 to 1.6.5
- Bump follow-redirects to 1.15.4

### Chores and maintenance
- update package.json dependency and engine versions
- Axios major version upgrade
- remove qs (functionality now provided by Axios directly)
- move to eslint stylistic (from eslint) for linting
- ESLint flat file config (v9 ready)
- add/update GitHub workflow to check linting on PRs
- update .gitignore and .npmignore
- move nodemon to own config
- TODOs, comments and debug log changes
- Tidied up / unified accessory definition files


---------

Co-authored-by: seidnerj (PRs #119 & #122, #123 back merged)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants