Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- substitutions:
- plug_name: esp_bed_light
- esphome:
- name: ${plug_name}
- platform: ESP8266
- board: esp8285
- wifi:
- ssid: "######"
- password: "########"
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- password: '########'
- ota:
- password: '############'
- # Enable logging
- web_server:
- port: 80
- time:
- - platform: homeassistant
- id: homeassistant_time
- binary_sensor:
- - platform: gpio
- pin:
- number: GPIO13
- inverted: True
- name: "${plug_name}_button"
- on_press:
- - switch.toggle: relay
- switch:
- - platform: gpio
- name: "${plug_name}_Relay"
- pin: GPIO12
- id: relay
- - platform: gpio
- name: "${plug_name}_LED_Red"
- pin: GPIO16
- inverted: True
- restore_mode: ALWAYS_OFF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement