diff --git a/README.md b/README.md index f8a61630..3f4a3d2c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/state_attr.js b/lib/state_attr.js index f4056b7d..94342385 100644 --- a/lib/state_attr.js +++ b/lib/state_attr.js @@ -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', @@ -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', diff --git a/main.js b/main.js index ae21958b..565f4253 100644 --- a/main.js +++ b/main.js @@ -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,