-
Notifications
You must be signed in to change notification settings - Fork 99
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
Fan entity speed settings #27
Comments
I definitely agree that some improvement needs to be made for fan My concern with using an An alternative approach might be:
With the above approach; secondary platforms, like HomeKit, that use percentage-based speed can read the length of Finally, this approach may be less of an overhaul from the current architecture and therefore easier to implement than changing |
We should definitely specify the speed constants that are allowed to be used. Dyson would need to map their 0001 etc to one of our values. |
I was thinking about this issue again. What if we use an approach similar to the light Some advantages:
I would imaging that a future roadmap could look something like this:
To better illustrate my idea, I will post a link to a Update |
I rather have a hard cut off, not sure why we wait to make the breaking change if we are going to make a breaking change? |
Even if many fans use percents to define speed internally, many of them are "step-based", meaning that 1->20% = speed 1, 21->40% = speed 2, etc. |
any news on this? |
Is there at solution for this? Since the closing :-) |
@sknsean Unfortunately, I don't have time to implement any of it. And besides the issue has probably been stale for far too long. Maybe someone else will pick up this topic in the future. |
Any discussion about this topic somewhere? |
This issue was triggerd by home-assistant/core#14351 which was / is adding HomeKit support for fan entites.
During the work on the PR @schmittx and I noticed that the current way we assign fan
speeds
is overly complicated and not really practical for things like HomeKit, Alexa or Google Home.Current state
Each fan platform creates a list of supported speed settings, the
speed_list
, and setting thespeed
value requires to pass astring
that exists in the list.The most popular entries to
speed_list
are:STATE_OFF
orSPEED_OFF
SPEED_LOW
SPEED_MEDIUM
(sometimes)SPEED_HIGH
Others include:
auto
andsmart
The
dyson
platform taking a special case with:0001
,0002
, ... ,0010
andAUTO
Problem
Secondary platforms expect a) consistent values and b) most often percent instead of a string. In addition (c) the speed setting is mixed up with the current operation mode.
Solution?
speed
attribute should change to anint
value between[0, 100]
. The conversion should be handled by each platform individually.auto
,smart
,off
, (maybemanual
) should get their own attribute:mode
/operation_mode
?Their might be things that I've missed, especially how to cover this change in the fronted, but since the current way is somewhat all over the place we decided (at least for the homekit component) not to support the speed setting (for now).
The text was updated successfully, but these errors were encountered: