I have Sonoff (ESPurna) switches which are autodiscovered by Home Assistant.
One problem is that there are (correctly) classified as switches, while in reality they are all in from of lamps. I would therefore like them to be classified as lights (especially for the icon because I do not know if there are other differences)
The solution I use today is to explicitly define them as lights - thus loosing the autodiscovery capacity.
I tried to
customize_glob:
"switch.*":
device_class: light
but this does not work.
I also tried to change the icon via EDIT: this works but I dio not know what I am loosing when not using the right device class (and just overriding the icon)customize_domain
(since I am not sure whether anything else matters in my case), but this did not work either: