Go to file
BRUH Automation 32e7a2547e inital commit 2017-04-10 22:35:53 -04:00
bruh_mqtt_multisensor_github initial commit 2017-04-10 21:58:45 -04:00
BRUH Multisensor V1.123dx initial commit 2017-04-10 21:58:45 -04:00
BRUH Multisensor V1.PNG inital commit 2017-04-10 22:35:53 -04:00
BRUH Multisensor V1.stl initial commit 2017-04-10 21:58:45 -04:00
LICENSE Initial commit 2017-04-10 21:48:44 -04:00
README.md initial commit 2017-04-10 22:27:47 -04:00
example_home_assistant_configuration.yaml initial commit 2017-04-10 22:02:26 -04:00
wiring_diagram.png initial commit 2017-04-10 22:02:26 -04:00

README.md

ESP MQTT JSON Digital LEDs

This project shows a super easy way to get started with your own DIY Multisensor to use with Home Assistant, a sick, open-source Home Automation platform that can do just about anything.

The code covered in this repository utilizies Home Assistant's MQTT JSON Light Component, MQTT Sensor Component, and a NodeMCU ESP8266 development board.

Supported Features Include

  • DHT22 temperature sensor
  • DHT 22 humdidity sensor
  • AM312 PIR motion sensor
  • photoresistor or TEMT600 light sensor
  • *RGB led with support for color, flash, fade, and transition
  • Over-the-Air (OTA) ppload from the ArduinoID

OTA Uploading

This code also supports remote uploading to the ESP8266 using Arduino's OTA library. To utilize this, you'll need to first upload the sketch using the traditional USB method. However, if you need to update your code after that, your WIFI-connected ESP chip should show up as an option under Tools -> Port -> Porch at your.ip.address.xxx. More information on OTA uploading can be found here. Note: You cannot access the serial monitor over WIFI at this point.

Parts List

Amazon Prime (fast shipping)

Aliexpress (long shipping = cheap prices)

Wiring Diagram

alt text

Home Assistant Service Examples

Besides using the card in Home Assistant's user interface, you can also use the Services tool to control the light using the light.turn_on and light.turn_off services. This will let you play with the parameters you can call later in automations or scripts.

Fade the Light On Over 5 Seconds - light.turn_on

{"entity_id":"light.sn1_led",
"brightness":150,
"color_name":"blue",
"transition":"5"
}

Flash The Light - light.turn_on

{"entity_id":"light.sn1_led",
"color_name":"green",
"brightness":255,
"flash":"short"
}

Fade the Light Off Over 5 Seconds - light.turn_off

{"entity_id":"light.sn1_led",
"transition":"50"
}