-
Notifications
You must be signed in to change notification settings - Fork 47
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
Feature Request - Support for Meter Pro #251
Comments
I have the Meter Pro and the Meter Pro (CO2). Not sure what I can do to help, but I am free for anything. I am just unsure how polling bluetooth to grab the necessary data works. If someone could explain, I am willing to try. |
Would be great to have the meter pro (co2) in HA. Can also provide information. |
Advertisement data. MAC is
|
That was enough to know the decoding for the temp/humid is the same as the base pro model I added support for decoding those in #256 so it should show up in the next HA update I don't know how to decode the co2 data (if its there) although I suspect it is since its 3 bytes longer than the pro model without the |
Its likely the CO2 data is in
maybe the last 2 bytes?
not sure what the device was reading at the time |
config_entry-bluetooth-e51677d7fc3ffc805c2e11f1b02b2619.json Here is the entire file, if that helps. In case I missed something important. I am not well versed in what to look for yet. |
All the data looks like its there. The process to figure out the CO2 sensor value would be to turn on debug logging for
Once you have ~20 different values ManufacturerData and screen reading to compare with, that is usually enough to figure out how its encoded. Sometimes you need a lot more if they use partial byte encoding or a mistake is made comparing the ManufacturerData to the value on the screen in the spreadsheet |
The link in the image should work as well. You'll need 20 different CO2 values on the screen with the timing the reading lined up to the timestamp in the log |
Its usually easier to ssh in an |
I see why you said it's better to do it yourself. I will try. It updates CO2 every 1 minute when plugged in, so this will take some time. |
If this looks good, I will continue. Here is one sample:
|
That looks like the right data. The goal is to produce something like this... https://dpaste.org/npg3j
.... |
I setup a log to capture 20 updates using
Example output: Do I need to do anything else special with the timestamp? I figured it can just be logged when the command fires off, no? (other than recording the CO2 value by hand obviously) |
The timestamps aren't usually important except for making sure you got the hand recorded value correct. I usually note the time when I write down the values and than double check them against the log timestamps later to make sure I didn't get any out of order or incorrect as one wrong one can make it harder to figure out how its encoded as you might miss the pattern |
The timestamp confuses me.
|
Got these 6 so far. If it looks okay, I'll get more later on. Taking a break. |
When I run:
with the data I pulled at timestamp |
Ah, I should've asked in the HomeAssistant issues (still would appreciate if anyone knows what I should do). |
Hi,
I just got a meter pro and was hoping to get it added to Home Assistant via Bluetooth.
Happy to help as I have the device now!
Thanks,
Adam
The text was updated successfully, but these errors were encountered: