Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

State stays in "Turning on..." or "Turning off..." in the Home app #22

Closed
NicholasRyanH opened this issue Jan 29, 2022 · 8 comments · Fixed by #23
Closed

State stays in "Turning on..." or "Turning off..." in the Home app #22

NicholasRyanH opened this issue Jan 29, 2022 · 8 comments · Fixed by #23
Assignees
Labels
Bug Something isn't working

Comments

@NicholasRyanH
Copy link

Describe The Bug

Only way for it to switch to showing On or Off is to exit the Home iOS app and then go back to it. Happens in both regular and child bridge modes.

Expected behavior

On or Off should stick.

Logs

[1/29/2022, 3:28:49 PM] [Levoit Air Purifiers] Launched child bridge with PID 4165
[1/29/2022, 3:28:49 PM] Registering platform 'homebridge-levoit-air-purifier.LevoitAirPurifiers'
[1/29/2022, 3:28:49 PM] [Levoit Air Purifiers] Loaded homebridge-levoit-air-purifier v1.1.8 child bridge successfully
[1/29/2022, 3:28:49 PM] Loaded 1 cached accessories from cachedAccessories.0E868D81DF80.
[1/29/2022, 3:28:49 PM] [Levoit Air Purifiers] [DEBUG]: [PLATFORM] Debug mode enabled
[1/29/2022, 3:28:49 PM] [Levoit Air Purifiers] Loading accessory from cache: Nick’s Air Purifier
DEPRECATED user supplied a custom 'mdns' option. This option is deprecated and ignored. Please move to the new 'bind' option.
[1/29/2022, 3:28:49 PM] [Levoit Air Purifiers] Connecting to the servers...
[1/29/2022, 3:28:49 PM] [Levoit Air Purifiers] [DEBUG]: [START SESSION] Starting auth session...
[1/29/2022, 3:28:49 PM] [Levoit Air Purifiers] [DEBUG]: [LOGIN] Logging in...
[1/29/2022, 3:28:49 PM] Homebridge v1.4.0 (HAP v0.10.0) (Levoit Air Purifiers) is running on port 34759.
[1/29/2022, 3:28:50 PM] [Levoit Air Purifiers] [DEBUG]: [LOGIN] The authentication success
[1/29/2022, 3:28:50 PM] [Levoit Air Purifiers] Discovering devices...
[1/29/2022, 3:28:51 PM] [Levoit Air Purifiers] [DEBUG]: [GET DEVICES] Device List -> JSON: [{"deviceRegion":"US","isOwner":true,"authKey":null,"deviceName":"Nick’s Air Purifier","deviceImg":"https://image.vesync.com/defaultImages/LAP-C201S-AUSR/icon_core200s_purifier_offline_us_160.png","cid":"vsaqfc23ea19438ea1224bc6029e52fe","deviceStatus":"off","connectionStatus":"online","connectionType":"wifi+BTOnboarding","deviceType":"LAP-C201S-AUSR","type":"wifi-air","uuid":"13d596bf-4d37-4f32-bbba-2b512977c522","configModule":"WFBO_APR_LAP-C201S-AUSR_US","macID":"94:3c:c6:5b:88:5a","mode":null,"speed":null,"extension":{"airQuality":-1,"airQualityLevel":1,"mode":"sleep","fanSpeedLevel":"1"},"currentFirmVersion":null,"subDeviceNo":null,"subDeviceType":null,"deviceFirstSetupTime":"Jan 25, 2022 5:11:20 AM","deviceProp":null}]
[1/29/2022, 3:28:51 PM] [Levoit Air Purifiers] [DEBUG]: [GET DEVICE INFO] Getting device info...
[1/29/2022, 3:28:52 PM] [Levoit Air Purifiers] Restoring existing accessory from cache: Nick’s Air Purifier
[1/29/2022, 3:28:56 PM] [TV] Cannot read properties of undefined (reading 'send')
[1/29/2022, 3:29:17 PM] [Levoit Air Purifiers] [DEBUG]: [SEND COMMAND] Sending command setSwitch to Nick’s Air Purifier with ({"enabled":true,"id":0})...
[1/29/2022, 3:29:18 PM] [Levoit Air Purifiers] [DEBUG]: [SEND COMMAND] Sending command setLevel to Nick’s Air Purifier with ({"level":3,"type":"wind","id":0})...
[1/29/2022, 3:30:38 PM] [Levoit Air Purifiers] [DEBUG]: [GET DEVICE INFO] Getting device info...
[1/29/2022, 3:30:41 PM] [Levoit Air Purifiers] [DEBUG]: [SEND COMMAND] Sending command setSwitch to Nick’s Air Purifier with ({"enabled":false,"id":0})...
[1/29/2022, 3:31:46 PM] [Levoit Air Purifiers] [DEBUG]: [GET DEVICE INFO] Getting device info...

Plugin Config

    {
        "name": "Levoit Air Purifiers",
        "email": "info@nrh.me",
        "password": "VLightsaber3!!C",
        "platform": "LevoitAirPurifiers",
        "enableDebugMode": true,
        "_bridge": {
            "username": "0E:86:8D:81:DF:80",
            "port": 34759
        }
    }

Plugin Version

1.1.8

Homebridge Version

1.4.0

Node.js Version

16.13.2

NPM Version

8.4.0

Operating System

Mac 10.15.7 / iOS 15.2.1

@NicholasRyanH NicholasRyanH added the Bug Something isn't working label Jan 29, 2022
@RaresAil
Copy link
Owner

Hello, i will work on a setting, to can disable waiting for a response from the device, this should fix your problem

@NicholasRyanH
Copy link
Author

NicholasRyanH commented Jan 31, 2022 via email

@RaresAil
Copy link
Owner

RaresAil commented Feb 5, 2022

The fix will be released this weekend along with another bug fix from the other opened issue

@NicholasRyanH
Copy link
Author

NicholasRyanH commented Feb 5, 2022 via email

@RaresAil
Copy link
Owner

RaresAil commented Feb 6, 2022

@NicholasRyanH I released the update, i am not 100% it will fix your problem, but let's see

@NicholasRyanH
Copy link
Author

NicholasRyanH commented Feb 7, 2022 via email

@RaresAil
Copy link
Owner

@NicholasRyanH I managed to fix the issue in this PR, and it will be released this week: #28

@NicholasRyanH
Copy link
Author

NicholasRyanH commented Mar 11, 2022 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants