Panasonic aircon connection wifi or modbus?

There is a PCC binding available; Panasonic Comfort Cloud binding [4.0.0.0;6.0.0.0)
Here is the OH4 version; Release Latest Build · seime/openhab-panasoniccomfortcloud · GitHub

I wrote this binding but I’ve moved away from using the PCC service due to breaking API changes and instabilities.

So I recommend you stick to anything that gives local control; Modbus, the Intesis, ESPHome or something else.

Also see Best Air Conditioner for OpenHAB integration in 2023 - #4 by seime