agoodshort / homebridge-wled-preset

A Homebridge plugin controlling WLED presets
Apache License 2.0
7 stars 0 forks source link

Give Presets names that show up in homekit instead of Preset 1, Preset 2 .... #20

Open T0W0-L0L opened 1 year ago

T0W0-L0L commented 1 year ago

Hi Goodshort,

If you ever decide to continue on this project I would love it if you added the option to give presets names. You could just add an array in the config file from which you take the names instead of how you do it now. One variable which would be what you have now by default and if people add names you can check the amount of items in the array by the number of presets given, and you can pass that through to homebridge and so on to homekit so the presets would be displayed accordingly to their names.

//By default the preset names will be Preset 1, Preset 2 and so on but you can change them down below, though make sure to add the correct number of names! presetnames: [ "Rainbow", "White", "Blue", "Ambient" ]

I trust you know how to code this but just an idea of how it would look!

Good luck coding and remember to have fun while doing it!

bite127 commented 1 year ago

I would love to see that coming. That would be so helpful.