TL;DR: Can I link template sensors to a device using an identifier
from device_info
?
I’m trying to use templates instead of creating a full-on component, because the entities I’m creating are just some math-based derivatives of other sensors. (Specifically, I’ve created battery percentage sensors, which are based off of some battery voltage sensors. Just some arithmetic using the theoretical max voltage.)
In components, when defining the device_info
property, identifier
s are declared. These are used to give a cohesive view of all sensors for a device, even across multiple components. Powercalc and Battery Notes are good examples of how this is useful.
Once you add the Battery Notes integration for a z-wave door sensor that has 2x CR2032 batteries, that battery information shows up on the device page (and both the zwave and Battery Notes integrations are listed in the device info box) like so:
Is there any way to declare an identifier or explicitly “link” my template sensor to the device itself, so that it shows up on the device page?