Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: hassio
- platform: ESP8266
- board: esp01_1m
- wifi:
- ssid: "DaRouter_Lounge"
- password: "secret"
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- web_server:
- port: 80
- binary_sensor:
- - platform: gpio
- pin:
- number: GPIO0
- mode: INPUT_PULLUP
- inverted: True
- name: "Hassio Button"
- on_press:
- - switch.toggle: relay
- internal: true
- switch:
- - platform: gpio
- pin: GPIO12
- id: relay
- restore_mode: ALWAYS_ON
- internal: true
- - platform: template
- name: "Hassio Power Cycle"
- turn_on_action:
- - switch.turn_off: relay
- - delay: 5000ms
- - switch.turn_on: relay
- time:
- - platform: sntp
- id: sntp_time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement