Now assume that I have a device and I want to get the name of the one entity that is a switch (I know that there’s only one switch entity). How would I get that via templating?
I get a long TemplateState object/string output thing. I can see the 'friendly name" of all the entities within the inovelli swtich, but I cannot seem to filter out just the one friendly name I need - the one that is related to this devices main function which is a SWTICH.
If I’m able to do this, I can finally reach the holy grail of linking a device_id to a device’s friendly name! (I wake up in the middle of the night sweating just thinking about this problem).