The config files for my esphome devices
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.4 KiB

esphome:
name: lounge_switch
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi-ssid
password: !secret wifi-password
logger:
api:
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Lounge Touchpad 1"
on_press:
then:
- output.turn_on: blue_led
on_release:
then:
- output.turn_off: blue_led
- platform: gpio
pin:
number: GPIO9
mode: INPUT_PULLUP
inverted: True
name: "Lounge Touchpad 2"
on_press:
then:
- output.turn_on: blue_led
on_release:
then:
- output.turn_off: blue_led
- platform: gpio
pin:
number: GPIO10
mode: INPUT_PULLUP
inverted: True
name: "Lounge Touchpad 3"
on_press:
then:
- output.turn_on: blue_led
on_release:
then:
- output.turn_off: blue_led
# - platform: status
# name: "Sonoff T1 UK 3 Gang Status"
switch:
- platform: gpio
name: "Lounge Relay 1"
pin: GPIO12
- platform: gpio
name: "Lounge Relay 2"
pin: GPIO5
- platform: gpio
name: "Lounge Relay 3"
pin: GPIO4
output:
# Register the blue LED as a dimmable output ....
- platform: esp8266_pwm
id: blue_led
pin: GPIO13
inverted: True
#light:
# # ... and then make a light out of it.
# - platform: monochromatic
# name: "Bedroom switch light"
# output: blue_led