I am developing a Lovelace card which displays various entities and I would like to apply different logic depending on the platform which created an entity (e.g. lights with the hue platform would be treated differently from the tplink platform).
I can get the domain (switch, light, sensor, etc.) from the entity state. But I can’t find a way of determining the platform. Is there any way of doing this?