Advertisement
gluk47

esp-usb

Jun 6th, 2022
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. esphome:
  2. name: tion-esp
  3.  
  4. esp8266:
  5. board: d1_mini
  6.  
  7. preferences:
  8. flash_write_interval: 15sec
  9.  
  10. # Enable logging
  11. logger:
  12.  
  13. # Enable Home Assistant API
  14. api:
  15. password: !secret yellow_power_pass
  16.  
  17. ota:
  18. password: !secret yellow_power_pass
  19.  
  20. wifi:
  21. ssid: !secret ssid
  22. password: !secret wifi_pass
  23.  
  24. # Enable fallback hotspot (captive portal) in case wifi connection fails
  25. ap:
  26. ssid: "Tion-esp Fallback Hotspot"
  27. password: "eBc6djnY8mRp"
  28.  
  29. captive_portal:
  30.  
  31. web_server:
  32. port: 80
  33.  
  34. sensor:
  35. - platform: uptime
  36. name: Tion-esp uptime
  37.  
  38. # Switch names contain one different latin letter each.
  39. # Their names are sanitized into urls with all cyrillic letters
  40. # simply erased, and spaces replaced with underscores.
  41. switch:
  42. - platform: gpio
  43. id: co2
  44. name: "Co2 sensor"
  45. icon: "mdi:gas-co2"
  46. pin: 4 # d2
  47. restore_mode: ALWAYS_ON
  48.  
  49. time:
  50. - platform: sntp
  51. timezone: Europe/Moscow
  52. on_time:
  53. - seconds: 0
  54. minutes: 3
  55. hours: 3,6,10,12,14,16,18,20
  56. then:
  57. - switch.turn_off: co2
  58. - delay: 1s
  59. - switch.turn_on: co2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement