Hi all,
I’ve had some issues when creating a number helper (e.g. to mimmick a static power measurement) but, because one can’t set a device_class to number helpers, the “power” does not propagate and you can’t use it later in the energy dashboard. I’m sure there are other cases, though, when you need a device_class, but numbers don’t have it. I always end up writing a template helper with a static number.
Hope it’s an easy one! Thanks!
number’s don’t have device classes, device classes are specific to sensors and binary sensors. Create a numeric sensor instead
Oh I see… but there’s no helper for a numeric sensor, right? Or are template sensors the way to implement a numeric sensor and I’m doing it correctly?
Template sensors are typically what you’d use.