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 ]]]"
