JurajNyiri / HomeAssistant-Atrea

Custom component allowing control of Atrea ventilation units
Apache License 2.0
23 stars 12 forks source link

WIP: Add: Better icons #2

Closed kepi closed 3 years ago

kepi commented 4 years ago

I was constantly worried there is something wrong with my unit when seeing alert icon in Lovelace :)

This commit change default icon to "fan", which is IMHO better for circulation unit.

It also display different icons for different states. This is first try with hacky implementation. Currently (first match wins):

This is just concept (or better this is how I hacked it in my environment and testing visually now) - I just wanted to know if you plan to support something like this and what are your ideas. I suppose there should be better way to check for states and get their relevant icons. Not sure about custom preresets (we can use fan-1 fan-2 and fan-3) etc. For now I just added icons for states I'm using now and want visible.

JurajNyiri commented 4 years ago

This looks good! 👍 Please also update version, date etc. in custom_updater.json and climate.py (version var) and I can merge this PR.

I see you marked this as WIP, do you wish to add something more? We can add more icons in the future but this is already better than the current implementation.