Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
465 B
1
Indexable
Never
type: entities
entities:
  - entity: input_boolean.mailbox
    name: Pošta v schránke
    type: custom:secondaryinfo-entity-row
    secondary_info: >-
      {{ states('var.mailbox_count') }}x | Naposledy {{
      states('var.mailbox_last_open') }}
card_mod:
  style: |
    ha-card { 
      background-color: {{ '#336699' if is_state('input_boolean.mailbox', 'on') else '' }};
      color: {{ '#ffffff' if is_state('input_boolean.mailbox', 'on') else '' }};
    }