This commit is contained in:
darthsandmann 2023-01-01 14:12:39 +01:00
parent c74c45998c
commit ff461a4048
2 changed files with 27 additions and 20 deletions

View File

@ -31,12 +31,12 @@ script:
target:
entity_id: input_number.pos_left
# Restart/Start the timer
- service: timer.cancel
target:
entity_id: timer.pos_timer
- service: timer.start
target:
entity_id: timer.pos_timer
# - service: timer.cancel
# target:
# entity_id: timer.pos_timer
# - service: timer.start
# target:
# entity_id: timer.pos_timer
mode: single
#----------------------------------------------------------------------------------#
# Right
@ -70,12 +70,12 @@ script:
target:
entity_id: input_number.pos_right
# Restart/Start the timer
- service: timer.cancel
target:
entity_id: timer.pos_timer
- service: timer.start
target:
entity_id: timer.pos_timer
# - service: timer.cancel
# target:
# entity_id: timer.pos_timer
# - service: timer.start
# target:
# entity_id: timer.pos_timer
mode: single
#----------------------------------------------------------------------------------#

View File

@ -26,6 +26,13 @@ automation:
# Button Left: Pos Right
- alias: button_pos_right
trigger:
# Desk
- platform: device
domain: mqtt
device_id: 121e4230e41feb19254fa92ed5335760
type: action
subtype: "on"
discovery_id: 0x2c1165fffebebf6d action_on
# Bed
- platform: device
domain: mqtt
@ -52,12 +59,12 @@ automation:
- alias: button_up
trigger:
# Desk
- platform: device
domain: mqtt
device_id: 121e4230e41feb19254fa92ed5335760
type: action
subtype: "on"
discovery_id: 0x2c1165fffebebf6d action_on
#- platform: device
# domain: mqtt
# device_id: 121e4230e41feb19254fa92ed5335760
# type: action
# subtype: "on"
# discovery_id: 0x2c1165fffebebf6d action_on
# Bed
- platform: device
domain: mqtt