Add door sensor to a lock to get 'open'?

I have a few door locks, but none support knowing if the door is actually open. However, I do have binary_sensors on each door, though.

I’d like to combine these so:

  1. I can see a single icon/status showing locked, unlocked, or door open
  2. I can see history of door locked/unlocked/open from the same pop-up
  3. I still retain the lock/unlock control (“more info” pop-up)

I can do (1) using a lovelace template card (in fact, I do). I can do (2) with a template sensor. However, both of those don’t handle (3).

It seems like the thing preventing all 3 is that the lock.template doesn’t support “open”.

Am I missing something obvious, because this seems like something a lot of people would want?

1 Like

I don’t think there’s a way, but I’d love to find out I’m wrong!

In my case, my locks all have door sensors on the same device, so I just make a long-press on the door sensor always direct me to the device so I can still control the lock if needed. Not as convenient as using the more-info popup, but I rarely need to do that anyway.

Not as convenient as using the more-info popup, but I rarely need to do that anyway.

Most of my main page is Minimalistic Area Card and I changed the action for pretty much every icon on those to be more-info, because it was too easy to accidentally touch/click (especially when in the “off” grayed-out state) and have something unwanted happen.