make a template sensor that returns opened / closed. Then exclude the original binary sensor from the logbook.
Or (easier solution) in the customize section, add a device_class: opening property to the binary_sensor.
homeassistant:
name: Home
unit_system: metric
# etc
customize:
# Add an entry for each entity that you want to overwrite.
binary_sensor.living_room_door:
device_class: opening
I know this is an old post, but unless I’m missing something this does not change the words in Logbook. I have several open/close sensors. They are set up as device_class: opening, they show as open/closed in history, but in logbook they still show on/off. I’ve just grown to live with it, but it would be nice if logbook respected the states properly. I like the logbook for it’s simplicity. For me I just have presence, open/close, locks, and a few other sensors in the list. a quick look at what’s going on
Just wanted to bump this. Not sure why, other than it still bugs me, haha. I’d think by now that they’d have made these changes to respect the device class. I could create the template sensor, but just seems like a pain for the number of devices I have.
Seems like a bug. Logbook should translate based on the device_class. There is a chance that the dev’s will shut it down if you make it into an issue. Your other options is to wrap each binary_sensor into a sensor with the words open/close.