Bonjour,
J’ai de manière aléatoire, mais assez frequente des erreurs dans mqtt2, de type « Error on send to jeedom »
93974|[2025-03-19 10:44:21] DEBUG : Send data to jeedom : {"shellies":{"shellyswitch25-68C63AF91E07":{"relay":{"0":"off","1":"on"},"input":{"0":1,"1":0},"temperature":41.94,"temperature_f":107.49,"overtemperature":0,"temperature_status":"Normal","voltage":233.01}},"zigbee2mqtt42":{"CH Anna - Vanne":{"away_preset_temperature":"5.0","battery":100,"calibrated":true,"child_lock":"UNLOCK","device":{"applicationVersion":30,"dateCode":"Feb 20 2023","friendlyName":"CH Anna - Vanne","hardwareVersion":1,"ieeeAddr":"0x54ef4410007f65d8","manufacturerID":4447,"manufacturerName":"LUMI","model":"SRTS-A01","networkAddress":1042,"powerSource":"Battery","softwareBuildID":"0.0.0_1030","type":"EndDevice","zclVersion":3},"device_temperature":20,"internal_heating_setpoint":16,"last_seen":"2025-03-19T11:44:21+01:00","linkquality":255,"local_temperature":16.42,"occupied_heating_setpoint":16,"power_outage_count":228,"preset":"manual","schedule":false,"schedule_settings":"mon,sun|0:00,21.0|12:00,17.0|18:00,21.0|23:59,21.0","sensor":"external","setup":false,"system_mode":"heat","update":{"installed_version":2590,"latest_version":2590,"state":"idle"},"valve_alarm":false,"valve_detection":true,"voltage":3000,"window_detection":true,"window_open":false},"Entrée - Lampadaire 2":{"brightness":254,"color":{"hue":25,"saturation":95},"color_mode":"hs","color_temp":495,"device":{"applicationVersion":112,"friendlyName":"Entrée - Lampadaire 2","hardwareVersion":0,"ieeeAddr":"0xa4c138dab4157b6e","manufacturerID":4417,"manufacturerName":"_TZ3210_it1u8ahz","model":"TS0505B_2_2","networkAddress":45510,"powerSource":"Unknown","softwareBuildID":"z.1.0","stackVersion":2,"type":"Router","zclVersion":3},"do_not_disturb":true,"last_seen":"2025-03-19T11:44:21+01:00","linkquality":255,"state":"OFF"}}}
93975|[2025-03-19 10:44:21] ERROR : Error on send to jeedom : {"message":"Request failed with status code 500","name":"AxiosError","stack":"AxiosError: Request failed with status code 500\n at settle (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/axios/dist/node/axios.cjs:1913:12)\n at IncomingMessage.handleStreamEnd (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/axios/dist/node/axios.cjs:2995:11)\n at IncomingMessage.emit (node:events:536:35)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","User-Agent":"axios/1.5.1","Content-Length":"1726","Accept-Encoding":"gzip, compress, deflate, br"},"httpAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"protocol":"http:","options":{"keepAlive":false,"noDelay":true,"path":null},"requests":{},"sockets":{"127.0.0.1:80:":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_closeAfterHandlingError":false,"_events":{"close":[null,null]},"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"_writableState":{"highWaterMark":16384,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":1},"allowHalfOpen":false,"_eventsCount":7,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null,"parser":null,"_httpMessage":{"_events":{},"_eventsCount":7,"outputData":[],"outputSize":0,"writable":true,"destroyed":false,"_last":true,"chunkedEncoding":false,"shouldKeepAlive":false,"maxRequestsOnConnectionReached":false,"_defaultKeepAlive":true,"useChunkedEncodingByDefault":true,"sendDate":false,"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"strictContentLength":false,"_contentLength":"1726","_hasBody":true,"_trailer":"","finished":true,"_headerSent":true,"_closed":false,"_header":"POST /plugins/mqtt2/core/php/jeeMqtt2.php?apikey=gQGGi3vQAQDDjx1nCCsUkLChJYghBLOjnZtBhbCegOZAT7d8GRKqPnYj62iIDd0H HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/x-www-form-urlencoded\r\nUser-Agent: axios/1.5.1\r\nContent-Length: 1726\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: 127.0.0.1\r\nConnection: close\r\n\r\n","_keepAliveTimeout":0,"method":"POST","path":"/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=gQGGi3vQAQDDjx1nCCsUkLChJYghBLOjnZtBhbCegOZAT7d8GRKqPnYj62iIDd0H","_ended":true,"res":{"_events":{"end":[null,null]},"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"httpVersionMajor":1,"httpVersionMinor":0,"httpVersion":"1.0","complete":true,"rawHeaders":["Date","Wed, 19 Mar 2025 10:44:21 GMT","Server","Apache","X-Content-Type-Options","nosniff","X-Frame-Options","sameorigin","X-XSS-Protection","1; mode=block","Referrer-Policy","strict-origin-when-cross-origin","Permissions-Policy","accelerometer=(),battery=(),fullscreen=(self),geolocation=(),camera=(),ambient-light-sensor=(self),autoplay=(self)","Content-Security-Policy","default-src 'self' file: data: blob: filesystem:;script-src-attr 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr *.googleapis.com *.openstreetmap.org;script-src 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr *.openstreetmap.org;script-src-elem 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr *.openstreetmap.org;img-src 'self' * data:;style-src 'self' 'unsafe-inline';style-src-attr 'self' 'unsafe-inline';worker-src blob:;frame-src 'self' *.jeedom.com *.google.com *.google.fr *.googleapis.com *.openstreetmap.org data:;","Access-Control-Allow-Origin","*","Access-Control-Allow-Credentials","true","Access-Control-Allow-Headers","origin, x-requested-with, content-type","Access-Control-Allow-Methods","PUT, GET, POST, DELETE, OPTIONS","Content-Length","0","Connection","close","Content-Type","text/html; charset=UTF-8"],"rawTrailers":[],"aborted":false,"upgrade":false,"url":"","method":null,"statusCode":500,"statusMessage":"Internal Server Error","_consuming":false,"_dumped":false,"_eventsCount":4,"responseUrl":"http://127.0.0.1/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=gQGGi3vQAQDDjx1nCCsUkLChJYghBLOjnZtBhbCegOZAT7d8GRKqPnYj62iIDd0H","redirects":[]},"aborted":false,"timeoutCb":null,"upgradeOrConnect":false,"parser":null,"maxHeadersCount":null,"reusedSocket":false,"host":"127.0.0.1","protocol":"http:","_redirectable":{"_events":{},"_writableState":{"highWaterMark":16384,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":0},"_options":{"maxRedirects":21,"maxBodyLength":null,"protocol":"http:","path":"/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=gQGGi3vQAQDDjx1nCCsUkLChJYghBLOjnZtBhbCegOZAT7d8GRKqPnYj62iIDd0H","method":"POST","headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","User-Agent":"axios/1.5.1","Content-Length":"1726","Accept-Encoding":"gzip, compress, deflate, br"},"agents":{},"beforeRedirects":{},"hostname":"127.0.0.1","port":"","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"maxHeaderSize":16384,"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"protocol":"http:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0}},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":443,"protocol":"https:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0,"maxCachedSessions":100,"_sessionCache":{"map":{},"list":[]}}}},"pathname":"/plugins/mqtt2/core/php/jeeMqtt2.php","search":"?apikey=gQGGi3vQAQDDjx1nCCsUkLChJYghBLOjnZtBhbCegOZAT7d8GRKqPnYj62iIDd0H"},"_ended":true,"_ending":true,"_redirectCount":0,"_redirects":[],"_requestBodyLength":1726,"_requestBodyBuffers":[],"_eventsCount":3,"_currentUrl":"http://127.0.0.1/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=gQGGi3vQAQDDjx1nCCsUkLChJYghBLOjnZtBhbCegOZAT7d8GRKqPnYj62iIDd0H"}}}]},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":false,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":1},"method":"post","url":"http://127.0.0.1:80/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=gQGGi3vQAQDDjx1nCCsUkLChJYghBLOjnZtBhbCegOZAT7d8GRKqPnYj62iIDd0H","data":"{\"shellies\":{\"shellyswitch25-68C63AF91E07\":{\"relay\":{\"0\":\"off\",\"1\":\"on\"},\"input\":{\"0\":1,\"1\":0},\"temperature\":41.94,\"temperature_f\":107.49,\"overtemperature\":0,\"temperature_status\":\"Normal\",\"voltage\":233.01}},\"zigbee2mqtt42\":{\"CH Anna - Vanne\":{\"away_preset_temperature\":\"5.0\",\"battery\":100,\"calibrated\":true,\"child_lock\":\"UNLOCK\",\"device\":{\"applicationVersion\":30,\"dateCode\":\"Feb 20 2023\",\"friendlyName\":\"CH Anna - Vanne\",\"hardwareVersion\":1,\"ieeeAddr\":\"0x54ef4410007f65d8\",\"manufacturerID\":4447,\"manufacturerName\":\"LUMI\",\"model\":\"SRTS-A01\",\"networkAddress\":1042,\"powerSource\":\"Battery\",\"softwareBuildID\":\"0.0.0_1030\",\"type\":\"EndDevice\",\"zclVersion\":3},\"device_temperature\":20,\"internal_heating_setpoint\":16,\"last_seen\":\"2025-03-19T11:44:21+01:00\",\"linkquality\":255,\"local_temperature\":16.42,\"occupied_heating_setpoint\":16,\"power_outage_count\":228,\"preset\":\"manual\",\"schedule\":false,\"schedule_settings\":\"mon,sun|0:00,21.0|12:00,17.0|18:00,21.0|23:59,21.0\",\"sensor\":\"external\",\"setup\":false,\"system_mode\":\"heat\",\"update\":{\"installed_version\":2590,\"latest_version\":2590,\"state\":\"idle\"},\"valve_alarm\":false,\"valve_detection\":true,\"voltage\":3000,\"window_detection\":true,\"window_open\":false},\"Entrée - Lampadaire 2\":{\"brightness\":254,\"color\":{\"hue\":25,\"saturation\":95},\"color_mode\":\"hs\",\"color_temp\":495,\"device\":{\"applicationVersion\":112,\"friendlyName\":\"Entrée - Lampadaire 2\",\"hardwareVersion\":0,\"ieeeAddr\":\"0xa4c138dab4157b6e\",\"manufacturerID\":4417,\"manufacturerName\":\"_TZ3210_it1u8ahz\",\"model\":\"TS0505B_2_2\",\"networkAddress\":45510,\"powerSource\":\"Unknown\",\"softwareBuildID\":\"z.1.0\",\"stackVersion\":2,\"type\":\"Router\",\"zclVersion\":3},\"do_not_disturb\":true,\"last_seen\":\"2025-03-19T11:44:21+01:00\",\"linkquality\":255,\"state\":\"OFF\"}}}"},"code":"ERR_BAD_RESPONSE","status":500}
Ces erreurs semblent liées à d’autes erreurs coté http :
0254|[Wed Mar 19 11:44:21.295418 2025] [php:error] [pid 606:tid 606] [client 127.0.0.1:45572] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /var/www/html/plugins/z2m/core/class/z2m.class.php:1149\nStack trace:\n#0 /var/www/html/plugins/z2m/core/class/z2m.class.php(511): z2mCmd::convertXYToRGB()\n#1 /var/www/html/plugins/mqtt2/core/php/jeeMqtt2.php(32): z2m::handleMqttMessage()\n#2 {main}\n thrown in /var/www/html/plugins/z2m/core/class/z2m.class.php on line 1149
Erreurs liées à jeezigbee (plugin-z2m ) et une histoire de division par zero (DivisionByZeroError)
et plus precisement su rune fonciton de conversion convertXYtoRGB
Toutes les erreurs se concentre effectivement vers des capteur zigbee, mais ne semblent pas bloquantes
Voilà, si plus d’infos demandées pour corriger (ou me dire comment corriger), je suis à dispo
Je suis en Jeedom beta 4.5 et en stable sur les plugins mqtt2 et z2m (derniere version de z2m aussi 2.1.3)
Norbert
