#would you mind sharing your yml for

1 messages ยท Page 1 of 1 (latest)

bright holly
#

You may have to adjust indention and the dash at the beginning. I have these examples inside a vertical-stack card. - type: custom:battery-state-card title: Battery Levels under 50% secondary_info: last_updated sort_by_level: asc tap_action: more-info state_map: - from: 'on' to: 0 - from: 'off' to: 100 filter: include: - name: entity_id value: sensor.*_power* - name: entity_id value: sensor.*_battery_level* exclude: - name: state operator: '>=' value: 50 - name: state operator: '=' value: Unavailable - name: state operator: '=' value: Unknown - name: entity_id value: sensor.*_battery_power - name: entity_id value: '*shellyplug*' - name: entity_id value: sensor.tv_plug_active_power

#
      - type: custom:battery-state-card
        title: Unavailable Battery Levels
        secondary_info: last_updated
        sort_by_level: asc
        tap_action: more-info
        state_map:
          - from: 'on'
            to: 0
          - from: 'off'
            to: 100
        filter:
          include:
            - name: entity_id
              value: sensor.*_power*
            - name: entity_id
              value: sensor.*_battery_level*
            - name: state
              operator: '='
              value: Unavailable
            - name: state
              operator: '='
              value: Unknown
          exclude:
            - name: state
              operator: '>='
              value: 0
            - name: entity_id
              value: sensor.*_battery_power
            - name: entity_id
              value: '*shellyplug*'
            - name: entity_id
              value: sensor.fire*
            - name: entity_id
              value: sensor.quest_media_session```
short kelp
#

๐Ÿ‘€

bright holly
#

I see you seeing me...

short kelp
#

I see everything ๐Ÿ˜›

#

I also find it hilarious that we had two folks wanting almost the exact same thing in such a short time

bright holly
#

Well, great minds think alike sometimes.

thorn lantern
#

i've been meaning to set this up for a while so it's serendipity

short kelp
#

and fools.....

#

seldom differ

#

๐Ÿ˜›

thorn lantern
#

hey can this HACS integration exclude things by attribute value?

bright holly
#

Also, not just for use with batteries. yaml - type: custom:battery-state-card title: Unavailable Lights secondary_info: last_updated sort_by_level: asc tap_action: more-info state_map: - from: 'on' to: 0 - from: 'off' to: 100 filter: include: - name: entity_id value: light.* - name: state operator: '=' value: Unavailable exclude: - name: state operator: '>=' value: 0 - name: entity_id value: light.fire* - name: entity_id value: sensor.quest_media_session

thorn lantern
#

attribute > "integration" > "powercalc"

bright holly
#

I want to say yes because I think someone asked that before but I cannot remember for certain.

#

I think they had to use a template that somehow figured out the entities provided by a specific integration.

thorn lantern
#

for me i'm lucky - the integration is actually present as an attribute

#

on the entity

bright holly
#

that's convenient

thorn lantern
#

i'm trying crazy thing slike:

#
exclude:
  - name: attribute.integration
    value: powercalc
#

ah ha

#

it was plural