I’m a bit lost.
I want to have a ShellSwitch or HomeduinoRFSwitch like button (on/off slider button), but I don’t want to execute some external command. I want to set an internal variable when I click the button like
"onCommand": "set $somevar = 1",
"offCommand": "set $Somevar = 0",
And then it switches state like mentioned for the shellswitch and HomeduinoRFSwitch buttons.
Note that I don’t want a buttonsdevice or so, because that does not reflect the state of the button immediately.
Can’t I see the forest for the trees with all the possible pimatic options and devices? Or is this not possible?