Clean-up buttons

This commit is contained in:
Edward Firmo
2024-12-19 21:11:55 +01:00
parent 818c6067e0
commit 2e15149d3d
4 changed files with 44 additions and 35 deletions

View File

@@ -123,7 +123,7 @@ script:
then:
- binary_sensor.template.publish:
id: bs_swipe_left
state: ON
state: ON # yamllint disable-line rule:truthy
- delay: !lambda return nr_touch_duration->state;
- script.execute: touch_swipe_turn_off_binary_sensor
@@ -139,7 +139,7 @@ script:
then:
- binary_sensor.template.publish:
id: bs_swipe_right
state: ON
state: ON # yamllint disable-line rule:truthy
- delay: !lambda return nr_touch_duration->state;
- script.execute: touch_swipe_turn_off_binary_sensor
@@ -152,14 +152,14 @@ script:
then:
- binary_sensor.template.publish:
id: bs_swipe_left
state: OFF
state: OFF # yamllint disable-line rule:truthy
- if:
condition:
binary_sensor.is_on: bs_swipe_right
then:
- binary_sensor.template.publish:
id: bs_swipe_right
state: OFF
state: OFF # yamllint disable-line rule:truthy
switch:
- id: sw_touch_panel_power