With a rule. Make a switch for it in OH and with a rule send the ir codes if status changes to ON or OFF
In order to make it show up in homekit properly have a look at this Other homekit types through node-red - #2 by rlkoshak
Not sure AC is a type in homekit (don’t know them by hart) but you could map it to a fan for example.