GithubHelp home page GithubHelp logo

Comments (7)

kurktchiev avatar kurktchiev commented on August 17, 2024 1

Can confirm it’s doing the same thing for me as well on the 300s

from homebridge-levoit-humidifiers.

michaeldonovan avatar michaeldonovan commented on August 17, 2024 1

Works great, thanks!

from homebridge-levoit-humidifiers.

pschroeder89 avatar pschroeder89 commented on August 17, 2024

Thanks for the bug! I have also been seeing this but haven't had a lot of time to dig into it.
I should be able to take a look this weekend.

from homebridge-levoit-humidifiers.

kreeger avatar kreeger commented on August 17, 2024

So far as I can tell and based on my limited familiarity with the Vesync API (I sniffed out the request from their app using Charles on my phone), the API call to the Vesync API looks good and right, and mode should be set to "auto" (and it is!) — gonna check and see if debug mode gives me anything interesting.


Update: going from Humidity mode to Auto actually sets the switch to be off.

[12/8/2021, 12:28:45 AM] [Levoit Humidifiers] [DEBUG]: [SEND COMMAND] Sending command setSwitch to Humidifier with ({"enabled":false,"id":0})...

A couple additional observations:

  • If I switch to Auto (which turns it off), then hit Off (it stays off) and then Auto, it turns the humidifier back on, and in Auto mode (Sending command setSwitch to Humidifier with ({"enabled":true,"id":0})...)
  • If I switch to manual Humidity, and then Off (which turns it off), and then Auto, it turns the humidifier back on, but stays in manual Humidity mode

I don't know enough about the inner workings of Homebridge to fully diagnose, but it sounds like maybe there's some state management that's not being handled correctly, or a switch listener not being set properly?

from homebridge-levoit-humidifiers.

pschroeder89 avatar pschroeder89 commented on August 17, 2024

Thanks @kreeger. Still haven't taken a look, but that's very helpful. From your logs, it seems like switching to Auto is not calling changeMode, but setSwitch. I'll try to get to this in an hour or so

from homebridge-levoit-humidifiers.

pschroeder89 avatar pschroeder89 commented on August 17, 2024

I've published this fix in [email protected]

Here are the two PRs: #4 #5

The auto mode target level still can't be adjusted currently FWIW.

from homebridge-levoit-humidifiers.

kurktchiev avatar kurktchiev commented on August 17, 2024

seems to be working on my end as well. or at least it doesnt just shut itself off.

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.