Hello! I am looking to create a button for my dashboard that will flash when my Midea AC Unit displays the “Clean Filter” alert (which is shown on the unit itself, as well as in the Midea SmartHome App) and when I tap the button, it will clear that alert both in Home Assistant but also on the unit itself using some control function in n HAss.
So far, I have the flashing button working but I still need to open the Midea SmartHome App to clear the alert once I have cleaned the filter. Can I not be able to use HAss to clear that alert instead?
Below is the yaml I have so far for the flashing button. (Credit to @djbrooks022 with his flashing leak sensor yaml. GIF at bottom of this post for visuals)
type: button
entity: binary_sensor.141837000261236_full_dust
state:
- color: red
icon: mdi:snowflake-alert
styles:
card:
- animation: blink 2s ease infinite
value: 'on'
color: auto
icon: mdi:snowflake
color_type: button
name: KITCHEN AC
When I look at the states, it shows “off” under filter states and “problem” under device_class.
Am I able to accomplish what I am asking for? I’d really like to avoid logging into the app just to clear the notification.
Thanks in advance for anyone’s assistance with this!
Sample Flashing Button For Visuals: