Skip to content

Commit

Permalink
mv entity_id from template to lovelace
Browse files Browse the repository at this point in the history
  • Loading branch information
matt8707 committed Feb 12, 2022
1 parent 086a1a3 commit 3949eb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 2 additions & 5 deletions button_card_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@
show_name: false
show_state: true
tap_action:
services: >
restart: >
[[[
hass.callService('timer', 'cancel', {
entity_id: entity.entity_id
Expand All @@ -1334,14 +1334,11 @@
});
]]]
hold_action:
services: >
cancel: >
[[[
hass.callService('timer', 'cancel', {
entity_id: entity.entity_id
});
hass.callService('input_boolean', 'turn_off', {
entity_id: 'input_boolean.laundry_display'
});
]]]
styles:
card:
Expand Down
5 changes: 5 additions & 0 deletions ui-lovelace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ views:
card:
type: custom:button-card
entity: timer.laundry
hold_action:
action: call-service
service: input_boolean.turn_off
service_data:
entity_id: input_boolean.laundry_display
template: laundry

#################################################
Expand Down

0 comments on commit 3949eb9

Please sign in to comment.