rgerganov / py-air-control

Command line app for controlling Philips air purifiers
MIT License
256 stars 52 forks source link

Can't set "gentle" mode on AC2939/10 #83

Closed Steltek closed 3 years ago

Steltek commented 3 years ago

I can't seem to set gentle mode (GT) on my AC2939 as it is not accepted as valid parameter. Status when the device is in this mode:

[type]                        Type: AC2939
[modelid]                     ModelId: AC2939/10
[swversion]                   Version: Ms2102
[language]                    language: EN
[DeviceVersion]               DeviceVersion: 1.0.2
[om]                          Fan speed: 1
[pwr]                         Power: ON
[cl]                          Child lock: False
[aqil]                        Light brightness: 100
[uil]                         Buttons light: ON
[uaset]                       uaset: P
[mode]                        Mode: GT
[pm25]                        PM25: 1
[iaql]                        Allergen index: 1
[aqit]                        Air quality notification threshold: 4
[tvoc]                        Total volatile organic compounds: 1
[ddp]                         Used index: PM2.5
[rddp]                        rddp: 1
[fltt1]                       HEPA filter type: NanoProtect Filter Series 3 (FY2422)
[fltt2]                       Active carbon filter type: none
[fltsts0]                     Pre-filter and Wick: clean in 153 hours
[fltsts1]                     HEPA filter: replace in 4752 hours
[fltsts2]                     Active carbon filter: replace in 0 hours
[filna]                       filna: 0
[filid]                       filid: 0
[range]                       range: MarsLE
[Runtime]                     Runtime: 0.79 hours
[WifiVersion]                 WifiVersion: AWS_Philips_AIR@62.1
[ProductId]                   ProductId: b97ea7a8170b11eaa1e3061302926720
[DeviceId]                    DeviceId: [removed}
[StatusType]                  StatusType: localcontrol
[ConnectType]                 ConnectType: Localcontrol

Trying to set it:

# airctrl.py  --ipaddr [removed] --protocol coap --mode GT
airctrl.py: error: argument --mode: invalid choice: 'GT' (choose from 'P', 'A', 'AG', 'F', 'S', 'M', 'B', 'N', 'T')

All the other modes, Auto [AG], Turbo [T], and Night mode [S], work fine.

rgerganov commented 3 years ago

Thanks for the report, should be fixed now. Please let me know if it works for you with the latest code from github and if it does, I will release a new version on PyPI. Thanks!

Steltek commented 3 years ago

Works perfectly! Thanks for the quick fix!