torifat / xiaomi-mi-air-purifier

Homebridge plugin for Xiaomi Mi Air Purifier
Apache License 2.0
99 stars 15 forks source link

Deprecation of device.changeFanSpeed #365

Open realJustinLee opened 2 years ago

realJustinLee commented 2 years ago

This plugin threw an error from the characteristic 'Rotation Speed': Unhandled error thrown inside write handler for characteristic: device.changeFanSpeed is not a function. See https://homebridge.io/w/JtMGR for more info.

rajattrehan21 commented 2 years ago

I am having the same issue..

nenych commented 2 years ago

The same problem

horodchukanton commented 1 year ago

Adding debug logs:

 MiioDevice {
   model=zhimi.airpurifier.v7,
   types=miio:air-purifier, sensor, miio, air-purifier,
   capabilities=fan-speed, miio:buzzer, miio:led-brightness, miio:switchable-led, pm2.5, relative-humidity, temperature, switchable-mode, mode, switchable-power, restorable-state, power, state
 }
[7/1/2023, 3:03:36 PM] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Rotation Speed': Unhandled error thrown inside write handler for characteristic: device.changeFanSpeed is not a function. See https://homebridge.io/w/JtMGR for more info.
[7/1/2023, 3:03:36 PM] [homebridge-xiaomi-mi-air-purifier] TypeError: device.changeFanSpeed is not a function
     at RotationSpeed.setHandler (/homebridge/node_modules/homebridge-xiaomi-mi-air-purifier/src/characteristics/air-purifier/rotation-speed.ts:35:20)
     at processTicksAndRejections (node:internal/process/task_queues:95:5)