ESPHome-Devices/basement_bathroom_shower_light_heater.yaml
ChNussbaum bd9b81baed Update wifi to power saving = none
Change all on/off lights from a switch to a binary light
Add kitchen bar lights and dining room light
2020-06-02 06:10:05 -05:00

66 lines
1.4 KiB
YAML

substitutions:
device_id: basement_bath_shower_light_heat
device_name: Basement Bathroom Shower Light and Heater
platform: ESP8266
board: esp01_1m
ip_address: !secret basement_bathroom_shower_light_heater_ip
ota_pwd: !secret basement_bathroom_shower_light_heater_ota_pwd
api_pwd: !secret basement_bathroom_shower_light_heater_api_pwd
ap_wifi_pwd: !secret basement_bathroom_shower_light_heater_ap_wifi_pwd
esphome:
<<: !include common/esphome.yaml
<<: !include common/common.yaml
<<: !include common/logger/logger_none.yaml
binary_sensor:
- !include common/binary_sensor/status.yaml
- platform: gpio
id: light_button
pin:
number: 12
mode: INPUT_PULLUP
on_press:
then:
- light.toggle: the_light
- platform: gpio
id: heater_button
pin:
number: 3
mode: INPUT_PULLUP
on_press:
then:
- switch.toggle: heater
light:
- platform: binary
id: the_light
name: "Basement Shower Light"
output: light_output
output:
- platform: gpio
id: light_output
pin: 13
sensor:
- !include common/sensor/uptime.yaml
- !include common/sensor/wifi.yaml
status_led:
pin:
number: 0
inverted: true
switch:
- !include common/switch/restart.yaml
- platform: gpio
id: heater
name: "Basement Bathroom Heater"
icon: mdi:radiator
pin: 4
text_sensor:
- !include common/text_sensor/version.yaml
- !include common/text_sensor/wifi.yaml