config.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. esphome:
  2. name: ir-blaster
  3. esp8266:
  4. board: d1_mini
  5. wifi:
  6. networks:
  7. - ssid: !secret WifiSSID1
  8. password: !secret WifiPassword1
  9. - ssid: !secret WifiSSID2
  10. password: !secret WifiPassword2
  11. - ssid: !secret WifiSSID3
  12. password: !secret WifiPassword3
  13. # Enable logging
  14. logger:
  15. level: INFO
  16. # Enable Web server
  17. web_server:
  18. port: 80
  19. # Enable Home Assistant API
  20. #api:
  21. # reboot_timeout: 0s
  22. # encryption:
  23. # key: ""
  24. <<: !include mqtt.yaml
  25. ota:
  26. - platform: esphome
  27. password: !secret OtaPassword
  28. time:
  29. - platform: sntp
  30. id: sntp_time
  31. servers:
  32. - ptbtime1.ptb.de
  33. - ptbtime2.ptb.de
  34. - ptbtime3.ptb.de
  35. <<: !include data.yaml
  36. remote_receiver:
  37. pin:
  38. number: GPIO2
  39. inverted: True
  40. mode: INPUT_PULLUP
  41. dump: all
  42. # Change to dump: all to see all protocols, use dump: raw to see raw codes
  43. remote_transmitter:
  44. pin: GPIO04
  45. # Infrared remotes use a 50% carrier signal
  46. carrier_duty_percent: 50%
  47. sensor:
  48. # Extra sensor to keep track of plug uptime
  49. - platform: uptime
  50. name: Uptime Sensor
  51. - platform: wifi_signal
  52. name: "WiFi Signal Sensor"
  53. update_interval: 60s