Hi,
This is the rule I’m going to try.
As Rich advises, it’s better to reduce the repeats.
rule "map cooler channel" when
Channel "velbus:vmbgp2:c5053467:1C:thermostat#COOLER" triggered
then
if (receivedEvent.Event.toString == "pressed") { AirCon.sendCommand(ON) }
if (receivedEvent.Event.toString == "released") { AirCon.sendCommand(OFF) }
end
(I’ll amend this rule here as required)