Binary sensor: show last state change date

Hello,

I would like to easily know at what time my front door was opened.
For that I created a binary graph displaying the value of my door sensor, but I don’t find it great.
First, the graph does what it’s told: it shows my sensor’s state over time, except a door opens and closes in 10s, so at the graph’s scale (at best 1h) you hardly see anything (just a spike, sometimes narrower than 1 pixel).
And it’s not very quick to access: I saw that I can click the graph to get more detail, but it’s still cumbersome (you have to click in the right spot, etc.)

Is there another way to do this?
Otherwise, wouldn’t it be possible to create a « door-type object » to manage this?
I’m opening the question :slight_smile:

Hi,

I think a history can be useful, but it doesn’t go much further than the need I had described.

On reflection, I think that if we display under / next to / … the date of the last state change (i.e., when my door changes from open to closed, or vice versa) it would be quite simple, and generic for any binary sensor.
It could be offered in the dashboard editor, when displaying a binary state with a checkbox « show date of last change », for example if we want to make it configurable

That’s not bad! Especially since it’s already something we do for motion sensors, and for the « Users present » widget:

Hello, will this update be taken into account? Thanks :slight_smile:

Hi @NineStars :slightly_smiling_face:

Is there a specific point that interests you?

To be honest, the request isn’t very clear as it stands. The title doesn’t really help understand what is expected, so it’s not very « actionable », especially when browsing the list without going into each topic (there are already 234 pending requests :sweat_smile:).

Ideally, the title should be enough on its own to understand the desired development. And if you have several ideas, don’t hesitate to create several separate requests :slightly_smiling_face:

Thanks for your feedback anyway!!

Hi @pierre-gilles, I thought your previous comment made the request clear enough. I’ll rename the topic.

Sure, could you replace your first message with the image you posted in the last message along with an explanation?

I would delete all other discussions to make it clear! :slight_smile: