Openbeken esphome github. Then run it as usual: esphome compile xxx.

Openbeken esphome github. For each pin, you also set corresponding channel value.