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

Feature request: setpercentage (+optional timer) after HA update #21

Open
golles opened this issue Mar 4, 2021 · 1 comment
Open

Feature request: setpercentage (+optional timer) after HA update #21

golles opened this issue Mar 4, 2021 · 1 comment

Comments

@golles
Copy link

golles commented Mar 4, 2021

In the latest release of HA (Home Assistant) they moved fan speeds out in favor of a percentage, see https://www.home-assistant.io/blog/#fan-speeds-100

I would like to ask for a new feature, an API endpoint that can use this, including an optional timer parameter:


/api/v2/fan/setpercentage.json

Set the fan speed by a percentage of your fan device.

Example:

http://192.168.x.y/api/v2/fan/setpercentage.json?percentage=50

Parameter Required Description
percentage Yes Fan speed percentage:
a number between 0 and 100
timer No Set the fan timer (number of minutes)
@golles
Copy link
Author

golles commented Mar 4, 2021

I just realize this isn't really required as the speeds can be used as preset_mode and the percentage can be set via the voltage.
My implementation: https://gist.github.com/golles/ae32d9a7c14b63d9d68f6ff9a6fd4d6a#file-zehnder-yaml

Up to you if you feel this is a nice to have, else I'm fine you close this ticket

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

No branches or pull requests

1 participant