esphome-docs/cookbook/bruh.rst

89 lines
1.9 KiB
ReStructuredText
Raw Normal View History

2018-06-01 18:10:00 +02:00
BRUH Multisensor
================
2018-11-14 22:12:27 +01:00
.. seo::
2019-02-16 23:25:23 +01:00
:description: Instructions for re-creating a BRUH multisensor using ESPHome.
2018-11-14 22:12:27 +01:00
:image: bruh.png
2018-06-01 18:10:00 +02:00
The BRUH Multisensor is a great introductory project into Home Automation with an
2019-02-16 23:25:23 +01:00
amazing setup tutorial. And fortunately ESPHome has complete support for all the
2018-06-01 18:10:00 +02:00
stuff used by the Multisensor 🎉
.. raw:: html
<iframe width="560" height="315" src="https://www.youtube.com/embed/jpjfVc-9IrQ" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
Thank you very much to `@jackjohnsonuk <https://github.com/jackjohnsonuk>`__ for providing this
configuration file 😀
.. code-block:: yaml
2018-06-01 18:10:00 +02:00
2019-02-16 23:25:23 +01:00
esphome:
2018-06-01 18:10:00 +02:00
name: <NODE_NAME>
platform: ESP8266
board: nodemcuv2
wifi:
ssid: <SSID>
password: <PASSWORD>
2019-02-17 12:28:17 +01:00
api:
2018-06-01 18:10:00 +02:00
# Enable logging
logger:
ota:
sensor:
- platform: dht
pin: D7
temperature:
name: "Multisensor Temperature"
humidity:
name: "Multisensor Humidity"
- platform: adc
pin: A0
name: "Multisensor Brightness"
unit_of_measurement: lux
filters:
2019-01-06 18:56:14 +01:00
- lambda: |-
2018-06-01 18:10:00 +02:00
return (x / 10000.0) * 2000000.0;
binary_sensor:
- platform: gpio
pin: D5
name: "Multisensor Motion"
device_class: motion
output:
- platform: esp8266_pwm
pin: D1
id: redgpio
- platform: esp8266_pwm
pin: D2
id: greengpio
- platform: esp8266_pwm
pin: D3
id: bluegpio
light:
- platform: rgb
name: "Multisensor Light"
red: redgpio
green: greengpio
blue: bluegpio
See Also
2018-08-24 22:44:01 +02:00
--------
2018-06-01 18:10:00 +02:00
- :doc:`/devices/nodemcu_esp8266`
2018-06-01 18:10:00 +02:00
- :doc:`pir`
- :doc:`temt6000`
- :doc:`/components/light/rgb`
- :doc:`/components/output/esp8266_pwm`
- :doc:`/components/sensor/dht`
- :doc:`/components/sensor/adc`
- :doc:`/components/binary_sensor/gpio`
- :ghedit:`Edit`