How to hookup and control a fan in openhab 2
Any more details?
The answer to your question is: “The same way you rob a bank, just knowing the name of the bank.”
The docs for the controller
Page 87 has example code for the Arduino
It shouldn’t be too difficult to adapt to an ESP8266 or ESP32 with MQTT