Multiple sensor card ideas wanted

I’m not happy with how the following sensors are displayed, the padding makes it difficult to tell which time belongs to which sensor.

I’d like to keep it compact (not an entities list), as well as keeping the last changed time and name visible.

Any ideas for existing custom cards I could try?

I know you said not entities but this will do it whilst keeping last_updated & name, I did this but I have completely changed my UI and its in pieces atm.

I’m not sure how I could use that. Last changed isn’t an attribute.

entities:
  - entity: binary_sensor.front_door
    type: 'custom:multiple-entity-row'
    entities:
      - attribute: last_changed
        name: Last changed
  - entity: binary_sensor.lane_gate_filtered
...

Screenshot_2020-04-27 Overview - Home Assistant(1)

                  - entities:
                      - entity: binary_sensor.motion_sensor_158d0001d56ccb
                        secondary_info:
                          attribute: last_changed
                          name: Last Changed
                          unit: 'mins'
                        type: 'custom:multiple-entity-row'

I didn’t test this but assume it will work?

Nope. Same problem, just different location:

last_changed isn’t an attribute it is a property of the state object. Check the developer tool / states menu, you won’t see last_changed in the attributes column. Petro explains it here:

Sorry I can’t check just yet, but I know I had this working as described in my old setup, I have just added the resource for me to check but there is a bit to setup for me to test.

Try like the secondary_info: last-changed

Yeah that works for an entities card without using multiple-entity-row but as I said, I was after something more compact than the entities card.

let me have a play around with my setup as this is something I’ll be doing with minew anyways see if I can’t give you something pretty to look at. You could always just use a conditional card? I know how I did mine now I break out the no_motion_since attribute of my xiaomi motion sensors so maybe not able to do it without some trickery but I’m sure it can be done and now I have a new mision for the night :slight_smile:

1 Like

Actually not even the core entities card option seems to be working:

try last-changed

1 Like

Yeah that was it. Thanks.

1 Like

I did something like this with horizontal-stacks and the button-card.
Auswahl_317

4 Likes

Managed to give it a test try this — I’m using panel:true

- type: entities
  entities:
    - entity: binary_sensor.door_window_sensor_158d0001e73af4
      type: custom:multiple-entity-row
      name: Kitchen Window
      secondary_info: last-changed
    - type: divider
    - entity: group.windows
      type: custom:multiple-entity-row
      name: Windows
      icon: mdi:window-closed-variant
      show_state: false
      state_color: true
      secondary_info: last-changed
      entities:
        - entity: binary_sensor.door_window_sensor_158d0001e73a73
          name: Jackson
        - entity: binary_sensor.door_window_sensor_158d0001e73aad
          name: Hudson
        - entity: binary_sensor.door_window_sensor_158d0001e73af4
          name: Kitchen
        - entity: binary_sensor.door_window_sensor_158d0001e74875
          name: Bathroom
        - entity: binary_sensor.door_window_sensor_158d0001f36741
          name: Bedroom