Guest User

Untitled

a guest
Jun 10th, 2019
1,681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. esphome:
  2. name: wemos1
  3. platform: ESP8266
  4. board: d1_mini
  5.  
  6. wifi:
  7. ssid: 'xxxxxxxxxxx'
  8. password: 'xxxxxxxx'
  9. manual_ip:
  10. # Set this to the IP of the ESP
  11. static_ip: 192.168.100.21
  12. # Set this to the IP address of the router. Often ends with .1
  13. gateway: 192.168.100.1
  14. # The subnet of the network. 255.255.255.0 works for most home networks.
  15. subnet: 255.255.255.0
  16.  
  17. # Enable logging
  18. logger:
  19.  
  20. # Enable Home Assistant API
  21. api:
  22. password: 'xxxxxxxx'
  23.  
  24. ota:
  25. password: 'xxxxxxxxxxx'
  26.  
  27. i2c:
  28. sda: D6
  29. scl: D7
  30. scan: False
  31.  
  32. uart:
  33. rx_pin: D4
  34. baud_rate: 9600
  35.  
  36.  
  37. sensor:
  38. - platform: bme280
  39. temperature:
  40. name: "BME280 Temperature"
  41. pressure:
  42. name: "BME280 Pressure"
  43. icon: "mdi:cloud-outline"
  44. humidity:
  45. name: "BME280 Humidity"
  46. address: 0x76
  47. update_interval: 60s
  48. - platform: wifi_signal
  49. name: "WiFi Signal Sensor"
  50. update_interval: 60s
  51. - platform: pmsx003
  52. type: PMSX003
  53. pm_1_0:
  54. name: "Particulate Matter <1.0ยตm Concentration"
  55.  
  56. binary_sensor:
  57. - platform: gpio
  58. pin: D5
  59. name: "PIR Sensor"
  60. device_class: motion
  61. - platform: gpio
  62. pin: D0
  63. name: "Microweave Sensor"
  64. device_class: motion
  65. - platform: status
  66. name: "wemos1_status"
  67.  
  68. switch:
  69. - platform: gpio
  70. pin:
  71. number: D3
  72. inverted: yes
  73. id: pms_set
  74.  
  75. interval:
  76. - interval: 60s
  77. then:
  78. - switch.turn_on: pms_set
  79. - delay: 5s
  80. - switch.turn_off: pms_set
Advertisement
Add Comment
Please, Sign In to add comment