esphome.yaml 912 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. esphome:
  2. name: dht11sensor
  3. friendly_name: DHT11Sensor
  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: "Dht11Sensor 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: 15s
  30. light:
  31. - platform: binary
  32. name: "LED 1"
  33. output: light_output
  34. output:
  35. - id: light_output
  36. platform: gpio
  37. pin: GPIO14
  38. binary_sensor:
  39. - platform: gpio
  40. pin: GPIO10
  41. name: "Motion Sensor PIR"
  42. device_class: motion