iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
395 stars 165 forks source link

Allow setting brightness values via config #422

Open davidbanham opened 11 months ago

davidbanham commented 11 months ago

This takes in minBrightness, maxBrightness and brightnessStep from the config file.

By using the standard convertBrightnessFromHomeKitToTuya function it also respects the value of scaleBrightness if it is set.

This allows the same accessory code to be used for both the Arlec Grid Connect Ceiling Fan and the Deta Grid Connect Smart Fan Speed Controller.

05TEVE commented 8 months ago

Hi @davidbanham, would it be possible to rebase this against the 3.1.0 branch and update the config-schema for this? Looking to pull this into the 3.1.0 release i am going to push out in the next few weeks (currently in beta).