I now have automation working (but had to control the air purifier by calling the fan service), and have a basic button in my Lovelace dashboard for on/off functionality, but would like to get additional buttons created to control the different speeds/modes. Outside of Off, there are four speed modes: Low, Medium, High, and Sleep (slower than Low mode). The goal would be to put these buttons in a conditional card that only gets exposed if the air purifier is set to On.
I haven’t found an existing card (including through HACS) that has met my needs or actually worked, and any help would be greatly appreciated.
In case it is needed, I am running the latest version of Home Assistant Core via a docker container on my Unraid server. It is a relatively new setup that I have only been running for a few weeks now.
I have the exact opposite problem, my 200S suddenly stopped working in HA about a week ago and the integration is throwing an error. I haven’t been able to chase it down yet. BUT when the integration works, this card works fine.
After playing around with the YAML code, I was finally able to get it to work (and will only show when my power toggle button is enabled). I wound up having to specify the numerical speed for Low, Med, and High. For Sleep, I just called the specific mode.
I just wish that there was a way to hide the AQI object so I can clean it up more (I know that there are a few requests for that on the GitHub page).
Know this thread is dated, but I wanted to share my Purifier Card configuration for the Levoit 200S using the VeSync integration, as I couldn’t really find a fully-featured example anywhere. Took a bit of playing around as well, but overall am very happy with the performance. Hope this helps!
Note in my case I have a separate PM2.5 sensor, as the 200S does not have one (believe the 300+ models do however and the sensors on these models can be used instead). I’m also pulling AQI from the AirVisual integration.
Thank you very much for your brilliant work. You shared it just “in time” because I purchase 200S recently and I was looking at the community forum for ideas on how to configure my device and bang I could find the ready-made recipe
The only question I have is, if you could share with me also, what PM2.5 sensor you use - I might consider adding it to my air purifier too. Is this any kind of device or your own made sensor?
Glad this helped! Yes, I’m using a semi-homemade PM2.5 sensor: it’s an IKEA Vindriktning Air Quality Sensor, modified with an ESP32 and ESPHome with added temp, humidity, TVOC and eCO2 sensors all in one. Great project if you’ve never looked into it and like DIY. Alternatively I know there are number of devices for a bit more with built-in connectivity that you can buy and integrate to grab the room’s PM2.5.
Is there anyway you can control the status of the attributes? I want to be able to turn the screen_status off and on when i have it on at night. I can see all the attributes listed when i look at the state of it in developer tools but i dont know the actions to take to apply a change to that attribute. Basically at night i want it to turn onto preset mode (which i have done and is straight froward) but also turn the screen off.
I found your template and it looks great, I did some mods because I have a 300s which includes a pm25 sensor, however I’ve been having issues with the shortcuts, whenever I click one I get this error:
Failed to call service fan/set_percentage. extra keys not allowed @ data['target']['percentage']. Got 66
I’m quite new to home assistant and I can’t seem to figure out what the issue is, any help would be appreciated