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

Dynamic fan speeds #5

Closed
zacharyrs opened this issue Sep 2, 2020 · 8 comments
Closed

Dynamic fan speeds #5

zacharyrs opened this issue Sep 2, 2020 · 8 comments

Comments

@zacharyrs
Copy link
Owner

Per #4, should get whatever fan speeds are available and expose them.

Website controller defines these with:

self.fanStageInfo = {
  1: { class: "", ids: "5", desc: { 5: "On" } },
  2: { class: "ui-grid-a", ids: "25", desc: { 2: "Low", 5: "High" } },
  3: { class: "ui-grid-b", ids: "235", desc: { 2: "Low", 3: "Medium", 5: "High" } },
  4: { class: "ui-grid-c", ids: "2356", desc: { 2: "Low", 3: "Medium Low", 5: "Medium High", 6: "High" } },
  5: { class: "ui-grid-d", ids: "12356", desc: { 1: "Low", 2: "Medium Low", 3: "Medium", 5: "Medium High", 6: "High" } },
};

Gets the key in call to https://api.melview.net/api/unitcapabilities.aspx, we store under self._caps.fanstage.

Could expose using their speed names?

@zacharyrs zacharyrs mentioned this issue Sep 2, 2020
@gazelle-hub
Copy link

I've tried updating to this version but I only get 3 fan speeds even though I know that I definitely have 5 speeds.

I can see 5 speeds in the mobile app and I also had previously updated your old code to include the other 2 fan speeds (medium-low, medium-high).

@gazelle-hub
Copy link

When I go to https://api.melview.net/api/unitcapabilities.aspx I get:
{"error":"no data"}

@zacharyrs
Copy link
Owner Author

Oh I haven't implemented it yet - this is more just a thought process for when I have time to.
The latest changes were just to fix the warning about ClimateEntity per #3.

You won't get anything from the API as it needs a post request (see https://github.com/zacharyrs/ha-melview/blob/master/melview.py#L153).

zacharyrs added a commit that referenced this issue Sep 9, 2020
zacharyrs added a commit that referenced this issue Sep 9, 2020
@zacharyrs
Copy link
Owner Author

@gazelle-hub I have a potential fix for this in dev, feel free to switch to that branch and tell me if it works for you

@gazelle-hub
Copy link

Hi, sorry I haven't had a chance to get to this. My wife is WFH at the moment so I haven't been able to find much time to be on the computer.

Should be able to get to it to test in the next couple of days.

@BlueTalon6
Copy link

@zacharyrs Can confirm, the 5 fan speeds from dev branch is working, changing speed is matched in the melview app/site and my super scientific, wind speed measuring paper plane on a string.

@zacharyrs
Copy link
Owner Author

Sorry, I've completely neglected this - I think I'll merge it over after #9.

@zacharyrs
Copy link
Owner Author

Closing as it's in https://github.com/zacharyrs/ha-melview/tree/dev - will do a big merge to master in #11.

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

3 participants