Bonjour.
Tout d’abord merci beaucoup car ce plugin est vraiment intéressant et apporte une solution pour beaucoup d’utilisateurs belges. Avant, il fallait écrire soi-même un script python.
J’ai installé le plugin ce weekend. Il fonctionne bien pendant quelques heures mais, ensuite, les commandes ne sont plus mises à jour et je vois ces messages d’erreur dans les logs (en mode debug). Note: j’ai mis des X aux données sensibles des logs.
Au niveau santé, tout est vert. Au niveau configuration, le deemon est bien démarré et il n’y a pas de soucis au niveau des dépendances.
Quand je redémarre le démon, cela refonctionne pour quelques heures.
A noter que le module homewizard P1 remonte bien en parallèle les données dans Home Assistant et, dans Jeedom, j’ai toujours aussi mon script python qui l’interroge toutes les minutes (toujours en parallèle) dans Jeedom et qui remonte bien, dans Jeedom, des données alors que le plugin ne le fait plus (je pense donc que le module homewizard P1 n’est pas en erreur).
[06-01-2025 10:12:38] DEBUG : HWE-P1_X (getData) : Remove from mdns cache...
Erreur communication avec Jeedom en JsonRPC (retry 0/3): AxiosError: timeout of 20000ms exceeded
at RedirectableRequest.handleRequestTimeout (/var/www/html/plugins/HomeWizard/resources/node_modules/axios/dist/node/axios.cjs:3200:16)
at RedirectableRequest.emit (node:events:518:28)
at Timeout.<anonymous> (/var/www/html/plugins/HomeWizard/resources/node_modules/follow-redirects/index.js:221:12)
at listOnTimeout (node:internal/timers:581:17)
at process.processTimers (node:internal/timers:519:7)
at Axios.request (/var/www/html/plugins/HomeWizard/resources/node_modules/axios/dist/node/axios.cjs:4252:41)
at runNextTicks (node:internal/process/task_queues:60:5)
at listOnTimeout (node:internal/timers:545:9)
at process.processTimers (node:internal/timers:519:7)
at async JeedomAPI.processJeedomSendQueue (/var/www/html/plugins/HomeWizard/resources/utils/jeedom.js:53:32) {
code: 'ECONNABORTED',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http', 'fetch' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 20000,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: { FormData: [Function], Blob: [class Blob] },
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json',
'Accept-Encoding': 'gzip, deflate',
'User-Agent': 'axios/1.7.9',
'Content-Length': '1115'
},
method: 'post',
url: 'http://192.X.X.X/core/api/jeeApi.php',
data: '{"jsonrpc":"2.0","id":572,"method":"event","params":{"plugin":"HomeWizard","apikey":"XXXX","data":{"eventType":"updateValue","id":"HWE-P1_XXXX","value":{"wifi_ssid":"XXXX","wifi_strength":100,"smr_version":50,"meter_model":"Fluvius XXXX","unique_id":"XXXX","active_tariff":1,"total_power_import_kwh":23649.041,"total_power_import_t1_kwh":11844.742,"total_power_import_t2_kwh":11804.299,"total_power_export_kwh":14014.732,"total_power_export_t1_kwh":9707.538,"total_power_export_t2_kwh":4307.194,"active_power_w":1443,"active_power_l1_w":398,"active_power_l2_w":0,"active_power_l3_w":1044,"active_voltage_l1_v":230.9,"active_voltage_l2_v":0,"active_voltage_l3_v":230.9,"active_current_a":12.92,"active_current_l1_a":3.18,"active_current_l2_a":4.69,"active_current_l3_a":5.05,"active_power_average_w":1878,"montly_power_peak_w":4653,"montly_power_peak_timestamp":250102204500,"external":[]},"type":"event","apikey":"XXXX","plugin":"HomeWizard"}}}'
},
request: <ref *1> Writable {
_events: {
close: undefined,
error: [Function: handleRequestError],
prefinish: undefined,
finish: undefined,
drain: undefined,
response: [Function: handleResponse],
socket: [Array],
timeout: undefined,
abort: undefined
},
_writableState: WritableState {
highWaterMark: 16384,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
_maxListeners: undefined,
_options: {
maxRedirects: 21,
maxBodyLength: Infinity,
protocol: 'http:',
path: '/core/api/jeeApi.php',
method: 'POST',
headers: [Object: null prototype],
agents: [Object],
auth: undefined,
family: undefined,
beforeRedirect: [Function: dispatchBeforeRedirect],
beforeRedirects: [Object],
hostname: '192.X.X.X,
port: '',
agent: undefined,
nativeProtocols: [Object],
pathname: '/core/api/jeeApi.php'
},
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 1115,
_requestBodyBuffers: [ [Object] ],
_eventsCount: 3,
_onNativeResponse: [Function (anonymous)],
_currentRequest: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: '1115',
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: [Socket],
_header: 'POST /core/api/jeeApi.php HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json\r\n' +
'Accept-Encoding: gzip, deflate\r\n' +
'User-Agent: axios/1.7.9\r\n' +
'Content-Length: 1115\r\n' +
'Host: 192.X.X.X\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/core/api/jeeApi.php',
_ended: false,
res: null,
aborted: false,
timeoutCb: [Function: emitRequestTimeout],
upgradeOrConnect: false,
parser: [HTTPParser],
maxHeadersCount: null,
reusedSocket: true,
host: '192.X.X.X',
protocol: 'http:',
_redirectable: [Circular *1],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
_currentUrl: 'http://192.X.X.X/core/api/jeeApi.php',
_timeout: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
}
}
[
...
[06-01-2025 10:35:43] DEBUG : HWE-P1_5c2faf10b9a8 (getData) : Remove from mdns cache...
[06-01-2025 10:35:43] ERROR : HWE-P1_5c2faf10b9a8 (getData) : SocketError: other side closed
[06-01-2025 10:35:43] DEBUG : HWE-P1_5c2faf10b9a8 (getData) : Remove from mdns cache...
[06-01-2025 10:35:43] ERROR : HWE-P1_5c2faf10b9a8 (getData) : SocketError: other side closed
[06-01-2025 10:35:43] DEBUG : HWE-P1_5c2faf10b9a8 (getData) : Remove from mdns cache...
[06-01-2025 10:35:43] ERROR : HWE-P1_5c2faf10b9a8 (getData) : SocketError: other side closed
[06-01-2025 10:35:43] DEBUG : HWE-P1_5c2faf10b9a8 (getData) : Remove from mdns cache...
...
[06-01-2025 10:39:45] DEBUG : HWE-P1_5c2faf10b9a8 (getData) : Remove from mdns cache...
[06-01-2025 10:39:45] ERROR : HWE-P1_5c2faf10b9a8 (getData) : TypeError: Cannot read properties of undefined (reading 'mdns')
[06-01-2025 10:39:45] DEBUG : HWE-P1_5c2faf10b9a8 (getData) : Remove from mdns cache...
[06-01-2025 10:39:45] ERROR : HWE-P1_5c2faf10b9a8 (getData) : TypeError: Cannot read properties of undefined (reading 'mdns')
[06-01-2025 10:39:45] DEBUG : HWE-P1_5c2faf10b9a8 (getData) : Remove from mdns cache...
[06-01-2025 10:39:45] ERROR : HWE-P1_5c2faf10b9a8 (getData) : Error: read ECONNRESET
[06-01-2025 10:39:45] DEBUG : HWE-P1_5c2faf10b9a8 (getData) : Remove from mdns cache...
[06-01-2025 10:39:45] ERROR : HWE-P1_5c2faf10b9a8 (getData) : Error: read ECONNRESET
[06-01-2025 10:39:45] DEBUG : HWE-P1_5c2faf10b9a8 (getData) : Remove from mdns cache...