Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: tion-esp
- esp8266:
- board: d1_mini
- preferences:
- flash_write_interval: 15sec
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- password: !secret yellow_power_pass
- ota:
- password: !secret yellow_power_pass
- wifi:
- ssid: !secret ssid
- password: !secret wifi_pass
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Tion-esp Fallback Hotspot"
- password: "eBc6djnY8mRp"
- captive_portal:
- web_server:
- port: 80
- sensor:
- - platform: uptime
- name: Tion-esp uptime
- # Switch names contain one different latin letter each.
- # Their names are sanitized into urls with all cyrillic letters
- # simply erased, and spaces replaced with underscores.
- switch:
- - platform: gpio
- id: co2
- name: "Co2 sensor"
- icon: "mdi:gas-co2"
- pin: 4 # d2
- restore_mode: ALWAYS_ON
- time:
- - platform: sntp
- timezone: Europe/Moscow
- on_time:
- - seconds: 0
- minutes: 3
- hours: 3,6,10,12,14,16,18,20
- then:
- - switch.turn_off: co2
- - delay: 1s
- - switch.turn_on: co2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement