A while ago I started playing with Sonoff switches for use with HA. If you don’t know what they are you should have a look at them for your HA project. Very cheap and easy WiFi controlled relay in an easy to install unit based on a ESP8266 chip.
If you don’t need dimming, they are the way to go.
I created a Github repository for anyone who wants to get going fast with them. Have a look here -
Any questions or suggestions I would be happy to answer.
Hope this helps some people get going quickly.
***EDIT: I added additional code to use the Sonoff for Temp / Humidity sensor as well. More details at the Github repository.