Seonsor Stauts in Frontend

Hello

I have my sensors from Xiaomi and Sonoff integrated into my Home Assistant.

Only I would like to see that on the overview page directly when the last movement took place. Not when I first click “motion detected”.

How can I implement this best?

Thanks a lot

Don’t know, it this is the best, but you could

  • create an input_datetime helper
  • create an automation, that sets the helper’s value to {{ now() }} whenever the motion sensor changes it’s state from ‘off’ to ‘on’

thank you for information.
perhabs have you an explampe for me or you can help me?

i am very new here

Or you could show the secondary information 'last changed". The entities card supports this.

Thank you

exactly something like that I would like very much

But last_changed also includes the state change on motion end.

Yeah that is true but may be good enough in this case.

type: entities
entities:
  - entity: light.office_ceiling
    secondary_info: last_changed

You should be able to add this using the UI card editor. Tap the pencil icon next to the entity.

Thanks a lot

unfortunately the result is not satisfactory

i still detected movement. i have edit configuration.yaml

type: entity
entity: binary_sensor.lumi_lumi_sensor_motion_aq2_ias_zone
secondary_info: last_changed

Bewegung_erkannt

Hello together…

i small error

This works

type: entities
entities:
- entity: binary_sensor.presence_3
secondary_info: last-changed

Great Thank you