-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add night mode support #81
Comments
I no longer work on features I don't have the hardware to verify, but adding a switch for night mode on the 411i should be pretty straight forward. first step would be to add the feature in https://github.com/dahlb/blueair_api which wraps the raw api and would need a new method to set the value in https://github.com/dahlb/blueair_api/blob/main/src/blueair_api/http_blueair.py finding the correct endpoint is the trickiest part and would probably require an android emulator and a jailbroken apk for blue air, mitm apk proxy is how I've done it in the past once it is added to the api repo you can add a switch in this repo that exposes and updates the value |
Ok so I figured it out pretty quickly by using stub.py and looking at the output. Like 'automode. the endpoint is just 'nightmode'. Not sure if this needs to be disabled depending on the model? I don't know what the others support. I can open a PR so you can take a look! |
I'll work on adding support to the home assistant integration now! |
Ok I have opened PR's in both repos. It seems to be working quite well right now when testing. |
great new feature, thanks for adding this. I made a small change to handle models like the classic series that don't have a night mode. v1.9.1 |
I finally got the proxy working, but the Blueair app doesn't want to connect through the proxy. Can you give me another pointer on how to get the app to work through the proxy? I'd like to get the PM1, PM2.5, PM10, tVOC, temperature, and humidity sensors working.
|
What model do you have? Some don't support it like the 411i Max. Check blueair's website maybe? I also didn't use the proxy, I just used stub.py which returns a bunch of debug info in the console. |
I have the Classic 680i, and all those sensors show in the BlueAir app. Sorry for being dense, but where do I find 'stub.py'? |
@SoccerCore11 this ticket is closed, please open a new ticket rather than discussing unrelated issues on a closed ticket |
Sorry last reply and then I’ll leave this issue since it’s closed but it’s under the Blueair_api repository that this integration uses |
Hi,
I have a 411i that works perfectly other than the fact I can’t set night mode from the integration. Is there any way it could be added or could I help add it?
Thanks
The text was updated successfully, but these errors were encountered: