You could go wild and have this pair of rules for your amp
rule "YamahaKeuken Toggle"
when
Channel 'velbus:vmbgpod:bridge:18:input#CH8' triggered PRESSED // Could be RELEASED or LONG_PRESSED
then
if (Yamaha.state == ON){
Yamaha.sendCommand(OFF)
}
else
{
Yamaha.sendCommand(ON)
}
end
rule "Yamaha state to feedback"
when
Item Yamaha changed
then
if (Yamaha.state==ON){
OLED18ch8Feedback.sendCommand("SET_LED")
}
else
{
OLED18ch8Feedback.sendCommand("CLEAR_LED")
}
end
Possible states for feedback LEDs are
- CLEAR_LED
- SET_LED
- SLOW_BLINK_LED
- FAST_BLINK_LED
- VERY_FAST_BLINK_LED