Dear Community,
I’m new to HA and loving it so far.
Using custom:button-card and grid I created the following window-button. It changes background and icon if the window is open. Also it has buttons (calling services) to open/close/stop the cover of the window.
I want to highlight the actual/last action of the cover: if it was closed the last time, I want to display a solid arrow down (and an outlined arrow up), if the last action was ‘open’: vice-versa. Therefore I have to check the state within the button.
Could anyone help me how to check the state within the button to address the corresponding icon?
Thanks in advance.
Best regards from germany
Lars