Skip to content

[Feature request] Add Swing mode toggle #42

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

Closed
boardlord1 opened this issue Jun 22, 2024 · 6 comments
Closed

[Feature request] Add Swing mode toggle #42

boardlord1 opened this issue Jun 22, 2024 · 6 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@boardlord1
Copy link

boardlord1 commented Jun 22, 2024

My AC's Swing mode is a simple toggle - send an IR code to swing the flaps, and by sending the same IR code it stops swinging the flap stays in the new position (many basic ACs work the same way).

Would it be possible to add a simple Swing mode (toggle it on-off)? Thanks!

According to HA docs, the climate entity has this variety (swing_off and swing_on): https://developers.home-assistant.io/docs/core/entity/climate#swing-modes

Edit: there was a request for SmartIR back in 2021, but nothing happened: smartHomeHub#746

@litinoveweedle litinoveweedle added the enhancement New feature or request label Jun 22, 2024
@litinoveweedle
Copy link
Owner

Hello,I will need detailed explanation what exactly you would like to do, and what do you expect from it, step by step. i.E.. I want to open HA, see my climate card, have swing switch there, click on it, it shall do this or that... etc.

But if I understand you correctly so far:
You can define freely any swing mode, (that means you can make two swing modes called "on" and "off") and assign to those any IR command you like (this means those can contain even same IR command) BUT as any other SmartIR climate command, those commands are expected to contain bits for switching the unit on, selecting given AC mode and setting temperature etc. This is the way which is used by most of HVAC units - all the current AC setting are always transmitted within any command (except off I think).

To test this just press the swing button on your remote when unit is off. If it will not switch on, that this command is not something this integration could handle (it would be overkill to integrate all such custom features for all existing AC unit types, I need to keep this integration universal and versatile.) But you can implement any such dedicated command easy way by using custom on/off helper switch hooked to automation which would send your command using remote HA integration on each switch change

@boardlord1
Copy link
Author

boardlord1 commented Jun 22, 2024

My unit is like most - the commands contain all info: mode, temp. And the swing IR code only works when the unit is already on, it doesn't do anything when I press the swing button on the remote while it's off.

So the swing code is just for toggling swing on/off, with no additional info being sent, and only works when the AC is on.

Shame... I of course could cobble together a horizontal stack of the climate card and a button that sends the swing IR code, but it'd look a bit clunky (already tried it, and the button looked out of place). Granted, I'm no dashboard ninja :) I hoped to have this in the climate card itself. Thanks anyway!

@litinoveweedle litinoveweedle added the wontfix This will not be worked on label Jun 22, 2024
@litinoveweedle
Copy link
Owner

Thank you for explanation. Then it is as I was afraid. such custom commands are really outside of the current scope. You are free to fork and modify the code as you like, if you will come with any KISS (Keep It Simple Stupid), you can propose PR. But for now I am afraid I can't think of any.

@boardlord1
Copy link
Author

Looking through the open PRs of the original SmartIR repo, I came across this, seems to be of a similar logic? smartHomeHub#995

@litinoveweedle
Copy link
Owner

Ok, I will check this, but no promises. ;-)

@boardlord1
Copy link
Author

That's all I can ask for 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants