esphome.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. esphome:
  2. name: protoboxer
  3. friendly_name: ProtoBoxer
  4. esp8266:
  5. board: esp01_1m
  6. # Enable logging
  7. logger:
  8. # Enable Home Assistant API
  9. api:
  10. encryption:
  11. key: "+t+IODNRTMX2AkJZyOGjmC+WBcwwmJ874iIhJVGKHuI="
  12. ota:
  13. password: "0377f5a51e4dd7dd46399327b569a261"
  14. wifi:
  15. ssid: !secret wifi_ssid
  16. password: !secret wifi_password
  17. # Enable fallback hotspot (captive portal) in case wifi connection fails
  18. ap:
  19. ssid: "ProtoBoxer Fallback Hotspot"
  20. password: "sCzNkwVVxOLP"
  21. captive_portal:
  22. sensor:
  23. - platform: dht
  24. pin: GPIO12
  25. temperature:
  26. name: "Room Temperature"
  27. humidity:
  28. name: "Room Humidity"
  29. update_interval: 30s
  30. - platform: adc
  31. pin: A0
  32. name: "ESP-2 Gas ADC"
  33. update_interval: 30s
  34. filters:
  35. - multiply: 100
  36. unit_of_measurement: "%"
  37. icon: "mdi:percent"
  38. light:
  39. - platform: binary
  40. name: "LED 1"
  41. output: light_output
  42. output:
  43. - id: light_output
  44. platform: gpio
  45. pin: GPIO14
  46. binary_sensor:
  47. - platform: gpio
  48. pin: GPIO10
  49. name: "Motion Sensor PIR"
  50. device_class: motion
  51. switch:
  52. - platform: gpio
  53. id: buzzer
  54. name: buzzer
  55. pin: GPIO5