-
Notifications
You must be signed in to change notification settings - Fork 35
Add Xiaomi Smart Purifier Elite (zhimi.airp.meb1)
#86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Sorry, just noticed this now, I fail at notifications... Feels like ages since I did anything with esphome, but thinking out loud:
|
|
If you remove the quotes from the country numbers, and change the two |
Correct. Like having a smart power plug attached, without the extra hardware.
The more detailed the fan speed graph is, the better the total energy estimates get, more on that below. 1 Hz polling might be overkill or not, but I didn't dwell too much on this number.
I made a spreadsheet with 1 minute average power measured at 100rpm intervals, and fitted a cubic function over the plot for the fan; then reorganized the terms for more efficient computation. I also measured the constant UV/Ionizer consumptions.
Here's an hour of tracking versus an Ikea inspelning power socket, the estimation stays comfortably within half a Watt of measurements. Also on the energy tracking, both the socket and the estimate energy sensor agree on 0.004kWh for the period.
I don't have a spare plug though to check over e.g. a week. I'm not aiming for 100%, just a reasonable ballpark of usage.
(mainsplaining warning, apologies in advance) The same 24kWh energy consumption can be 24_000W sustained over exactly one hour or 1000W sustained over 24h, or even 48kW for half an hour. Or in way more detail video form: Power is not energy
I'll check this over the weekend and get back to you. |
|
Alright, nice!
1s interval may clobber the serial line, does the rpm really fluctuate
that much? In the end I don't mind either way, but 3s may be a less
aggressive yet sufficient default?
|
I have the same setup in my Purifier 4 working without a hitch since I first submitted a PR for it aeons ago, so I would say it's safe. I'm not interested as much in the 10rpm differences at steady state, just need to precisely detect the large changes (i.e. 100% or nearly - to min speed) as these will affect the "area under the graph" that's summed up.
This is a question I'll leave to nerdier people with more free time to answer. 😄 This is also part of the reason I mentioned having these optional "addon" sensors in the wiki -- just that visibility suffers there. |

Works pretty well.
Only quirk is an unknown
country_codecommand spammed by the MCU; device works fine despite this.Sending
set_properties 9 11 17749shuts it up with this trace:and adding a
selectentity fails at compilationAlso added template power/energy sensors based on kill-a-watt readings -- I can move this to the wiki if you don't want it in the standard config.