Skip to content

Commit

Permalink
* (HGlab01) Add attributes 'expiryInSeconds' and 'activated'
Browse files Browse the repository at this point in the history
* (HGlab01) Extend timeout back to 20s
  • Loading branch information
HGlab01 committed Oct 28, 2024
1 parent a435b4b commit 5daadc6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ If your setup is not working, please raise a [ticket](https://github.com/Drozmot
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->
### __WORK IN PROGRESS__
* (HGlab01) Add attributes 'expiryInSeconds' and 'activated'
* (HGlab01) Extend timeout back to 20s

### 0.6.0 (2024-10-23)
* (HGlab01) Start supporting Tado° X

Expand Down
10 changes: 10 additions & 0 deletions lib/state_attr.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Classification of all state attributes possible

const state_attrb = {
'activated': {
'name': 'Activated',
'role': 'info',
'type': 'boolean'
},
'additionalConsents': {
'name': 'Additional Consents',
'role': 'json',
Expand Down Expand Up @@ -226,6 +231,11 @@ const state_attrb = {
'role': 'value.time',
'type': 'string'
},
'expiryInSeconds': {
'name': 'Expiry in seconds',
'role': 'info',
'type': 'number'
},
'fahrenheit': {
'name': 'Temperature Fahrenheit',
'role': 'value.temperature',
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const { version } = require('./package.json');

// @ts-ignore
let axiosInstance = axios.create({
timeout: 5000, //20000
timeout: 20000, //20000
baseURL: `${tado_url}/`,
httpsAgent: new https.Agent({ keepAlive: true }),
referer: tado_app_url,
Expand Down

0 comments on commit 5daadc6

Please sign in to comment.