Secondary info from different entity?

Hi, can i have a secondary info use a different entity?

I have a toggle for a “vacuum if nobody home” automation (so I can manually disable it for convenience) and I’d love to have a “last cleaned” info from the vacuum entity displayed as secondary info.

The vacuum entity has a “clean_stop:” parameter, if anyone can give me a code from the top of their head :wink:

Thanks.

1 Like

Thank you!

It doesn’t work, it just tells me “old version of card-tools found” but there is no newer version. It looks like card tools is abandoned, last version 11 months ago. Nevermind.

Edit: looks like Canary could give me what I want (and it mentions secondary info entity row addon too), let’s see.

Can I get a bit more help? I can get a secondary info row to display a different entity’s attributes with this:

  - entity: automation.vacuum_cleanup_if_nobody_is_home
    icon: phu:roborock
    name: Vacuum if nobody home
    secondary_info:
      entity: vacuum.xiaomi_vacuum_cleaner
      attribute: clean_stop

That gives me this:
Screenshot 2021-09-28 at 22.35.11
Which is an absolute date/time of the last cleanup. That’s something but I’d love to have “xxx days/hourse/whatever ago”. Basically a “last_changed” attribute but when i tried “attribute: last_changed”, that didn’t work.

Or, at least, how do I clean this up so it just shows a date?

Any clues? Thanks!

Check your other post with the same question…