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

Added support for Energy saving mode (airState.powerSave.basic) #739

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

Conversation

andrei-croitor
Copy link

(issue #714) (#524)

This adds support for the "Energy saving" AC feature from the LG app.
I tested with my AC unit, "model": "RAC_056905_WW-RAC (AC)".

@danilolima
Copy link

I have 0.39.2 version installed and my AC is model "RAC_056905_WW-RAC (AC)" and I can't see the power save option.
How can I enable it?

image

@andrei-croitor
Copy link
Author

Hi, this pull request has not yet been accepted, so the changes are not present. I have a fork of this repo with the energy saving change, but in the mean time I added some other things that are useful only for me so I can't recommend using it.

@thoompje
Copy link

thoompje commented Aug 2, 2024

Would be awesome that this feature will be integrated! I uploaded the files manually and its working like a charm!

@AndreiArdelean1
Copy link

@ollo69 Is it possible to have this added to ha-smartthinq-sensors?

Comment on lines +613 to +614
# if self._is_mode_supported(SUPPORT_LIGHT_INV_SWITCH):
# return {MODE_OFF: LIGHT_DISPLAY_INV_OFF, MODE_ON: LIGHT_DISPLAY_INV_ON}
Copy link
Owner

Choose a reason for hiding this comment

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

Why you comment this?

Copy link
Author

@andrei-croitor andrei-croitor Oct 13, 2024

Choose a reason for hiding this comment

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

Hi,
For me, RAC_88_DISPLAY_CONTROL displayed correctly the light on switch (not inverted as I saw others users reported). Because of the "inverted" code part, in my app the values were inverted. With that code commented, it displays fine for me.
Anyway, the commit d757db5 was not part of the original pull request, after around 2 weeks I thought the pull request is not accepted so I used this fork to add some changes for my personal needs and use it on my HA.

The original pull request was only for commit https://github.com/ollo69/ha-smartthinq-sensors/pull/739/commits/4ee1db93944a204fd13fcfad13d54ca3053cf6fc1.

Thanks and regards,
Andrei

Copy link
Owner

Choose a reason for hiding this comment

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

For me, RAC_88_DISPLAY_CONTROL displayed correctly the light on switch (not inverted as I saw others users reported). Because of the "inverted" code part, in my app the values were inverted. With that code commented, it displays fine for me.

This is the real problem in integration development, found the correct way to make it work properly for all possible devices. We should find a way to make this option work correctly for your device without breaking others.

after around 2 weeks I thought the pull request is not accepted so I used this fork to add some changes for my personal needs and use it on my HA.

The only problem is that this year my time to work on this integration is very limited, but there are no reason to reject a PR without at least a feedback. If there are no answer just means that I had no time to analyze it, but PR are always welcome.

Please attach your device diagnostics so that I will also take a look to the display settings available to try to found a possible solution.

Copy link
Author

Choose a reason for hiding this comment

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

Hi,
Thanks for your reply. I have attached the device diagnostics, and looking into it I realised I remembered incorrectly the light problem. The "@RAC_88_DISPLAY_CONTROL" is not supported at all and "@BRIGHTNESS_CONTROL" that is used in integration's code as inverted value, for me it doesn't need to be inverted.
If you prefer, I could make a new pull request with only the Energy saving mode switch stuff, but not sure when, as I don't have a lot of time until the end of the month.

Thanks and regards,
Andrei

smartthinq_sensors-26b2987ca676674af931188bf04abf81-AC Second Bedroom-09980ad75b0c1297483b0edf664cf99f.json

Copy link
Owner

Choose a reason for hiding this comment

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

I'm trying to figure out how to manage the light option more efficiently, as it seems that each device works differently (when it works at all)

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.

5 participants