DIY ESPHome Multisensor - Temp, Humidity, RGB LED, Motion and LUX


I built another multisensor for the bedroom and I decided to change up a few components.  Dive in and take a step by step approach to build it with Otto Winter's ESPHome software this time around as it's been a year since I built the initial Bruh Automation version.  ESPHome is easy to use and configure; No Arduino IDE, no coding, just a config file and the sensors wired up! 

Parts List Used 
NodeMCU
TSL2561 LUX Sensor  or Sensor#2
Jumper Wires
AM312 Motion Sensor
5mm Neopixel or  8mm Neopixel
DHT22 Temp/Humidity

Sample ESPHome YAML (replace the IP address and WiFi information)

esphomeyaml:
  name: sensor_node1
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: 'yourWIFIhere'
  password: 'yourPASShere'
  manual_ip:
    static_ip: 10.10.1.40  change this IP and remove this message
    gateway: 10.10.1.1
    subnet: 255.255.255.0
    dns1: 10.10.1.1
    dns2: 10.10.1.1
   
# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

sensor:
  - platform: dht
    pin: D7
    model: dht22   
    temperature:
      name: "SenseNode Temp"
    humidity:
      name: "SenseNode Humidity"
    update_interval: 30s
  - platform: tsl2561
    name: "SenseNode LUX"
    address: 0x39
    update_interval: 5s   
   
binary_sensor:
  - platform: gpio
    pin: D6
    name: "SenseNode Motion"
    device_class: motion
    on_press:
      then:
        - light.turn_on: ESPD4led   
    on_release:
      then:
        - light.turn_off: ESPD4led   
light:
  - platform: fastled_clockless
    chipset: WS2812
    pin: D3
    num_leds: 1
    rgb_order: RGB
    name: "SenseNode LED"
  - platform: binary
    name: "SenseNode D4Led"
    output: D4led
    id: ESPD4led
   
i2c:
  sda: D2
  scl: D1
  scan: False
 
output:
  - platform: gpio
    pin: D4
    id: D4led
    inverted: True

3D Cases Used
https://www.thingiverse.com/thing:2361388
https://www.thingiverse.com/thing:2477685

Huge shout out to Bruh Automation for starting me on this ESP8266 journey on the first version of this multisensor a year ago.

Comments

  1. I have built 10 of these. They have been workig great until a few days ago.
    I live in Arizona where the heat is 110+ today.
    My wall plugs are now starting to fail, I think due to the extra heat. Is there a wall plug on Amazon that you would recommend for powering the esp8266.

    Also where in a room would you place the units (on a counter, up high near the ceiling) to get the best readings.

    ReplyDelete

Post a Comment