Great that you got it solved.
It would be so much better if I could step up my Javascript and define all the buttons etc in the beginning of the file, so that everything doesn’t have to be doublechecked.
Also it would be better if “devices[x]” didn’t have to be included in each switch/device check, because when you add things to config, it might change the device[x] id too.
I will work on a second version at some point, but currently am kind of overburdened with other things …