Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
634 B
10
Indexable
Never
- type: entities
        entities:
          - entity: input_boolean.mailbox
            name: Pošta ve schránce
            type: custom:secondaryinfo-entity-row
            secondary_info: >-
              {{ states('var.mailbox_count') }}x | Doručeno {{
              states('var.mailbox_last_open') }}
        title: Poštovní schránka
        state_color: false
        card_mod:
          style: |
            ha-card { 
              background-color: {{ '#fc6405' if is_state('input_boolean.mailbox', 'on') else '' }};
              color: {{ '#ffffff' if is_state('input_boolean.mailbox', 'on') else '' }};
            }