May
18th,
2019
Why…
Home automation is adictive…once you have your first device installed, it’s a slipery slope. You will start integrating everything, and since there is so much diversity of devices in your house, you will need a bunch of sensors and actuators. This is a standard box that I am placing on every room of the house to have a baseline of capabilities:
- temperature and humidity AM2302
- light sensor TSL2561
- microwave radar movement sensor (RCWL-0516) (here is a review)
Pre-requisites
You have an instance of Home Assistance with ESPHome ready. There is plenty of tutorial about this on the internet.
Hardware
list of components used
- 1 x Wemos D1 mini
- 1 x AM2302
- 1 x TSL2561
- 1 x RCWL-0516
- 1 x plastic container
I put it together like this:
And fit it into a plastic container
Software
microcontrolled side
- create a new ESPHome device, I called this one garage_toolbox.
- Edit the esphome garage_toolbox.yaml file so it looks like this:
- Compile, download the binary and flash ESPHome (again, there is plenty of tutorials about this out there)
After flashing the ESPhome image the micontroller will restart and connect to the wifi.
home assistant configuration
- the autodiscovery should take care of finding the new ESPHome device, go to Integrations and you should be able to add it from there.