WHT is there no binary sensor device class yes|no?

Yes, it’s an old request, but with the new helpers and stuff it’s relevant again.

I have for example a Template binary sensor that shows me whether the sun is within the specified corridor or not. True/False is enough for the logic, so it works, but since there is this thing called ‘Device class’, there should be a ‘Yes/No’ class if you ask me.

Now it shows on/off and there is no class that essentially returns/shows Yes/No or even True/False in the GUI/dashboard.

Yes/No or True/False, both are fine for my use case, but there currently is no option for as far as I know.

This is a duplicate, on mobile, will find it later. This will likely get closed because of that.

Hmm, I scrolled through all posts but didn’t see it. Thanks.

Update/clarification
Since I cannot respond to @tom_l, I’ll update this post. I scrolled through the post mainly to vote. Then, since I didn’t notice this “request”, I decided to add it.

I should have used the search to validate, which I didn’t. Thanks for pointing that out.

https://community.home-assistant.io/search?context=category&context_id=61&q=Yes%20no&skip_context=false

Dupe of https://community.home-assistant.io/t/wth-cant-we-have-a-binary-sensor-with-yes-or-no/806103

Use the forum search function. Restrict the search to the WTH category.

1 Like