Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: wemos1
- platform: ESP8266
- board: d1_mini
- wifi:
- ssid: 'xxxxxxxxxxx'
- password: 'xxxxxxxx'
- manual_ip:
- # Set this to the IP of the ESP
- static_ip: 192.168.100.21
- # Set this to the IP address of the router. Often ends with .1
- gateway: 192.168.100.1
- # The subnet of the network. 255.255.255.0 works for most home networks.
- subnet: 255.255.255.0
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- password: 'xxxxxxxx'
- ota:
- password: 'xxxxxxxxxxx'
- i2c:
- sda: D6
- scl: D7
- scan: False
- uart:
- rx_pin: D4
- baud_rate: 9600
- sensor:
- - platform: bme280
- temperature:
- name: "BME280 Temperature"
- pressure:
- name: "BME280 Pressure"
- icon: "mdi:cloud-outline"
- humidity:
- name: "BME280 Humidity"
- address: 0x76
- update_interval: 60s
- - platform: wifi_signal
- name: "WiFi Signal Sensor"
- update_interval: 60s
- - platform: pmsx003
- type: PMSX003
- pm_1_0:
- name: "Particulate Matter <1.0ยตm Concentration"
- binary_sensor:
- - platform: gpio
- pin: D5
- name: "PIR Sensor"
- device_class: motion
- - platform: gpio
- pin: D0
- name: "Microweave Sensor"
- device_class: motion
- - platform: status
- name: "wemos1_status"
- switch:
- - platform: gpio
- pin:
- number: D3
- inverted: yes
- id: pms_set
- interval:
- - interval: 60s
- then:
- - switch.turn_on: pms_set
- - delay: 5s
- - switch.turn_off: pms_set
Advertisement
Add Comment
Please, Sign In to add comment