Created
March 14, 2022 00:14
-
-
Save sanghviharshit/a896028b56450331a91825e691679903 to your computer and use it in GitHub Desktop.
Multisensor config file for configuring the ESP8266 with bunch of sensors using ESPHome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: multisensor1 | |
platform: ESP8266 | |
board: nodemcuv2 | |
wifi: | |
ssid: My-AP | |
password: SecretPassword | |
api: | |
# Enable logging | |
logger: | |
ota: | |
sensor: | |
- platform: dht | |
model: DHT11 | |
pin: D7 | |
temperature: | |
name: "Multisensor Temperature" | |
filters: | |
- calibrate_linear: | |
- 0.0 -> 0.0 | |
- 25.7 -> 23.7 | |
humidity: | |
name: "Multisensor Humidity" | |
filters: | |
- calibrate_linear: | |
- 0 -> 0 | |
- 38 -> 41 | |
- platform: adc | |
pin: A0 | |
name: "Multisensor Brightness" | |
update_interval: 20s | |
unit_of_measurement: lx | |
filters: | |
- lambda: |- | |
return 200 - (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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment