mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
Configure double taps
This commit is contained in:
parent
6396953331
commit
7a225b3b0b
@ -10,12 +10,20 @@ substitutions:
|
||||
day_auto_off_minutes: "0"
|
||||
night_auto_off_minutes: "15"
|
||||
linked_lights: "light.basement_stair_lights_2"
|
||||
double_tap_while_off_stays_on: "true"
|
||||
double_tap_while_off_stays_on: "false"
|
||||
|
||||
script:
|
||||
- id: startup
|
||||
then:
|
||||
- lambda: |-
|
||||
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
|
||||
|
||||
packages:
|
||||
feit_dimmer: !include ../packages/feit_dimmer.yaml
|
||||
|
@ -10,12 +10,20 @@ substitutions:
|
||||
day_auto_off_minutes: "0"
|
||||
night_auto_off_minutes: "15"
|
||||
linked_lights: "light.basement_stair_lights"
|
||||
double_tap_while_off_stays_on: "true"
|
||||
double_tap_while_off_stays_on: "false"
|
||||
|
||||
script:
|
||||
- id: startup
|
||||
then:
|
||||
- lambda: |-
|
||||
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
|
||||
|
||||
packages:
|
||||
feit_dimmer: !include ../packages/feit_dimmer.yaml
|
||||
|
@ -16,7 +16,7 @@ script:
|
||||
- id: startup
|
||||
then:
|
||||
- lambda: |-
|
||||
TuyaLight->add_double_tap_while_on_callback([]() { TuyaLight->set_auto_off_minutes(0); });
|
||||
TuyaLight->add_double_tap_while_off_callback([]() { TuyaLight->set_auto_off_minutes(0); });
|
||||
|
||||
packages:
|
||||
feit_dimmer: !include ../packages/feit_dimmer.yaml
|
||||
|
Loading…
x
Reference in New Issue
Block a user