-
Notifications
You must be signed in to change notification settings - Fork 574
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
Add support for more ac/fan modes #1389
Conversation
Hopefully could be merged with this one too: #1177 |
@rospogrigio stated on #1213 the following:
As I also submitted a pull request #1352 with some variation I do see his point. Currently, I am limited in time but if we want something merged we probably have more success by implementing the suggested refactoring instead of submitting variations, please correct me if I am wrong @rospogrigio |
@simontegelid are you ok if I use your PR to try to summarize some things? @rospogrigio what would be your take on the following changes on behalf of the climate.py:
Almost sure I am missing some details here but could this be an approach you could agree on for your implementation? |
Yes, please do! |
Waiting for this. Please merge is ok ! |
Hello there! Other integrations, such as (Tuya Local)[https://github.com/make-all/tuya-local] have, for example, BHT-002 but not BHT-006 so I am in the same position there anyway (although I can add them in "heat only" mode, but not "cool" mode). All this said, let me repeat I am very thankful for the integration and what allowed me to do so far at home, but I, as many others, just want to unblock myself from not being able to add some more devices to HA. Thank you for all the hard work 🙏 and I hope my comment is not taken negatively. |
Hi, I was willing to merge this PR but it has conflicts that need solving, then I'll be able to do it. I am open to have other people help developing and maintaining the repository, if anyone is willing just raise your hand. |
Thanks for your response! I'll fix conflicts asap |
return DEFAULT_MIN_TEMP * 1.8 + 32 | ||
else: | ||
return DEFAULT_MIN_TEMP | ||
return self._config[CONF_TEMP_MIN] |
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.
Not 100% sure about removing this conversion. I'm thinking that the CONF_TEMP_MIN is set in Fahrenheit during configuration if needed and conversion here is not needed. The same goes for CONF_TEMP_MAX of course.
@rospogrigio what are the next steps to move this forward? |
Thanks @rospogrigio . What is the last CI step? Who are authorized to merge? |
* master: added dict get() instead of assuming keys exist; now handles config_flow setup failures without crashing Add support for more ac/fan modes (rospogrigio#1389) Replaced SUPPORT_* with enums, set minimum HA version in HACS configuration to 2024.1.0 # Conflicts: # custom_components/localtuya/climate.py
* Add support for more ac/fan modes * Replace deprecated constants with enums * Add support for ClimateEntityFeature.TURN_{ON,OFF} * Fix swing log message --------- Co-authored-by: Simon Tegelid <[email protected]>
* Fix for AttributeError: 'TuyaMessage' object has no attribute 'release' error * rospogrigio#711 Implemented m/p HVAC mode set * Introduced pytuya with support for 3.4 protocol * Introduced 3.4 protocol option in config flow * Fixed HEARTBEAT command * Added debugging * Fixed requested DPs for type_0d devices * Fixed negotiation and sequence numbers for protocol 3.4 * Fixed sequence numbering on status update * Fixed tox issues * Fixed tox issues * Updated README.md and info.md * Fixed tox issues * Fix for version not being set yet when calling _setup_dispatcher * Introduced the possibility to select which devices should have the pytuya debug enabled * Introduced device debugging option in README.md and info.md * Introduced pytuya with support for 3.4 protocol * Introduced 3.4 protocol option in config flow * Fixed HEARTBEAT command * Added debugging * Fixed requested DPs for type_0d devices * Fixed negotiation and sequence numbers for protocol 3.4 * Fixed sequence numbering on status update * Fixed tox issues * Fixed tox issues * Updated README.md and info.md * Fixed tox issues * Fix for version not being set yet when calling _setup_dispatcher * Introduced abort in config flow if all entities are deselected when editing a device * Introduced IT and PT translations * Update manifest.json for 5.0.0 * New tuyadebug.tgz now supporting protocol 3.4 * Update bug_report.md * Fix for unknown state of covers/shutters * New tuyadebug.tgz now including a tinytuya test * Force to int * Adjust input to avoid putting a string into an int * Adjust input to avoid putting a string into an int * Swap to int * Improved logging * Improved stability and Fix local_key update to not be thwarted by retries * Introduced update of local_key when editing a device * Improved logging * Tox fixes * Tox fixes * Tox fixes * Fix for not reconnecting after 'giving up' * Tox fixes * Tox fixes, reduced to 3.9 only * Add entities during 'Edit a device' * revert the default region * Fix depreciated async_get_registry * Add HACS validation * Remove extra key * Update manifest.json * Remove extra key * Update hacs.json * Add Hassfest validation * Alphabetize manifest.json Alphabetized manifest.json according to home assistant requirements. * Delete combined.yaml As described in KTibow/ha-blueprint, ha-blueprint is being retired and we should thereby switch over to hassfest and hacs validation. * Update tox.yaml Added workflow_dispatch * Update tox.ini * Reduced logging level for 'Command %d timed out waiting for sequence number'; set v.5.1.0 * Fixed tox errors * Updated manifest.json * Fix for socket.send() exceptions in the logs * Fixing pylint error * fix bug when climate entity is using default min/max temp and temp unit is F The default min/max temps are in C but when the climate entity is set up with F this will cause incorrect boundary check and an inability to change the temperature from the home assistant entity UI widget. * Allow calling localtuya.set_dp service by non-admin users * Fixed initialization with API but no internet. * Handle 3.4 protocol, fix CI (rospogrigio#1251) * Use refresh interval in version 3.4 * Scan interval convert to integer * Try to fix CI * Try to fix CI * Allow port reuse so that other integrations can read the same port (rospogrigio#1481) Co-authored-by: rospogrigio <[email protected]> * Fixing tox issues * Replaced SUPPORT_* with enums, set minimum HA version in HACS configuration to 2024.1.0 * Add support for more ac/fan modes (rospogrigio#1389) * Add support for more ac/fan modes * Replace deprecated constants with enums * Add support for ClimateEntityFeature.TURN_{ON,OFF} * Fix swing log message --------- Co-authored-by: Simon Tegelid <[email protected]> * added dict get() instead of assuming keys exist; now handles config_flow setup failures without crashing * feat: add climate entity support for Comfortbilt stoves * refactor: change information for fork * feat: add support for alarm --------- Co-authored-by: sibowler <[email protected]> Co-authored-by: Daan Kemper <[email protected]> Co-authored-by: rospogrigio <[email protected]> Co-authored-by: rospogrigio <[email protected]> Co-authored-by: Daniel O'Connor <[email protected]> Co-authored-by: GaoJing <[email protected]> Co-authored-by: oven-lab <[email protected]> Co-authored-by: nu <[email protected]> Co-authored-by: Ovidiu Nitan <[email protected]> Co-authored-by: Neal Joslin <[email protected]> Co-authored-by: dulyts <[email protected]> Co-authored-by: Luke Bonaccorsi <[email protected]> Co-authored-by: Elad Bar <[email protected]> Co-authored-by: Simon Tegelid <[email protected]> Co-authored-by: Simon Tegelid <[email protected]> Co-authored-by: [email protected] <[email protected]>
Add support for settings fan modes and swing modes and another set of HVAC modes.
Based on my Qlima WMS S + SC52 (AB;AF)