Files
sarah/config/lovelace/button_card_templates/radiator_button.yaml
T
2020-12-08 10:40:40 +02:00

19 lines
415 B
YAML

radiator_button:
template: [default]
name: "Radiator"
icon: mdi:radiator
state:
- value: "off"
operator: "!="
styles:
card:
- background-color: var(--primary-color)
- color: black
icon:
- color: black
tap_action:
action: call-service
service: script.toggle_radiator
service_data:
entity_id: "[[[ return entity.entity_id ]]]"