Skip to content
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

Expose actual values (e.g. temperature / heat / light) #22

Open
cybernard opened this issue Feb 19, 2022 · 12 comments
Open

Expose actual values (e.g. temperature / heat / light) #22

cybernard opened this issue Feb 19, 2022 · 12 comments
Labels
blocked enhancement New feature or request

Comments

@cybernard
Copy link

Description

First, thanks for your time and effort in creating this plugin, it just worked.

If I do an export from google, I actually get temperatures, humidity and etc as numeric values. Is there any plan to give access to these values? Right now it just says "Normal", and I would like to have the actual values.

Device (optional)

Nest Protect wired

Additional information

No response

@cybernard cybernard added the enhancement New feature or request label Feb 19, 2022
@iMicknl
Copy link
Owner

iMicknl commented Feb 19, 2022

Can you tell a bit more about how you can do this export? As far as I am aware, there is no way to access these values.

It is not present in the API we currently use at least. And the Homebridge-nest plug-in doesn't have this as well.

@cybernard
Copy link
Author

Yes, I can. Goto http://takeout.google.com
2. Sign in with your google account
3. Select "Deselect all"
4. Scroll down, and check Nest
5. Here select the frequency and type
6. It defaults to once and zip so I just leave it
7. Create Export
8. Wait between 10 minutes and 12 hours depending on how heavily loaded the google servers.
9. download the ZIP file
10. open the zip file
11. There are folders for each nest product
12. there are subfolders for each year
13. Each month has a CSV file contain all the data.

@iMicknl
Copy link
Owner

iMicknl commented Feb 19, 2022

Time Event Description MaxValue
2022-01-11T12:30Z AmbientLightSensorbucket 63.000000
2022-01-11T12:30Z Humiditybucket 52.400000
2022-01-11T12:30Z Passiveinfraredbucket 214.000000
2022-01-11T12:30Z Temperaturebucket 20.800000

Interesting (and creepy) to see that Google collects the raw values, even though they currently don't offer a way to retrieve them in real-time. Just via the batch data collection form that you shared above.

If someone knows where to gather this information, I am happy to implement it. But until we figure this out, we are blocked.

@iMicknl
Copy link
Owner

iMicknl commented Feb 19, 2022

2022-01-23T19:13:00.931Z 2022-01-23T19:13:04.811Z Pathlight Duration milliseconds: 3880
2022-01-23T19:13:08.061Z 2022-01-23T19:13:11.360Z Pathlight Duration milliseconds: 3299
2022-01-23T19:13:18.540Z 2022-01-23T19:13:37.365Z Pathlight Duration milliseconds: 18825
2022-01-23T19:13:39.392Z 2022-01-23T19:13:42.044Z Pathlight Duration milliseconds: 2652
2022-01-23T19:13:50.042Z 2022-01-23T19:13:52.027Z Pathlight Duration milliseconds: 1985

Interesting that they are also able to detect the duration of the pathligh (occupancy), which is currently not possible to retrieve via the API as well.

@cybernard
Copy link
Author

cybernard commented Feb 19, 2022

I guess as a temporary measure would it be reasonable to allow the import of said files into Home Assistant? They are after all just CSV files. Especially since the CSV file contain a complete record of all the data.

@iMicknl
Copy link
Owner

iMicknl commented Feb 19, 2022

What would be the use-case? Since you will only have historical data at that point.

@cybernard
Copy link
Author

While, yes it is historical data, I personally am trying to get ALL my house data into a single place. However, to be fair some of the data is only a few hours old. Now if I have to have 90% their and 10 percent in csv files it defeats the point. Plus Home Assistant generates graphs automatically, and that is one thing I really want. Also I want to compare the temperature at ceiling level and shoulder or lower level to see what kind of difference exist. The other thing is I can graph nest protect with all my ecobee sensors and compare them side by side.

While everyone wants real time data until that happens I would happy to just have all the data in one place.

If you have any new versions you want me to test I would be happy to test them.

@iMicknl
Copy link
Owner

iMicknl commented Feb 19, 2022

I will leave this issue open for others, since I won't be implementing this 🙂. It is quite some hassle and I won't have the time to implement this. I can imagine your use-case and perhaps you can do something with https://www.home-assistant.io/integrations/file/#sensor.

New versions will be posted as release on GitHub, or as pre-release.

@fokcuk
Copy link

fokcuk commented Mar 10, 2022

Very interesting info, but as mentioned not much use if you cannot get the live data. You will probably be able to if they ever decided to have proper api access. But with some confusing articles that I have read, it looks as though they have abandoned Nest protect

@iMicknl
Copy link
Owner

iMicknl commented Mar 10, 2022

Even when they add it to the SDM API, I don't think they will directly expose these values. They currently don't expose these values in their Nest app as well..

@OscarHanzely
Copy link

Hmm, Google is gathering more data about us every day and we don't even know it. Like presence in individual rooms.. I am wondering which terms and conditions section said they can sell that data :D or how hot is it in my house over time.

@cybernard
Copy link
Author

cybernard commented Mar 10, 2022 via email

@iMicknl iMicknl changed the title Actual Temperature,heat, and light and etc values Expose actual values (e.g. temperature / heat / light) Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants