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

Add support for Samsung AR18TGHQASINSE, Daikin FTV35CXV & FTKQ35UVM4 + add support for on_once (toggle) #884

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nick-potts
Copy link

I've also added the necessary support for toggle AC's (required for the Daikin FTV35CXV).

This also fixes #573

@pabloromeo
Copy link

I hope this gets merged soon! Plenty of ACs need the "on_once" logic to be usable.

@@ -323,6 +324,12 @@ async def async_set_hvac_mode(self, hvac_mode):
if not hvac_mode == HVAC_MODE_OFF:
self._last_on_operation = hvac_mode

# Turn AC on if it requires a pre-command
if self._previous_hvac_mode == HVAC_MODE_OFF: # only if it's previously off

Choose a reason for hiding this comment

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

It seems there's a bug here. self._previous_hvac_mode is not kept up to date when changing HVAC mode. Therefore, when changing modes the on_once is triggered in between mode changes.
To fix it, what i've done is added:
self._previous_hvac_mode = self._hvac_mode
right before it makes the actual change to self._hvac_mode

@d4wud
Copy link

d4wud commented Aug 8, 2022

This would be awesome! Great work!

@stale
Copy link

stale bot commented Sep 21, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 21, 2022
@HVPereira
Copy link

Really hope it gets merged too!

@stale stale bot removed the stale label Jan 24, 2023
@javato
Copy link

javato commented Mar 13, 2024

Any news on this?
Really hope this gets merged.
Many A/C units works on on/off toggle button

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.

Support toggle climate device
5 participants