Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
235 B
232
Indexable
Never
type: custom:button-card
entity: device_tracker.my_phone
name: Adam is
show_state: true
show_icon: false
style: |
  ha-card {
    background-color: {{ '#fc0303' if is_state('device_tracker.my_phone', 'not_home') else '#212121' }};
  }