Looks like this might be the answer: https://community.home-assistant.io/t/using-an-esp8266-dual-relay-combo-board-with-home-assistant/218757