Is it possible to have the icon of a template_sensor mirror the icon of the underlying entity?
Specifically:
I want to have a template_sensor based on a switch. When the switch is on the sensor should display the yellow lighting flash icon and when off display the icon that is not yellow.
Yes, here example of weather template, “sensor.yr_symbol” is original sensor, and “sensor.weather” is new sensor taking icon from original with “entity_picture_template” line