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
60 stars 11 forks source link

Support for Vital 100S #54

Closed eoddc5 closed 5 months ago

eoddc5 commented 1 year ago

Describe The Bug

As with the Vital 200S, the Vital 100S is a new model from levoit and would be awesome to have support for it.

Hopefully the whole vital line can be added and supported

Expected behavior

Na

Logs

Na

Plugin Config

Na

Plugin Version

Na

Homebridge Version

Na

Node.js Version

Na

NPM Version

Na

Operating System

Na

RaresAil commented 1 year ago

Hey @eoddc5 do you have any logs for that device?

Dxtros commented 1 year ago

@RaresAil I have a vital 100s and was looking to use this to connect it to my home bridge. I'm not sure how to get the logs you asked for, but if you can tell me how I would be happy to provide that.

Dxtros commented 1 year ago

I think i found the logs let me know if this is what you're looking for

`Loading logs using "custom" method... CMD: pm2 logs --raw --out --lines 80 homebridge

[TAILING] Tailing last 80 lines for [homebridge] process (change the value with --lines option) /root/.pm2/logs/homebridge-out.log last 80 lines: [5/11/2023, 11:42:30 PM] Loaded plugin: homebridge-config-ui-x@4.50.2 [5/11/2023, 11:42:30 PM] Registering platform 'homebridge-config-ui-x.config' [5/11/2023, 11:42:30 PM] --- [5/11/2023, 11:42:30 PM] Loaded plugin: homebridge-govee@7.9.3 [5/11/2023, 11:42:30 PM] Registering platform 'homebridge-govee.Govee' [5/11/2023, 11:42:30 PM] --- [5/11/2023, 11:42:30 PM] Loaded plugin: homebridge-levoit-air-purifier@1.3.0 [5/11/2023, 11:42:30 PM] Registering platform 'homebridge-levoit-air-purifier.LevoitAirPurifiers' [5/11/2023, 11:42:30 PM] --- [5/11/2023, 11:42:30 PM] Loading 3 platforms... [5/11/2023, 11:42:30 PM] [Config] Initializing config platform... [5/11/2023, 11:42:30 PM] [Config] Spawning homebridge-config-ui-x with PID 44589 [5/11/2023, 11:42:30 PM] [Govee] Initializing Govee platform... [5/11/2023, 11:42:30 PM] [Govee] Initialising plugin v7.9.3 | System freebsd | Node v16.19.0 | HB v1.6.0 | HAPNodeJS v0.11.0... [5/11/2023, 11:42:30 PM] [Levoit Air Purifiers] Initializing LevoitAirPurifiers platform... [5/11/2023, 11:42:30 PM] Failed to find plugin to handle accessory Troy [5/11/2023, 11:42:30 PM] Removing orphaned accessory Troy [5/11/2023, 11:42:30 PM] [Govee] Plugin initialised. Setting up accessories.... [5/11/2023, 11:42:30 PM] [Levoit Air Purifiers] Connecting to the servers... [5/11/2023, 11:42:30 PM] Publishing bridge accessory (name: Homebridge, publishInfo: {

category: 2, bind: undefined, mdns: undefined, addIdentifyingMaterial: true, advertiser: undefined }). Setup Payload: X-HM://00242S4KT6YQN [5/11/2023, 11:42:30 PM] Homebridge v1.6.0 (HAP v0.11.0) (Homebridge) is running on port **. [5/11/2023, 11:42:30 PM] [Govee] [LAN] server started listening on *****. [5/11/2023, 11:42:30 PM] [Govee] [LAN] scanning for devices over LAN... [5/11/2023, 11:42:31 PM] [Levoit Air Purifiers] Discovering devices... [5/11/2023, 11:42:32 PM] [Govee] [LAN] client enabled and found 0 device(s). [5/11/2023, 11:42:32 PM] [Govee] [HTTP] retrieved access token from cache. [5/11/2023, 11:42:33 PM] [Govee] [HTTP] client enabled and found 2 device(s). [5/11/2023, 11:42:33 PM] [Govee] [AWS] client enabled. [5/11/2023, 11:42:33 PM] [Govee] [AWS] connect event. [5/11/2023, 11:42:34 PM] [Govee] [API] client enabled and found 1 device(s). [5/11/2023, 11:42:34 PM] [Govee] [Desk bar lights] initialising with options {"adaptiveLightingShift":0,"aws":"enabled","ble":"disabled","brightnessStep":1,"colourSafeMode":false,"lan":"unsupported"}. [5/11/2023, 11:42:34 PM] [Govee] [Desk bar lights] initialised with id [52:AD:C9:32:37:36:37:1C] [H6056]. [5/11/2023, 11:42:34 PM] [Govee] [Desk] initialising with options {"adaptiveLightingShift":0,"aws":"unsupported","ble":"disabled","brightnessStep":1,"colourSafeMode":false,"lan":"unsupported"}. [5/11/2023, 11:42:34 PM] [Govee] [Desk] initialised with id [05:43:7C:A6:B0:9C:C8:36] [H613A]. [5/11/2023, 11:42:36 PM] [Govee] ✓ Setup complete. This plugin has been made with ♥ by bwp91 from the UK! `

RaresAil commented 1 year ago

@Delaski you need to enable debug mode for the plugin: https://github.com/RaresAil/homebridge-levoit-air-purifier#enabling-debug-mode

Dxtros commented 1 year ago

@RaresAil ok, so i need to enable debug mode then collect the logs at start up through the home-bridge logs menu?

RaresAil commented 1 year ago

And run some commands

Dxtros commented 1 year ago

@RaresAil Sorry again i’m not too knowledgeable, but i know how to insert the code you provided into the config. If you provided me with the commands you would like to see i can punch those in and send you the results. Or are you referring to sending commands to my air purifier and looking for an output.

Dxtros commented 1 year ago

Heres the start up logs with debug enabled:

Loading logs using "custom" method... CMD: pm2 logs --raw --out --lines 80 homebridge

[TAILING] Tailing last 80 lines for [homebridge] process (change the value with --lines option) /root/.pm2/logs/homebridge-out.log last 80 lines: [5/21/2023, 1:04:53 PM] Loaded plugin: homebridge-govee@7.9.3 [5/21/2023, 1:04:53 PM] Registering platform 'homebridge-govee.Govee' [5/21/2023, 1:04:53 PM] --- [5/21/2023, 1:04:53 PM] Loaded plugin: homebridge-levoit-air-purifier@1.3.0 [5/21/2023, 1:04:53 PM] Registering platform 'homebridge-levoit-air-purifier.LevoitAirPurifiers' [5/21/2023, 1:04:53 PM] --- [5/21/2023, 1:04:53 PM] Loading 3 platforms... [5/21/2023, 1:04:53 PM] [Config] Initializing config platform... [5/21/2023, 1:04:53 PM] [Config] Spawning homebridge-config-ui-x with PID xxxxxx [5/21/2023, 1:04:53 PM] [Govee] Initializing Govee platform... [5/21/2023, 1:04:53 PM] [Govee] Initialising plugin v7.9.3 | System freebsd | Node v16.19.0 | HB v1.6.0 | HAPNodeJS v0.11.0... [5/21/2023, 1:04:53 PM] [Levoit Air Purifiers] Initializing LevoitAirPurifiers platform... [5/21/2023, 1:04:53 PM] [Levoit Air Purifiers] [DEBUG]: [PLATFORM] Debug mode enabled [5/21/2023, 1:04:53 PM] [Govee] Plugin initialised. Setting up accessories.... [5/21/2023, 1:04:53 PM] [Levoit Air Purifiers] Connecting to the servers... [5/21/2023, 1:04:53 PM] [Levoit Air Purifiers] [DEBUG]: [START SESSION] Starting auth session... [5/21/2023, 1:04:53 PM] [Levoit Air Purifiers] [DEBUG]: [LOGIN] Logging in... [5/21/2023, 1:04:53 PM] Publishing bridge accessory (name: Homebridge, publishInfo: { username: 'xxxxxxxxxx', port: xxxxxxxxxx, pincode: '*-*-', category: 2, bind: undefined, mdns: undefined, addIdentifyingMaterial: true, advertiser: undefined }). Setup Payload: X-HM://00242S4KT6YQN Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ xxxxxxxxx│     
└────────────┘     

[5/21/2023, 1:04:53 PM] Homebridge v1.6.0 (HAP v0.11.0) (Homebridge) is running on portxxxxx. [5/21/2023, 1:04:53 PM] [Govee] [LAN] server started listening on xxxxxxxx. [5/21/2023, 1:04:53 PM] [Govee] [LAN] scanning for devices over LAN... [5/21/2023, 1:04:53 PM] [Levoit Air Purifiers] [DEBUG]: [LOGIN] The authentication success [5/21/2023, 1:04:54 PM] [Levoit Air Purifiers] Discovering devices... [5/21/2023, 1:04:54 PM] [Levoit Air Purifiers] [DEBUG]: [GET DEVICES] Device List -> JSON: [{"deviceRegion":"US","isOwner":true,"authKey":null,"deviceName":"Troy","deviceImg":"https://image.vesync.com/defaultImages/deviceDefaultImages/vs_wfon_apr_lap_v102s.png","cid":"vsaqf7a34fc42d3806c6ba20f6b0ff56","deviceStatus":null,"connectionStatus":null,"connectionType":"WiFi+BTOnboarding+BTNotify","deviceType":"LAP-V102S-WUS","type":"wifi-air","uuid":"1513234f-ae69-4901-bb39-398f2ec645fe","configModule":"VS_WFON_APR_LAP-V102S-WUS_US","macID":"60:55:f9:b3:38:2c","mode":null,"speed":null,"currentFirmVersion":null,"subDeviceNo":null,"subDeviceType":null,"deviceFirstSetupTime":"May 12, 2023 3:26:58 AM","subDeviceList":null,"extension":null,"deviceProp":{"workMode":"manual","AQLevel":1,"BTMac":"60:55:f9:b3:38:2e","PM25":1,"fanSpeedLevel":255,"powerSwitch":0,"wifiRssi":-36,"wifiMac":"60:55:f9:b3:38:2c","connectionStatus":"online"}}] [5/21/2023, 1:04:55 PM] [Govee] [LAN] client enabled and found 0 device(s). [5/21/2023, 1:04:55 PM] [Govee] [HTTP] retrieved access token from cache. [5/21/2023, 1:04:56 PM] [Govee] [HTTP] client enabled and found 2 device(s). [5/21/2023, 1:04:56 PM] [Govee] [AWS] client enabled. [5/21/2023, 1:04:56 PM] [Govee] [AWS] connect event. [5/21/2023, 1:04:56 PM] [Govee] [API] client enabled and found 1 device(s). [5/21/2023, 1:04:57 PM] [Govee] [Desk bar lights] initialising with options {"adaptiveLightingShift":0,"aws":"enabled","ble":"disabled","brightnessStep":1,"colourSafeMode":false,"lan":"unsupported"}. [5/21/2023, 1:04:57 PM] [Govee] [Desk bar lights] initialised with id [52:AD:C9:32:37:36:37:1C] [H6056]. [5/21/2023, 1:04:57 PM] [Govee] [Desk] initialising with options {"adaptiveLightingShift":0,"aws":"unsupported","ble":"disabled","brightnessStep":1,"colourSafeMode":false,"lan":"unsupported"}. [5/21/2023, 1:04:57 PM] [Govee] [Desk] initialised with id [05:43:7C:A6:B0:9C:C8:36] [H613A]. [5/21/2023, 1:04:59 PM] [Govee] ✓ Setup complete. Have time to give this plugin a review? https://bit.ly/hb-govee-review

Looks like it found my air purifier (named troy) but it isnt showing up when i go to homekit on my phone. Let me know if you need anything else.

RaresAil commented 1 year ago

@Delaski Thank you, it is showing there but is not yet supported, can you tell me what features does it have and speed? and a similar model but from the Core family? Like it has same features like Core 300

RaresAil commented 1 year ago

@Delaski After check, this will be implemented after Everest support because they use the same data pattern

Dxtros commented 1 year ago

@RaresAil Ive included screenshot of the features on the app i believe it is similiar to the supported ones. 5D8EFFBF-7244-4540-83CD-498A49123DA6 38E918D5-86AF-41F5-8876-853AB1DCCE86

shipham2302 commented 1 year ago

Any update on this? Currently using the 100S so if you need anything for testing let me know 😀

Jannik-Tauber commented 8 months ago

Hello, I also use the Vital 100s and have the information from the debug mode here again. The device does not appear in the Homebridge or the Home app.

Greetings Jannik

[DEBUG]: [GET DEVICES] Device List -> JSON: [{"deviceRegion":"EU","isOwner":true,"authKey":null,"deviceName":"Vital 100s","deviceImg":"https://image.vesync.com/defaultImages/deviceDefaultImages/vs_wfon_apr_lap_v102s.png","cid":"vsaqf53abff49e1b387945a62e2f5bdc","deviceStatus":null,"connectionStatus":null,"connectionType":"WiFi+BTOnboarding+BTNotify","deviceType":"LAP-V102S-WEU","type":"wifi-air","uuid":"4721b931-a5e6-4376-abfe-a600ccf5dc6e","configModule":"VS_WFON_APR_LAP-V102S-WEU_EU","macID":"64:e8:33:de:0f:04","mode":null,"speed":null,"currentFirmVersion":null,"subDeviceNo":null,"subDeviceType":null,"deviceFirstSetupTime":"Jan 2, 2024 11:30:37 AM","subDeviceList":null,"extension":null,"deviceProp":{"wifiRssi":-37,"powerSwitch":1,"fanSpeedLevel":0,"PM25":1,"AQLevel":1,"BTMac":"64:e8:33:de:0f:06","workMode":"auto","wifiMac":"64:e8:33:de:0f:04","connectionStatus":"online"}}]

megaphonixmusic commented 8 months ago

+1 request for 100S support (if possible). I also have a 100S and am happy to help provide feedback/testing.

MrAnnoymous commented 8 months ago

+1 request for 100S support (if possible).

m4r1k commented 6 months ago

Same for me here, support for Vital 100S and 200S would be much appreciated

Brandawg93 commented 5 months ago

91

RaresAil commented 5 months ago

This should work in v3