RaresAil / homebridge-levoit-air-purifier

A Homebridge platform plugin made for Levoit Air Purifiers which supports the following models: Core 200S/300S/400S/400S Pro
https://www.npmjs.com/package/homebridge-levoit-air-purifier
Apache License 2.0
64 stars 11 forks source link

Error setting purifier mode #92

Open kevinji opened 7 months ago

kevinji commented 7 months ago

Describe The Bug

All my commands setting the air purifier mode are producing errors (shown in logs below).

Expected behavior

No errors when setting the purifier mode.

Logs

Failed to send command setPurifierMode to Air Purifier Error: Converting circular structure to JSON
    --> starting at object with constructor 'ClientRequest'
    |     property 'res' -> object with constructor 'IncomingMessage'
    --- property 'req' closes the circle

Plugin Config

    {
        "name": "Levoit Air Purifiers",
        "email": "EMAIL",
        "password": "PASS",
        "platform": "LevoitAirPurifiers",
        "_bridge": {
            "username": "MAC",
            "port": PORT
        }
    }

Plugin Version

2.0.0

Homebridge Version

1.7.0

Node.js Version

20.12.0

NPM Version

10.5.0

Operating System

Raspberry Pi OS

RaresAil commented 6 months ago

What unit do you have?

kevinji commented 6 months ago

Core 200S.

RaresAil commented 6 months ago

Try upgrading to latest version of the plugin v3.0.1 and see if the errors still occurs, and i need more logs

kevinji commented 6 months ago

I'm still running into the issue with the new version. Is there somewhere I can look up for more detailed logs outside of the "Homebridge Logs" windows in the Homebridge website?