-
Notifications
You must be signed in to change notification settings - Fork 16
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
Eve Room 2 #107
Comments
I'm looking at plotting ppq values, did any of the characteristics change between Room 1 and 2? |
From what I could gather so far, the reason PPB values are not shown are because of a different data-stream that's expected (compared to Eve Room v1). This hasn't been implemented and needs to be reverse-engineered first. |
Here's a dump of the history service data-stream (HMCatalogue) for the different characteristic IDs from an Eve Room 2 (fyi @ebaauw). Additionial type refs from Eve Energy #75 11E- 11C- 121- 116- (signature) 117- (data) 131- |
Here's a dissect of the data-stream (117): 15 (L) | d1c90200 (C) | 19abd502 (t)| 7f (entry type) | ec08 2f17 7200 0055 a60f01 (data) | L = Length (Refs: https://gist.github.com/simont77/3f4d4330fa55b83f8ca96388d9004e7d) Signature (ref #75) The dumps above don't seem to align with the screenshots, but here's my assumption: 15 (L) | d4c90200 (C) | 21b2d502 (t)| 7f (entry type) | fa?? | 0887 (2183 / 100 = 21,83C) | 1752 (5970 / 100 = 59,7%) | 0100 54 a80f01 (data) | These seem to align with the exported logs, except for ppb which I couldn't figure out so far (potentially reported in μg/m3?) |
After looking into this further I believe I cracked it. The prior post contained a lot of false approaches (e.g. no conversion between Big/Little Endian). Data Example: Results in (Exported from Eve App): Kudos to @HomeKidd , the 4.57 conversion factor seems spot on here. |
Seems like the last few bytes of the data-stream are important as well, otherwise it won't display anything in the Eve app. Though I can't tell what they are good for (some seems battery history data). |
Some important additional learnings from using this in other projects: |
Having looked over this, I think the data is translated as follows: Length| Counter | time delta. | Temp | Hum | VOC | ?? | Battery Level % | Battery Millivolts | ?? So in the PR you submitted with the data streaming finger print of
0x54 = battery of 84% So based on that, I'm guessing with 100% battery, mv would be 4771 and you could use the data stream encoding as ",15 %s%s%s%s%s%s 00 64 a312 01", Theory to test? |
I've dig deeper into the newer Eve Room and figured out the correct way to the history graphs for ppb based Air Quality.
The correct "order" for the New Eve Room Services/Characteristics:
Air Quality Sensor Service (primary):
Temperature Sensor Service:
Humidity Sensor Service:
Eve History Service
According to FCC docs, Eve Room 2 uses a Sensirion SGP30 for measuring Air Quality (tVOC). The first gen Room used an AMS sensor for eCO2 and tVOC and the graphs was based on the CO2 sensor's ppm reading, the new Room measures in ppb.
Home app displays VOC in μg/m3 units which makes sense!
Setting the VOC Density characteristic:
What i've figured out is dividing the VOC Density values by 4.57 (and round it) gives the correct ppb values from μg/m3:
Then I've found the recommendation for the Sensirion SGP30 TVOC calibration and also the correct formula for conversation:
The formula i've found and used for ppb to μg/m3 conversation:
Looks like Eve used constant 20 °C temperature in the equation because this gives the correct (and constant) 4.57 ppb to μg/m3 formula. 😄
In short:
I need someone who can test and confirm this because i'm using native Homekit on ESP8266 currently without history yet👷♂️
The text was updated successfully, but these errors were encountered: