If you would like apply provided fix:
pip3 install --upgrade git+https://github.com/rytilahti/python-miio@airpurifier_miot/fix/aqi_refresh
I will also test it by myself, but it could take a while (right now i have good weather condition and stable 1pm2, so I have flat chart with or without fix)
Irregardless, it appears a fix is being pushed for next release for the continuous monitoring. Based on the link you posted @Razer, so I will hold off trying manual fixes and just wait for that to surface.
Are you on 2021.12.8? There are loads of issues with the Miio integration. I personally rolled back to 2021.12.7, because I lost the number entities.
And sounds good, I am not going to mess with my standard integrations, I wouldnāt even know where to look for the code as I suppose it is hidden for newbies like me.
Configuration ā Add-ons, Backups & Supervisor ā Backups ā I clicked the one called core_2021.12.7 that was prompted to be created when I updated to 12.8.
Then I only checked the first checkmark, and clicked restore:
It didnāt give me any confirmation, so just be patient, as it is working in the background. On my Raspberry Pi 4 8GB it took 2-3 minutes before it rebooted.
Well, i have two xiaomi fan entities:
āfan.mi_air_purifier_proā with only 7 attributes (original HA) and
āfan.xiaomi_air_purifier_proā with some 26 attributes (IMPROVED version) entity.
All there, nothing disabled or unavailableā¦favorite level switches ok, all seems to work like beforeā¦ i can change favorite level (and thus motor speed).
It can be model specific, though, sureā¦
AHA! Found it. I have two, one is called ānumber.mi_air_purifier_pro_volumeā and other is ānumber.mi_air_purifier_pro_favorite_levelā. But i never used them, so i donāt even know what they are for.
In history first one shows all zeroes, so that one didnāt work even before update, but favorite level indeed died with latest update.
What is this sensor for anyway? I get my favorite level state from attribute in āfan.xiaomi_air_purifier_proā, thatās why all worksā¦
OK, understood, thanks. But, as i said, i use another way to do it and since it works perfectly, iāll just stick with that option.
Thanks for explanation!
I canāt get this card wqorking. Itās also my first card so myabe i didnāt understand correctly how it works.
Anyway i copy pasted everything from the secondpost on the start.
Added configuration.yaml. of course with my own host, token informations.
Added to automation.yaml the complete text. Changed all IDā XX with the same 9 digits number
I has no lovelace.yaml. Read somewhere you need first a ui-lovelace.yaml so added first to ui-lovelace.yaml. Secondly renamed to lovelace.yaml. But sadly did it not work.
Is there somewhere a simple step bij step instruction?