I’m using Node Red in Home Assistant, with node-red-contrib-loxone to send comands to and receive data from my miniserver. Another way to receive commands from the miniserver is by using websockets in HA and a Virtual Output in the miniserver. The added benefit of using node-red-contrib-loxone is, you’ll see all available controls prefilled in the nodes.
If all you want is to control a fan, maybe you can have a look at ESPHome configuration for PWM to 0..10V output, sensor and control - #21 by leinich but I get it if you want to learn more about Loxone.