Coder Social home page Coder Social logo

Comments (7)

pschroeder89 avatar pschroeder89 commented on June 22, 2024

I don't own one, so I'd need to know some info about it. How many mist levels does it have? Does it have auto mode?

from homebridge-levoit-humidifiers.

pschroeder89 avatar pschroeder89 commented on June 22, 2024

Hey @wphillips82, I did a quick google search and looks like it has 3 mist levels and auto mode. I've created 1.3.0-beta2 that adds support, so please test it out and let me know if things work as expected.
Thanks!

from homebridge-levoit-humidifiers.

wphillips82 avatar wphillips82 commented on June 22, 2024

Wow that was quick. Just got to test it and it actually has 9 mist levels and currently when I set Apple Home to 100% the Vesync app only shows mist level 3 out of 9.

On, Off and Auto work as expected.

from homebridge-levoit-humidifiers.

pschroeder89 avatar pschroeder89 commented on June 22, 2024

@wphillips82 I adjusted the mist level for the Classic 200s to 9 levels instead of 3, sorry bout that.
I also adjusted some logic around how the slider values are calculated per humidifier, so you should now see the slider increment by ~11% instead of 10%, since we now calculate it by (100 / the the number of mist levels).

This is all in 1.3.0-beta4 if you wouldn't mind re-testing the mist levels for the 200s. Thanks in advance!

from homebridge-levoit-humidifiers.

wphillips82 avatar wphillips82 commented on June 22, 2024

Setting the mist level works correctly now but there still appears to be a issue when Apple Home is reading the mist level back from the humidifier for just mist level 1, 2, 3 and 4.

Example
I set the mist level to 22% in Home
Go to vesync app and it shows level 2
go back to Home and now it shows 11%
Go back to vesync and it still shows level 2

For mist level 1, Home set at 11% reads it back at 0%
For mist level 2, Home set at 22% reads it back at 11%
For mist level 3, Home set at 33% reads it back at 22%
For mist level 4, Home set at 44% reads it back at 33%

This doesn't happen for mist level 5-9
For mist level 5, Home sets and reads it back at 56%
For mist level 6, Home sets and reads it back at 67%
For mist level 7, Home sets and reads it back at 78%
For mist level 8, Home sets and reads it back at 89%
For mist level 9, Home sets and reads it back at 100%

from homebridge-levoit-humidifiers.

pschroeder89 avatar pschroeder89 commented on June 22, 2024

Yup, I saw that too after messing around for a while. The problem is I tried to fix something for the Dual200s at the same time, which complicated how the percentages and mist levels were calculated.

I've pushed 1.3.0-beta8 1.3.0-beta9 that simplifies the mist level logic. I have tested it a bit and haven't seen any error logs (which I was getting infrequently in previous versions), and the issue you described above isn't happening for me.

Please test if you have time. I'll continue to test on my end, too.

from homebridge-levoit-humidifiers.

wphillips82 avatar wphillips82 commented on June 22, 2024

beta9 works as expected. Tested all mist levels and switched back and forth between Homekit and Vesync and everything is correct now. Thanks alot for getting this added.

from homebridge-levoit-humidifiers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.