2020-05-13 21:36:37 +00:00
|
|
|
substitutions:
|
|
|
|
device_id: basement_stair_lights_2
|
|
|
|
device_name: Basement Stair Lights 2
|
|
|
|
ip_address: !secret basement_stair_lights_2_ip
|
|
|
|
ota_pwd: !secret basement_stair_lights_2_ota_pwd
|
|
|
|
api_pwd: !secret basement_stair_lights_2_api_pwd
|
|
|
|
ap_wifi_pwd: !secret basement_stair_lights_2_ap_wifi_pwd
|
|
|
|
day_brightness: "1"
|
|
|
|
night_brightness: ".03"
|
2020-10-07 19:27:16 +00:00
|
|
|
day_auto_off_minutes: "0"
|
|
|
|
night_auto_off_minutes: "15"
|
2020-05-13 21:36:37 +00:00
|
|
|
linked_lights: "light.basement_stair_lights"
|
2021-01-26 21:27:47 +00:00
|
|
|
double_tap_while_off_stays_on: "false"
|
2020-05-13 21:36:37 +00:00
|
|
|
|
2020-10-07 19:27:16 +00:00
|
|
|
script:
|
|
|
|
- id: startup
|
|
|
|
then:
|
|
|
|
- lambda: |-
|
2021-01-26 21:27:47 +00:00
|
|
|
TuyaLight->add_double_tap_callback([]() { double_tap->execute(); });
|
|
|
|
|
|
|
|
- id: double_tap
|
|
|
|
then:
|
|
|
|
- homeassistant.service:
|
|
|
|
service: homeassistant.turn_off
|
|
|
|
data:
|
|
|
|
entity_id: switch.basement_tv, switch.xbox, light.basement_tv, light.basement, light.bar, switch.pool_table_light, light.basement_bathroom_light, light.basement_shower_light
|
2020-10-07 19:27:16 +00:00
|
|
|
|
|
|
|
packages:
|
|
|
|
feit_dimmer: !include ../packages/feit_dimmer.yaml
|