Are you asking for a binary sensor whose actual state is “Yes/No” or a new device class for binary sensors so that the frontend representation is “Yes/No”? The latter is probably more likely to be acted on… I’m not sure, but the former is probably against the current architecture guidelines.
I may not get the terminology right. But I’m thinking the former
In my scenario, I use an ultrasonic sensor to determine if a car is in the garage or not. I’d like it to return Yes or No ( instead of On or Off ) to Home Assistant
This is purely cosmetic so not likely worth a devs time. But it’s the month of WTH…so I thought WTH
If anyone can think of a way to do it with other code fudgery, I’m open to it
{{ 'Yes' if is_state('binary_sensor.your_source','on') else 'No' }}
Binary sensors are defined as on or off — you can use device classes to give a variety of different front-end representations of that, but please don’t make the back end more complicated.
Perhaps put a feature request in for a “yes / no” device class to be added.