info@mendarion.ru

Имя  
Эл. почта  
Телефон для связи  
Какая услуга Вас интересует?  
Сюда можно прикрепить ТЗ  
Карточка customauto-entities

 

- type: vertical-stack  # вертикальный блок
         cards:
             - type: markdown
               content: >
                  **Активные светильники**
                      
             - type: custom:auto-entities
               show_empty: true
               card:
                 type: entities
                 show_header_toggle: false
               filter:
                 include:
                  - domain: switch
                    state: 'on'
                    options:
                       secondary_info: last-changed
                 exclude: #Исключения
                 - entity_id: switch.*breaker* # Исключение в имени сущности breaker
                 - entity_id: switch.*alarm*  # Исключение в имени сущности alarm
                 - entity_id: switch.*indicator*  # Исключение в имени сущности indicator
       - type: vertical-stack
         cards: 
            - type: markdown
              content: >
                  **Движение**
                  
            - type: custom:auto-entities
              show_empty: false
              card:
                type: entities
                show_header_toggle: false
              filter:
                include:
                 - entity_id: binary_sensor.*occupancy
                   state: 'on'
                   options:
                      secondary_info: last-changed
                      
            - type: markdown
              content: >
                  **Открытые окна и двери**
                  
            - type: custom:auto-entities
              show_empty: false
              card:
                type: glance
                show_state: false
              filter:
                include:
                 - entity_id: binary_sensor.*contact
                   state: 'on'
       - type: vertical-stack
         cards:            
            - type: markdown
              content: >
                  **Мощность более 50 Ватт**
                  
            - type: custom:auto-entities
              show_empty: true
              card:
                type: entities
                show_header_toggle: false
              filter:
                include:
                 - entity_id: sensor.*_power
                exclude:
                 - state: '< 50.0'
                 
            - type: markdown
              content: >
                  **Влажность менее 30%**
                      
            - type: custom:auto-entities
              show_empty: false
              card:
                type: entities
                show_header_toggle: false
              filter:
                include:
                 - entity_id: sensor.*_humidity
                exclude:
                 - state: '> 30.0'

            - type: markdown
              content: >
                  **Температура менее 10 С**
                      
            - type: custom:auto-entities
              show_empty: false
              card:
                type: entities
                show_header_toggle: false
              filter:
                include:
                 - entity_id: sensor.*_temperature
                exclude:
                 - state: '> 10.0'
       - type: vertical-stack
         cards:            
            - type: markdown
              content: >
                  **Батарейки менее 40%**
            - type: custom:auto-entities
              show_empty: false
              card:
                type: entities
                show_header_toggle: false
              filter:
                include:
                 - entity_id: sensor.*battery*
                exclude:
                 - state: '> 40.0'
                 - state: 'unknown'

            - type: markdown
              content: >
                  **Аварийные датчики**
      
            - type: custom:auto-entities
              show_empty: false
              card:
                type: entities
                show_header_toggle: false
              filter:
                include:
                 - entity_id: binary_sensor.*water_leak
                   state: 'on'
                   options:
                      secondary_info: last-changed
                 - entity_id: binary_sensor.*smoke
                   state: 'on'
                   options:
                      secondary_info: last-changed
            - type: markdown
              content: >
                  **Отвалившиеся Реле, Автоматы**
                      
            - type: custom:auto-entities
              show_empty: false
              card:
                type: entities
                show_header_toggle: false
              filter:
                include:
                 - domain: switch
                   state: 'unavailable'
                   options:
                      secondary_info: last-changed
                      
            - type: markdown
              content: >
                  **Отвалившиеся сенсоры**
                      
            - type: custom:auto-entities
              show_empty: false
              card:
                type: entities
                show_header_toggle: false
              filter:
                include:
                 - domain: sensor
                   state: 'unavailable'
                   options:
                      secondary_info: last-changed
                 - domain: binary_sensor
                   state: 'unavailable'
                   options:
                      secondary_info: last-changed

custom:auto-entities
Ручной режим lovelace и кастомная карта auto-entities в ресурсах - configuration.yaml

configuration.yaml

lovelace:
  mode: yaml
  resources:
   - url: /hacsfiles/lovelace-auto-entities/auto-entities.js
     type: module  

ui-lovelace.yaml