manuelk
(Manuel)
1
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
m0wlheld
(Christoph Dahlen)
2
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’
manuelk
(Manuel)
3
thank you for information.
perhabs have you an explampe for me or you can help me?
i am very new here
tom_l
4
Or you could show the secondary information 'last changed". The entities card supports this.
manuelk
(Manuel)
6
Thank you
exactly something like that I would like very much
m0wlheld
(Christoph Dahlen)
7
But last_changed also includes the state change on motion end.
tom_l
8
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.
manuelk
(Manuel)
9
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

manuelk
(Manuel)
10
Hello together…
i small error
This works
type: entities
entities:
- entity: binary_sensor.presence_3
secondary_info: last-changed
Great Thank you