I suggest also to check this project https://community.home-assistant.io/t/diy-8-station-irrigation-based-on-esphome-on-kc868-a8-relay-board/459599