How to add a map to a rule

I have a rule that is kinda working the problem is that i need to execute the map file but idk how i can do that i have tried in different ways but with no success. I have the file test.map that is what makes the HU command work but cant make it work.

rule “test”
when
Item test1 changed to OFF
then {
test2.sendCommand(OFF)
createTimer(now.plusSeconds(5)) [
test1.sendCommand(HU)]}
end

It isn’t totally clear, but do you mean you want to map the OFF to some String using a .map file? If so

test1.sendCommand(transform("MAP", "test.map", "OFF"))