Skip to content

Instantly share code, notes, and snippets.

@fabaff
Created December 30, 2019 09:53
Show Gist options
  • Save fabaff/70aaa9ad7178ca49c03b9bc62d69f472 to your computer and use it in GitHub Desktop.
Save fabaff/70aaa9ad7178ca49c03b9bc62d69f472 to your computer and use it in GitHub Desktop.
GAses sensor with ESPHome
esphome:
name: gas_quadrat
platform: ESP8266
board: nodemcuv2
logger:
level: VERBOSE
wifi:
ssid: SSID
password: PASSWORD
web_server:
port: 80
ota:
safe_mode: True
password: VERYSECURE
mqtt:
broker: 192.168.0.30
username: ''
password: ''
output:
- platform: esp8266_pwm
pin: 13
id: output_blue
- platform: esp8266_pwm
pin: 12
id: output_green
- platform: esp8266_pwm
pin: 15
id: output_red
binary_sensor:
- platform: status
name: "Gases Status"
- platform: gpio
pin: 4
name: "Gases Button"
device_class: opening
- platform: gpio
pin: 2
name: "CO2 threshold"
device_class: gas
- platform: gpio
pin: 5
name: "Smoke threshold"
device_class: gas
- platform: gpio
pin: 0
name: "Flame threshold"
device_class: problem
sensor:
- platform: wifi_signal
name: "Gases WiFi"
- platform: adc
pin: A0
name: "Gases Brightness"
- platform: dht
pin: 16
model: DHT11
temperature:
name: "Gases Temperature"
humidity:
name: "Gases Humidity"
update_interval: 15s
switch:
- platform: restart
name: "Gas Restart"
light:
- platform: rgb
name: "Gases Lights"
red: output_red
green: output_green
blue: output_blue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment