BOXAPI] [getAttributesValue] Error occurred on getAttributesValue : FetchError: invalid json response body at https://my.zipato.com/zipato-web/Index reason: Unexpected token < in JSON at position 121
at /usr/local/lib/node_modules/homebridge-zipabox-platform/node_modules/node-fetch/lib/index.js:273:32
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
type: 'invalid-json'
}
Once using a temperature sensor
In fact I found the solution : it's mandatory to enable : "refresh": 600
The value 600 was chosen in order to avoid a timeout with the server
Because else without a refresh it seems the connection to the server disconnects after some inactivity: time-out thus it's needed to re authenticate. If a refresh is enabled it maintains connection to the server and no disconnection because of no activity
I would recommend to enable by default a refresh for devices like temperature sensors or manage error : in case of the error relaunch a new connection to the server api this solution is better because it avoid to connect often to the server to maintain the connection
This is the error message I get :
BOXAPI] [getAttributesValue] Error occurred on getAttributesValue : FetchError: invalid json response body at https://my.zipato.com/zipato-web/Index reason: Unexpected token < in JSON at position 121 at /usr/local/lib/node_modules/homebridge-zipabox-platform/node_modules/node-fetch/lib/index.js:273:32 at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
type: 'invalid-json'
}
Once using a temperature sensor
In fact I found the solution : it's mandatory to enable : "refresh": 600
The value 600 was chosen in order to avoid a timeout with the server
Because else without a refresh it seems the connection to the server disconnects after some inactivity: time-out thus it's needed to re authenticate. If a refresh is enabled it maintains connection to the server and no disconnection because of no activity
I would recommend to enable by default a refresh for devices like temperature sensors or manage error : in case of the error relaunch a new connection to the server api this solution is better because it avoid to connect often to the server to maintain the connection