You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/device_tracker.google_plus.markdown
+11-10Lines changed: 11 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,14 @@
1
1
---
2
2
layout: page
3
3
title: "Google Plus"
4
-
description: "Instructions how to use Google Plus to track Android devices in Home Assistant."
4
+
description: "Instructions how to use Google Plus to track mobile devices in Home Assistant."
5
5
date: 2016-11-1 19:00
6
6
sidebar: true
7
7
comments: false
8
8
sharing: true
9
9
footer: true
10
10
ha_category: Presence Detection
11
+
ha_version: TBD
11
12
---
12
13
If you share your Android's location with Google, this component fetches those locations from Google's servers to your Home Assistant. This component does NOT directly communicate with your phone, thus using this component does not cause any additional battery drain.
13
14
Suppose your Android phone is linked to your Google Account, say main@gmail.com.
@@ -17,19 +18,19 @@ This component can be used in 2 modes:
17
18
18
19
19
20
```yaml
20
-
# Example configuration.yaml entry
21
+
# Example configuration.yaml entry. See below for instructions for obtaining the values of fields.
21
22
device_tracker 3:
22
23
platform: gplus
23
24
id: 'phone'
24
-
url: '...'
25
-
cookie_sid: '...'
26
-
cookie_hsid: '...'
27
-
cookie_ssid: '...'
28
-
data_freq: '...'
29
-
data_at: '...'
25
+
url: 'POST requests for location are sent to this URL'
26
+
cookie_sid: 'POST requests send this cookie for authenticating the google account'
27
+
cookie_hsid: 'POST requests send this cookie for authenticating the google account'
28
+
cookie_ssid: 'POST requests send this cookie for authenticating the google account'
29
+
data_freq: 'POST data payload for requesting location'
30
+
data_at: 'POST data payload for requesting location'
30
31
```
31
32
32
-
###How to obtain the values shown as '...' (credits to @icovada):
33
+
###How to obtain the values shown as '...':
33
34
34
35
35
36
- If using this component in Self Mode, open Firefox and log into Google as main@google.com
@@ -49,4 +50,4 @@ looks like data?ds.extension
49
50
for python requests. If you don't trust that website, note that they provide sources of the tool. So run the tool on your local machine.
50
51
- The python code contains dictionaries with keys that have names similar to the above
51
52
fields in the config file. Copy the corresponding values to the config file.
52
-
- The url field is the first argument of `requests.post` in the last line of the python code.
53
+
- The URL field is the first argument of `requests.post` in the last line of the python code.
0 commit comments