MQTT Cover buttons deactivation when device is offline

Hi,

I would like to change my frontend for MQTT Cover. When device reports offline state I want to deactivate OPEN/STOP/CLOSE buttons or change them for text “OFFLINE”.

What is currently when device is offline, only grey icon informs that device is offline, buttons are still active.

I want to achieve
want2

I achieved it by using an Entity Filter. I’ve created corresponding MQTT binary sensors which informs me about blinds state, then I filter all covers and sensors based on state. If device is offline, card will show sensors with state text, if device is online card will show cover with control buttons.

Preview: https://www.youtube.com/watch?v=i49J2HLh9Rk&feature=youtu.be

1 Like