I built this project as an indicator for my home automation. I have a Raspberry Pi 2 with Domoticz installed. The system is z-wave controlled and I use a z-wave USB stick for that purpose. I needed to add a temperature and humidity sensor to my system and also some indication that will tell me which lights are ON while I am in my bedroom. I am using the NodeMCU with 5 LEDs and a DHT22 sensor. The software is ESPeasy, and no coding is required. Each LED is programmed for different lights in my house, and the blue LED is programmed for motion indication.
I used a scrap clear plastic tube with some end caps and a piece of plastic to hold the LEDs. I mounted the DHT22 to the back and drilled a hole for the power connector. You can make your assembly different as long as it is functional.
Download the ESPeasy firmware from letscontrolit.com. Follow the instructions to install using Arduino IDE for windows or Linux. https://www.letscontrolit.com/wiki/index.php/Tutorial_ESPEasy_Firmware_Upload
When you first install the firmware and reboot, you should be able to connect to ESP_0 using your phone or computer. The default WiFi password is 'configesp'. At the welcome screen, enter your home router WiFi name and password. Follow the examples below to finish the setup.
The blue LED is pin D4:
Follow the examples below to finish the setup. Go to Domoticz, click on SETUP then HARDWARE on the menu bar. Click on 'Create Virtual Sensor'.
Type the name of the sensor and also select Temp+Hum. Next go to SETUP then DEVICES, and write down the IDX number. This will be needed in ESPeasy.
To have Domoticz to send a signal to the NodeMCU, go to the required light device and click on EDIT. Enter the link as indicated on the image. The IP address will be different on your setup. Go back to ESPeasy and set the IDX number created by Domoticz. If everything is correct, the LEDs on your annunciator should turn ON and OFF in sync with the lights in your house. To show the weather in your area in Domoticz, you need to open an account with Weather Underground and setup a dummy switch.
Did you replicate this project? Share it!I made one
Love this project? Think it could be improved? Tell us what you think!