Lovelace: Bringing back entity-filter (monster-card)

Hey guys,
Could someone point me to a guide on how to “install” monster card?
I’m using lovelace but, I where do i find ui-lovelace.yaml? It’s not in my /config.
Do i need to create it?
I’ ve read this, but if i do it, do i need to write all my UI in yaml? or i can just enable it to enter the js code?
Thanks in advance

Hi all

What’s wrong with this code?

      - type: custom:monster-card
        card:
          type: entities
          title: Consumi prese
          show_header_toggle: false
        show_empty: false
        filter:
          include:
            - entity_id: 'sensor.lavatrice_power'
              options:
                secondary_info:
                  entity_id: 'sensor.lavatrice_today'

or

                secondary_info: 'sensor.lavatrice_today'

It does not show the entity value.

Is it possible?
What should be the code?

Thanks

Download monster-card.json into /www
Click on three dots in right upper corner of your HA GUI and select Configure UI, then again on three dots and select Raw config editor.
Add at the top

resources:
  - type: js
    url: /local/monster-card.js?v=0.0.1

and you should be ready to roll.

1 Like

Thanks, that was so simple :slight_smile:

my monster-card-based card is not working after upgrading to 0.90.0 :frowning:

Working for me on 0.90.2

sorry, should be 0.91.0
it is working actually, but for some reason ALL 3 automations that are into that card and control its behaviour were OFF (I did not turn them off and their initial_state: true).
don’t know what’s happened during update.

As soon as I exclude a light group entity (e.g. light.cinema_downlights ) all lights that are on disappear from this monster card:

card:
  title: Lights On
  type: entities
filter:
  include:
    - domain: light
      state: 'on'
  exclude:
    - entity: light.cinema_downlights # <---- add this and no "on" lights show.
show_empty: false
type: 'custom:monster-card'

Does it not support light group entity exclusion?

My ultimate goal would be to have a wildcard exclusion for my “all” light groups. e.g. "*light.all_*" should exclude the entities: light.all_kitchen_lights and light.all_lights from the above card.

EDIT:

Actually excluding any single light entity clears the whole card of lights that are on. Am I missing something?

card:
  title: Lights On
  type: entities
filter:
  include:
    - domain: light
      state: 'on'
  exclude:
    - entity: light.lifx_bar_1
show_empty: false
type: 'custom:monster-card'

EDIT 2: My fault. it’s ‘entity_id’, not ‘entity’. All good.

hello to all
anyway to use this:
type: ‘custom:monster-card’
show_empty: false
card:
type: entities
title: Lights On
filter:
include:
- domain: light
state: ‘on’

but for timers?

Point 3 & 11,

Hello,

is it possible to show entities NOT matching a defined string?
I use the hass.io Google Drive add-on and want to show any alerts which are not the only correct one named “backed_up”.

Thanks for your help in advance!
/ Ralf

Edit: Nevermind, discovered that I needed to remove the “-” before the action. This works now.

  include:
    - domain: light
      options:
        tap_action:
          action: toggle
        hold_action:
          action: more-info

Hi all, looking for some help with config.

I’m trying to get options to work under my filter for a glance card. Basically, I want a glance card that shows lights that are on and tap to toggle them off or hold to get the more-info.

My card config is follows:

card:
  title: Lights On
  type: glance
filter:
  exclude:
    - state: 'off'
    - state: 'unavailable'
  include:
    - domain: light
      options:
        tap_action:
          - action: toggle
        hold_action:
          - action: more-info
show_empty: false
type: 'custom:monster-card'

The card filters and shows entities like it’s supposed to, and brings up more-info by default. I want to have it just toggle rather then this. When I put in the options, tapping or holding on any of the displayed lights does nothing.

Any thoughts?

So, does secondary_info work for anything else than “last-changed” ?
I’d like to use an attribute from the filtered entities as secondary_info, but nothing is displayed when I do that.

I’m using the card to show all ZWave devices and would like to display the last received timestamp of each device.

As far as I can see, the questions higher up in this thread reagarding secondary_info have not been answered yet.

The core secondary_info row shows entity_id or last-changed. You could use this custom card

I’m curious if Monster-Card can help me out.

I have a waste collection card made of a Sensor and multiple binary sensors created from a Google calendar entry.
Currently all the entities show up on the card but I’d love to hide the ones that don’t apply for the upcoming collection day.

Can the Monster-Card always show some entities and then have the others show if they meet the criteria?

For example, I have a sensor which show the collection day as it can change based on holidays so it should always be shown.
The other sensors which are binaries should appear only when set to “On”

Is this possible with Monster-Card?

Check this out

@AhmadK Thanks,

So does the when statement work differently in the Monster-Card than it does in the My-Monster-Card? or did the when statement get pulled over?

It exist only in the latter as far as I know.

only today noticed I had to change the plex setup to the new config integration…

having done that, I need to get back on this post above which I use:

  - type: custom:auto-entities
    show_empty: false
    card:
      type: entities
      title: Now Playing ...
      show_header_toggle : false
    filter:
      include:
        - domain: media_player
          state: /playing|paused|'on'/
          options:
            type: media-control
            artwork_border: true
            artwork: cover
            hide:
              icon: true

using the type: media-control I would have thought/hoped this to show the full media-control card as if it would be used separately , but instead it shows a tiny media_player interface:

09

compare that to what the

  - type: media-control
    entity: media_player.plex_telefoon

does:

58

is there any way we can set any of the auto-cards to show that?
thanks!

btw using the conditional card explicitly on this entity does work:

  - type: conditional
    conditions:
      - entity: media_player.plex_telefoon
        state_not: 'unavailable'
    card:
      type: media-control
      entity: media_player.plex_telefoon

Hi Surge, did you ever manage to get this working? I would love to do something similar. Cheers.