Hi All,
I used Dr. ZZZ’s garage opener integration as an example for my Aircon integration with ESPhome.
Aircon works now but there still some artefacts.
For example
device_class: garage-door
that makes Aircon status to switch between “open” and “closed” instead of “on” and “off”
Could someone guide me in the proper direction: what’s the proper device_class for aircon and where could I find more info about it?
If you can’t find one to fit your needs just don’t include it (default class = none ). You can then give the sensor any mdi icon you want using home assistant customisation. You can cause the icon to change colour by using state_color in any Lovelace card that uses the sensor.
Thank you.
That’s it. I have changed it to ‘power’, it shows “on” and “off” states now.
For whatever reason I thought device_class is ESPHome specific and could not find clear answer, most of the times it was mentioned “use corresponding device class”.
Apparently that’s home assistant level.
I haven’t mastered Lovelace yet. I would try to change icon appearance when I get there.