ESPHome-Devices/dining_room_light.yaml
2020-03-22 09:04:38 -05:00

45 lines
1.0 KiB
YAML

substitutions:
device_id: dining_room_light
device_name: Dining Room Light
platform: ESP8266
board: esp01_1m
ip_address: !secret dining_room_light_ip
ota_pwd: !secret dining_room_light_ota_pwd
api_pwd: !secret dining_room_light_api_pwd
ap_wifi_pwd: !secret dining_room_light_ap_wifi_pwd
day_level: '100'
night_level: '10'
esphome:
<<: !include common/esphome.yaml
includes:
- gosund_sw2_dimmer.h
<<: !include common/common_gosund_dimmer.yaml
<<: !include common/logger/logger_debug_no_serial.yaml
binary_sensor:
- !include common/binary_sensor/status.yaml
- !include common/binary_sensor/day_night.yaml
- !include common/binary_sensor/gosund_dimmer_button.yaml
sensor:
- !include common/sensor/uptime.yaml
- !include common/sensor/wifi.yaml
switch:
- !include common/switch/restart.yaml
text_sensor:
- !include common/text_sensor/version.yaml
- !include common/text_sensor/wifi.yaml
script:
- id: single_tap
then:
- logger.log: "Single Tap"
- id: double_tap
then:
- logger.log: "Double Tap"