+1
Nice feature !
+1 would love to be able to add a custom name, on-state name/icon, and off-state name/icon
+1 - Generic improvements like this make HA much more modular and adaptable.
plus another one…hope we get an ETA…
+1 - I would love for my different size garage doors to appear as different sizes on my dashboard and still show when they’re open, closing, etc.
+1
Was looking for a solution for my robot vacuum to indicate whether it’s “Ready to Mop” (has water, mop attached) or “Not Ready” and whether it’s “Bin Empty” or “Bin Full”.
+1 Exactly what I need for my sliding barn doors
I understand this FR is focused on binary states. Would it be worth looking at sensor states with nominal values as well? Example: Window with closed / open / tilted state.
Building on the initial configuration, this would look like:
device_class:
- sensor:
- window
state_closed: 'Closed'
state_open: 'Open'
state_tilted: 'Tilted'
icon_closed: 'mdi:window-closed'
icon_open: 'mdi:window-open'
icon_open: 'mdi:angle-acute'
icon_color_closed: 'green'
icon_color_open: 'red'
icon_color_tilted: 'yellow'
The challenge with this is of course sensor can have any text value, but here, the state_* setting would be used to identify matching states and then look up icon, color, etc.
+1. I’m honestly shocked this doesn’t already exist, with everything else we can do. I’m adding a sensor for whether or not mail has been delivered for my grandma, and it seems crazy there isn’t a way - even by directly editing yaml - to simply set a binary sensor to custom values like “Empty” and “Delivered” or something.
+1 waiting
+1 - Would be great for my 5 mousetraps, mailbox, etc.
+1
Would also be a great way to show network devices as online/online instead of home/away (which is kinda weird)
Assuming those are binary sensors, you have the wrong device_class. You should be using device_class connectivity
.
https://www.home-assistant.io/integrations/binary_sensor/#device-class
The Unifi integration creates them as device_tracker, I don´t see any way to change that.
If they are in the device tracker domain they have nothing to do with this FR.
As I understand so far the FR is “Custom device classes” not “Custom device classes for binary sensors”
But if FR inflation is the thing to go we could open one for every type…
Binary domains is exactly what this FR is for, read the very first sentence:
However even allowing for FR creep you are still out of luck. Device trackers do not have device classes. Only these domains do: https://www.home-assistant.io/integrations/homeassistant/#device-class
+1! Landed here while looking for a way to display my Gate open/closed correctly.
+1! from me as well. Looking for a Clean/Dirty binary state.
Yes +1! Would be great to create enum states, e.g. for my heating system (“off”, “standby”, “heating”, “deicing”, …)