If you could manage to get an “off” reply from the actuator - that would be the best solution.
I have a similar case, added a rule to automatically switch off after [ x ] ms.
ECMAScript 2022+
Trigger: When < item > changed to ON
setTimeout(() => {
console.log("Kompressor", "Autom. nach 5 Min. aus");
items.A_Kompressor.sendCommand("OFF")
}, 5*60*1000);