apexad / eufy-robovac

NodeJS library to control Eufy RoboVac
MIT License
60 stars 17 forks source link

Feature Request: Set the fan speed #30

Closed ip-rob closed 1 month ago

ip-rob commented 2 years ago

I noticed the plugin has a fan speed option setup, but the fan only shows up as an on/off. I am not familiar with plugin creation within this environment so I don't know how to configure the item in homebridge to allow for variable speeds. It seems if the speed can be set in the Home app, then some logic in the setCleanSpeed function like below would allow it to set the fan speed appropriately.

I'd be willing to work on the code portion if someone can suggest how to make the speed variable in the configuration.

let speeds = [[1, 34, 67], [33, 66, 100], [STANDARD, BOOST_IQ, MAX]] for (row of speeds) { if (cleanSpeed >= row[0] && cleanSpeed <= row[1]) { await this.doWork(async () => { await this.set({

        })
    });

} }

apexad commented 1 month ago

ios 18 has native vacuum support now so if this plugin is ever updated this issue is now irrelevant.