Garage door with obstruction sensor

Hi guys.
How can I customize device_class: garage to show one more icon status besides open/closed?
I would like to change garage icon when there is any obstacle between a laser diode and a phototransistor (both connected to my microcontroller). I tought about mdi-garage-alert icon.

Any ideas?

Thanks,

Daniel

Maybe use the template cover might be of help? Check the example here: https://www.home-assistant.io/components/cover.template/#garage-door

You can use a template to define the icon, allowing you to customize the cover icon based on whatever criteria you can define in a template

Hun… Interesting!
I will take a look.

Thanks for your quickly response, luma.

1 Like