Lovelace: Xiaomi Air Purifier card

using any of the examples above, replace the circle-sensor-card entries with state-badge

for example, i changed one of the entries as follows

previously using circle-sensor-card

      - type: 'custom:circle-sensor-card'
        entity: sensor.airpurifier_lounge_motor_speed
        fill: 'rgba(0,0,0,0.3)'
        font_style:
          color: white
        gradient: true
        max: 350
        min: 0
        show_card: false
        stroke_width: 10
        stroke_color: '#ff03c9'
        style:
          top: 35%
          left: 15%
          height: 40%
          width: 40%
          font-size: 90%

changed to this

      - type: state-badge
        entity: sensor.airpurifier_lounge_motor_speed
        title: Fan1
        tap_action:
          action: more-info
        style:
          top: 35%
          left: 15%
          height: 40%
          transform: 'translate(-50%,-50%) scale(0.85,0.85)'
1 Like

Thank you @peterho,

In the meantime Iā€™ve modified the @gh0s7 Lovelace card, adapting it to my pre-existent configuration (sensors, switch, inputs, automations by @MickL).
Mine works fine with dark theme background.
Here you can find all the files
My first Github repository
Enjoyā€¦

1 Like

As a side note all

I have just updated to haas V0.110.2, and the circle-sensor-card ā€œappearsā€ to be working again

I do however still see the error in the home-assistant.log as follows

2020-05-26 19:35:48 ERROR (MainThread) [frontend.js.latest.202005194] http://redacted:8123/hacsfiles/circle-sensor-card/circle-sensor-card.js:76:79 Uncaught TypeError: Cannot read property 'state' of undefined

Itā€™s ok now. Since 0.110.3 update the card is repair :grin:

1 Like

'Using Hassio 0.111.4, the custom card ā€˜circle-sensor-cardā€™ stopped working ,
Using the following fix suggested by @heymoe fixed the issue :smiley:

Hi!
Anyone has a card for Mi Fresh Air Ventilator (dmaker.airfresh.t2017)?
Thanks

I know this is an older post but just curious how did you connect this to HA? Iā€™m hoping you donā€™t say bridge LOL I see thereā€™s an integration in HACS for thisā€¦ overall how happy are you with this?

Iā€™m looking into replacing an old one that I have.

Thank you!