I miss the binary sensor device_class link?

I am building a sensor based on my Router reporting Link State via Webhook.

Is there really not device_class “link” with the states “UP” and “DOWN” for binary sensors?

I found this one

but could find no indication that it was implemented.

Any Ideas how to solve this without having to resort to ugly “1”/“0” or “On”/“Off”?

  1. There’s no device_class that reports UP/DOWN.

  2. Currently, there’s no support for custom device classes.

  3. I suggest you consider using connectivity value for device_class. It reports Connected/Disconnected.

Reference

Binary Sensor - Device Class

1 Like