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!
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!