It would be great if we could use icon_template in the discovery of MQTT devices. Currently only icon is possible.
For example, I have a bed sensor and have set the device class to occupancy which matches good. But now a non matching icon is displayed, this could be changed with icon, but then it will display the same icon for both states.
With icon_template which is available at other locations already it would be possible to configure it.
In the forums I found the possiblity to add a separate template sensor and add the icon_template there, but in my opinion it’s much cleaner to do this on the device itself instead of creating another template device just for changing the icon.