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: README.md
+6-10
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,5 @@
1
1
# TooGoodToGo items stock as a sensor in Home Assistant
2
2
3
-
⚠ There's an [on-going issue](https://github.com/Chouffy/home_assistant_tgtg/issues/37) that prevents retrieving the `tgtg` data.
4
-
This module will probably won't work for you right now, unlessit is resolved on the upstream module - see [this issue](https://github.com/ahivert/tgtg-python/issues/205).
5
-
6
-
---
7
-
8
3
This aim to show the stock of one or multiple [TooGoodToGo](https://toogoodtogo.com/) item using the [tgtg-python](https://github.com/ahivert/tgtg-python) library.
9
4
Sensor data can be used afterward to generate notifications, history graphs, ... share your best examples in the [Discussion tab](https://github.com/Chouffy/home_assistant_tgtg/discussions)!
10
5
@@ -28,13 +23,14 @@ Sensor data can be used afterward to generate notifications, history graphs, ...
28
23
sensor:
29
24
- platform: tgtg
30
25
26
+
# Optional: email so you know which account is used
27
+
email: 'Your TGTG mail'
28
+
31
29
# Mandatory: tokens for authentication - see the tgtg_get_tokens.py script
32
30
access_token: "abc123"
33
31
refresh_token: "abc123"
34
-
user_id: "123"
35
-
36
-
# Optional: email so you know which account is used
37
-
username: 'Your TGTG mail'
32
+
user_id: "123456"
33
+
cookie: "datadome=..."
38
34
39
35
# Optional: Refresh the stock every 15 minutes
40
36
scan_interval: 900
@@ -51,7 +47,7 @@ sensor:
51
47
52
48
```
53
49
54
-
`access_token`, `refresh_token`and `user_id` can be retrieved using the [tgtg_get_tokens](./tgtg_get_tokens.py) script!
50
+
`access_token`, `refresh_token`, `user_id`and `cookie` can be retrieved using the [tgtg_get_tokens](./tgtg_get_tokens.py) script!
0 commit comments