we have added D1-D6 control by home assistant. here are files updated. just copy plugin file to your esphome folder as photo. yaml file demo config use for D1,D2, you can add until D6 for KC868-HA. You can test it, whether is your need.
kc868-1.0.0-beta.zip (Size: 4.14 KB / Downloads: 157)
kc868-1.0.0-beta.zip (Size: 4.14 KB / Downloads: 157)