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 nightmode #28

Merged
merged 3 commits into from
Mar 7, 2024
Merged

Conversation

OlympusMonds
Copy link

What does this implement/fix?

Add support for night mode on the Mitsubishi.

I've been using your branch on my MSZ-AP units, and it's been great, thanks!

This change add support for night mode, using the climate mode SLEEP. Seems to work for me!

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other

@OlympusMonds OlympusMonds requested a review from RubyBailey as a code owner March 2, 2024 05:36
@OlympusMonds
Copy link
Author

As per the chat in: esphome#3886 , do you think this is OK to merge?

case MITSUBISHI_NIGHTMODE:
this->preset = climate::CLIMATE_PRESET_SLEEP;
break;
case MITSUBISHI_DEFAULTMODE:
Copy link
Owner

Choose a reason for hiding this comment

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

Hi @OlympusMonds ,
I am OK with adding nightmode as CLIMATE_PRESET_SLEEP.
I am having a challenge with CLIMATE_PRESET_NONE. state_frame[14] and state_frame[15] are in the presets. My controls, remember mine are older units, set 0x00 in these frames. I don't think MITSUBISHI_DEFAULTMODE is a good way to evaluate that CLIMATE_PRESET_NONE is selected.

Copy link
Author

Choose a reason for hiding this comment

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

No worries, I've removed that code, and it actually still works just fine.

Copy link
Owner

Choose a reason for hiding this comment

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

I think we’re good to merge. Thanks for working on this.

@RubyBailey RubyBailey merged commit 3cb1fb4 into RubyBailey:mitsubishi-updates Mar 7, 2024
32 of 35 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants