Skip to content

Commit

Permalink
switcher fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DMITRYT authored and DMITRYT committed Dec 13, 2024
1 parent a506bc5 commit ee7f27c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ card_switcher:
ulm_card_switcher_timer_minutes: '[[[ return variables.ulm_card_switcher_timer_minutes ]]]'
ulm_card_switcher_timer_script: '[[[ return variables.ulm_card_switcher_timer_script ]]]'
ulm_card_switcher_auto_off: '[[[ return variables.ulm_card_switcher_auto_off ]]]'
ulm_card_switcher_timer_service: '[[[ return variables.ulm_card_switcher_timer_service ]]]'
#x_ulm_card_switcher_name: '[[[ return variables.x_ulm_card_switcher_name ]]]'
x_ulm_card_switcher_name: |
[[[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,16 @@ popup_switcher:
- "ulm_language_variables"
name: 'Timer'
tap_action:
# action: "call-service"
# service: "script.turn_on"
# service_data:
# entity_id: "[[[ return variables.ulm_card_switcher_timer_script ]]]"
action: "call-service"
service: "script.turn_on"
service_data:
entity_id: "[[[ return variables.ulm_card_switcher_timer_script ]]]"
service: "[[[ return variables.ulm_card_switcher_timer_service ]]]"
data:
timer_minutes: "[[[ return states[variables.ulm_card_switcher_timer_minutes].state ]]]"
target:
entity_id: "[[[ return variables.ulm_card_switcher_entity ]]]"
icon: "mdi:timer-outline"

- type: "custom:button-card"
Expand Down

0 comments on commit ee7f27c

Please sign in to comment.