torifat/xiaomi-mi-air-purifier

Deprecation of device.changeFanSpeed

Opened this issue · 3 comments

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.

I am having the same issue..

The same problem

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)