Oh-toggle sending different command than ON/OFF

Hi you all,

how can I make a OH-toggle send the values 100/0 rather than ON/OFF?

BR

WR

Quick note: The Tutorials & Examples category is for posting your own complete solutions. Please move this to a more appropriate category for questions.

You cannot. Those commands are hard-coded into the toggle.

There are many workarounds for this. You could add a map Transform to your Item that converts ON → 100 and OFF → 0. You could create a proxy Item that is a Switch and have a rule that passes the correct value on to your real Item when you change the proxy Item. Instead of a toggle you could use any of the oh components that include OH actions and define your own toggle commands in that component. There are more advanced options too.