Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support format option with last-changed/last-updated #221

Open
peledzius opened this issue Dec 24, 2021 · 5 comments
Open

Support format option with last-changed/last-updated #221

peledzius opened this issue Dec 24, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@peledzius
Copy link

peledzius commented Dec 24, 2021

I can't format last-changed attribute inside main entity. Also can't access this attribute with different entity_id.

Does not work with main entity:
- entity: binary_sensor.bedroom_motion_sensor
  type: custom:multiple-entity-row
  secondary_info:
    attribute: last-changed
    format: time
Doesn't work with different entity:
- entity: binary_sensor.bedroom_motion_sensor
  type: custom:multiple-entity-row
  secondary_info:
    entity: binary_sensor.template_bedroom_motion_sensor
    attribute: last-changed
@ildar170975
Copy link

I can't format last-changed attribute inside main entity

May be same as this: #219 (comment)
Format is not applied for the last-changed & last-updated attributes for secondary entities.

Also can't access this attribute with different entity_id.

Do not confirm this: a value of last-updated is displayed for another entity:

  - type: custom:multiple-entity-row
    entity: sun.sun
    entities:
      - entity: sun.sun
      - entity: sun.sun
    show_state: false
    secondary_info:
      entity: person.ildar
      attribute: last-updated
      name: ' '

изображение

@peledzius peledzius changed the title secondary_info can't access or format last-changed secondary_info can't format last-changed Dec 25, 2021
@peledzius
Copy link
Author

Do not confirm this: a value of last-updated is displayed for another entity:

Yes, my bad. Just checked again, it does work but you can't format it.

@ildar170975
Copy link

I think it is better to rename the issue to "Can't format last-changed & last-updated" since it is for secondary_info & for entities.

@benct benct changed the title secondary_info can't format last-changed Support format option with last-changed/last-updated Dec 25, 2021
@benct benct added the enhancement New feature or request label Dec 25, 2021
@ildar170975
Copy link

Probably same: #229

BenniG82 pushed a commit to BenniG82/lovelace-multiple-entity-row that referenced this issue Sep 14, 2022
This change allows to use all direct properties of an stateObj to be used as secondary_info. This is useful to support custom formatting for last-changed/last-updated
@miguelarios
Copy link

Has there been any movement on this? Just curious. I see that it is still not working for last-changed or last-updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants