NEWS
Probleme mit FritzDect Adapter
-
@michael-schmitt Hallo,
in der FB funktioniert alles normal. Zeigt richtig an, kann alles schalten.
Neu anlernen hab ich schon alles probiert.
Gruß Markus -
@markus-hofbauer sagte in Probleme mit FritzDect Adapter:
@foxthefox Hallo,
Version aus Github mit der Katze installiert. Leider selbes Ergebnis.fritzdect.0 2022-01-23 22:38:26.300 error no response part in returned message fritzdect.0 2022-01-23 22:38:26.299 error fritzbox returned this {} fritzdect.0 2022-01-23 22:38:26.296 error errorHandlerTypeError: Converting circular structure to JSON --> starting at object with constructor 'Socket' | property 'parser' -> object with constructor 'HTTPParser' --- property 'socket' closes the circle fritzdect.0 2022-01-23 22:38:26.280 info checking user permissions fritzdect.0 2022-01-23 22:38:25.859 info fritzdect uses USER: hofb1860 fritzdect.0 2022-01-23 22:38:25.818 info fritzdect entered ready fritzdect.0 2022-01-23 22:38:25.789 info starting. Version 2.2.4 in /opt/iobroker/node_modules/iobroker.fritzdect, node: v14.18.3, js-controller: 3.3.22
Gruß Markus
Hallo Markus
danke für die Rückmeldung,
eigentlich hatte ich eine Zeile im log mit 'raw perm =>' erwartet.
Die FB mit 7.16 scheint keine UserPermissions rauszugeben.
Naja, ich kommentier das mal alles raus und beschäftige mich mal mit "leeren Antworten" zu den Berechtigungen.
Bin gestern vom Skifahren zurückgekommen und da hab ich nicht viel Zeit aufgewendet.Es liegt dann demnächst eine Änderung auf git.
Gruß
Klaus -
Noch ein anderer Versuch, außerhalb von ioBroker.
Bitte in einem Terminal in folgenden Pfad navigieren
/opt/iobroker/node_modules/iobroker.fritzdect/lib/fritzdort node "testscript.js -u deinUser -p deinPW --url http://deineIPderFB" aufrufen.
dann sollte in etwa so etwas kommen:
Try to Login ... login sid 9977212fda1010f5 login OK? : true your devices ┌─────────┬─────────────────┬──────┬─────────────────┬───────────┬──────────────┬──────────────────┬─────────┬─────────────────────┐ │ (index) │ identifier │ id │ functionbitmask │ fwversion │ manufacturer │ productname │ present │ name │ ├─────────┼─────────────────┼──────┼─────────────────┼───────────┼──────────────┼──────────────────┼─────────┼─────────────────────┤ │ 0 │ '08761 0006102' │ '16' │ '35712' │ '04.16' │ 'AVM' │ 'FRITZ!DECT 200' │ '1' │ 'FRITZ!DECT 200 #1' │ │ 1 │ '09995 0054862' │ '18' │ '320' │ '04.94' │ 'AVM' │ 'FRITZ!DECT 301' │ '1' │ 'FRITZ!DECT 300 #3' │ │ 2 │ '11657 0074380' │ '19' │ '35712' │ '04.17' │ 'AVM' │ 'FRITZ!DECT 210' │ '1' │ 'FRITZ!DECT 210 #4' │ └─────────┴─────────────────┴──────┴─────────────────┴───────────┴──────────────┴──────────────────┴─────────┴─────────────────────┘ your groups ┌─────────┬───────────────────────┬───────┬─────────────────┬───────────┬─────────┬──────────────┐ │ (index) │ identifier │ id │ functionbitmask │ fwversion │ present │ name │ ├─────────┼───────────────────────┼───────┼─────────────────┼───────────┼─────────┼──────────────┤ │ 0 │ 'grp5665DB-3A12B8E79' │ '900' │ '4160' │ '1.0' │ '1' │ 'themogroup' │ └─────────┴───────────────────────┴───────┴─────────────────┴───────────┴─────────┴──────────────┘ Rights : <Name>Dial</Name><Access>2</Access><Name>App</Name><Access>2</Access><Name>HomeAuto</Name><Access>2</Access><Name>BoxAdmin</Name><Access>2</Access><Name>Phone</Name><Access>2</Access> Check SID OK?: true Check Rights : 1 = read only; 2 = ready and write ┌─────────┬────────┬───────┬────────────┬────────────┬─────────┐ │ (index) │ 0 │ 1 │ 2 │ 3 │ 4 │ ├─────────┼────────┼───────┼────────────┼────────────┼─────────┤ │ Name │ 'Dial' │ 'App' │ 'HomeAuto' │ 'BoxAdmin' │ 'Phone' │ │ Access │ '2' │ '2' │ '2' │ '2' │ '2' │ └─────────┴────────┴───────┴────────────┴────────────┴─────────┘ logout : true
eventuell hängt es ja an etwas ganz anderem, als der Anzeige der Berechtigungen.
Gruß
Klaus -
@markus-hofbauer sagte in Probleme mit FritzDect Adapter:
FB Version: FRITZ!OS: 07.16 - Version aktuell FB Modell: 7582
Wie gesagt, geändert hat sich im System nichts. Angefangen hat es das er keine Temperaturen mehr aktualisiert hat. Die Modis konnte ich noch schalten. Hab dann alles Deinstalliert und wollte neu Installieren. Seit dem kommt dieser Fehler.
Was wir dann alles Probiert haben siehst du ja oben.gab es sonst irgendwelche Änderungen am System? Neuer js-controller? sonstige iobroker updates?
-
@foxthefox Hallo,
pi@raspberrypi:/opt/iobroker/node_modules/iobroker.fritzdect/lib/fritz $ node "testscript.js -u hofb1860 -p hongomax19 --url http://192.168.178.1" internal/modules/cjs/loader.js:905 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.fritzdect/lib/fritz/testscript.js -u hofb1860 -p hongomax19 --url http:/192.168.178.1' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } pi@raspberrypi:/opt/iobroker/node_modules/iobroker.fritzdect/lib/fritz $
Oder hab ich da was falsch eingegeben?
Gruß Markus -
@markus-hofbauer
Da schliesse ich mich @foxthefox an, saß kommt nicht von der Box. -
Hallo,
Habs jetzt anders eingegeben. Ohne Anführunsstriche.pi@raspberrypi:/opt/iobroker/node_modules/iobroker.fritzdect/lib/fritz $ node testscript.js -u hofb1860 -p hongomax19 --url http://192.168.178.1 Try to Login ... login sid fb4d114f7a108c5f login OK? : true your devices ┌─────────┬─────────────────┬──────┬─────────────────┬───────────┬──────────────┬──────────────────┬─────────┬────────────────────┐ │ (index) │ identifier │ id │ functionbitmask │ fwversion │ manufacturer │ productname │ present │ name │ ├─────────┼─────────────────┼──────┼─────────────────┼───────────┼──────────────┼──────────────────┼─────────┼────────────────────┤ │ 0 │ '09995 1021163' │ '19' │ '320' │ '04.97' │ 'AVM' │ 'FRITZ!DECT 301' │ '1' │ 'Esszimmer rechts' │ │ 1 │ '09995 1020710' │ '20' │ '320' │ '04.97' │ 'AVM' │ 'FRITZ!DECT 301' │ '1' │ 'Esszimmer links' │ │ 2 │ '09995 1022706' │ '21' │ '320' │ '04.97' │ 'AVM' │ 'FRITZ!DECT 301' │ '1' │ 'Wohnzimmer' │ └─────────┴─────────────────┴──────┴─────────────────┴───────────┴──────────────┴──────────────────┴─────────┴────────────────────┘ your groups ┌─────────┬───────────────────────┬───────┬─────────────────┬───────────┬─────────┬─────────────┐ │ (index) │ identifier │ id │ functionbitmask │ fwversion │ present │ name │ ├─────────┼───────────────────────┼───────┼─────────────────┼───────────┼─────────┼─────────────┤ │ 0 │ 'grp0710C6-3D328FB9B' │ '900' │ '4160' │ '1.0' │ '1' │ 'Esszimmer' │ └─────────┴───────────────────────┴───────┴─────────────────┴───────────┴─────────┴─────────────┘ Rights : <Name>Dial</Name><Access>2</Access><Name>App</Name><Access>2</Access><Name>HomeAuto</Name><Access>2</Access><Name>BoxAdmin</Name><Access>2</Access><Name>Phone</Name><Access>2</Access> Fehler checkSID { msg: 'AHA request error', function: 'fritzAHA_Request', error: 404, response: <ref *1> IncomingMessage { _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: true, ended: false, endEmitted: false, reading: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: false, destroyed: false, errored: null, closed: false, closeEmitted: false, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, dataEmitted: true, decoder: [StringDecoder], encoding: 'utf8', [Symbol(kPaused)]: false }, _events: [Object: null prototype] { end: [Array], data: [Function (anonymous)] }, _eventsCount: 2, _maxListeners: undefined, socket: Socket { connecting: false, _hadError: false, _parent: null, _host: null, _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 8, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, parser: [HTTPParser], _httpMessage: [ClientRequest], [Symbol(async_id_symbol)]: 76, [Symbol(kHandle)]: [TCP], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(RequestTimeout)]: undefined }, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: false, headers: { connection: 'close', 'content-length': '1703', 'content-type': 'text/html; charset=utf-8' }, rawHeaders: [ 'Connection', 'close', 'Content-Length', '1703', 'Content-Type', 'text/html; charset=utf-8' ], trailers: {}, rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 404, statusMessage: 'Not Found', client: Socket { connecting: false, _hadError: false, _parent: null, _host: null, _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 8, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, parser: [HTTPParser], _httpMessage: [ClientRequest], [Symbol(async_id_symbol)]: 76, [Symbol(kHandle)]: [TCP], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(RequestTimeout)]: undefined }, _consuming: true, _dumped: false, req: ClientRequest { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [Socket], _header: 'GET /login_sid.lua&sid=fb4d114f7a108c5f HTTP/1.1\r\n' + 'Content-Type: application/x-www-form-urlencoded\r\n' + 'Host: 192.168.178.1\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'GET', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/login_sid.lua&sid=fb4d114f7a108c5f', _ended: false, res: [Circular *1], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: [HTTPParser], maxHeadersCount: null, reusedSocket: false, host: '192.168.178.1', protocol: 'http:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] }, [Symbol(kCapture)]: false, [Symbol(RequestTimeout)]: undefined } } Fehler logout_SID { msg: 'AHA request error', function: 'fritzAHA_Request', error: 404, response: <ref *1> IncomingMessage { _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: true, ended: false, endEmitted: false, reading: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: false, destroyed: false, errored: null, closed: false, closeEmitted: false, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, dataEmitted: true, decoder: [StringDecoder], encoding: 'utf8', [Symbol(kPaused)]: false }, _events: [Object: null prototype] { end: [Array], data: [Function (anonymous)] }, _eventsCount: 2, _maxListeners: undefined, socket: Socket { connecting: false, _hadError: false, _parent: null, _host: null, _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 8, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, parser: [HTTPParser], _httpMessage: [ClientRequest], [Symbol(async_id_symbol)]: 85, [Symbol(kHandle)]: [TCP], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(RequestTimeout)]: undefined }, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: false, headers: { connection: 'close', 'content-length': '1703', 'content-type': 'text/html; charset=utf-8' }, rawHeaders: [ 'Connection', 'close', 'Content-Length', '1703', 'Content-Type', 'text/html; charset=utf-8' ], trailers: {}, rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 404, statusMessage: 'Not Found', client: Socket { connecting: false, _hadError: false, _parent: null, _host: null, _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 8, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, parser: [HTTPParser], _httpMessage: [ClientRequest], [Symbol(async_id_symbol)]: 85, [Symbol(kHandle)]: [TCP], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(RequestTimeout)]: undefined }, _consuming: true, _dumped: false, req: ClientRequest { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [Socket], _header: 'GET /login_sid.lua&sid=fb4d114f7a108c5f&logout=1 HTTP/1.1\r\n' + 'Content-Type: application/x-www-form-urlencoded\r\n' + 'Host: 192.168.178.1\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'GET', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/login_sid.lua&sid=fb4d114f7a108c5f&logout=1', _ended: false, res: [Circular *1], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: [HTTPParser], maxHeadersCount: null, reusedSocket: false, host: '192.168.178.1', protocol: 'http:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] }, [Symbol(kCapture)]: false, [Symbol(RequestTimeout)]: undefined } } Devices<devicelist version="1"><device identifier="09995 1021163" id="19" functionbitmask="320" fwversion="04.97" manufacturer="AVM" productname="FRITZ!DECT 301"><present>1</present><name>Esszimmer rechts</name><battery>100</battery><batterylow>0</batterylow><temperature><celsius>245</celsius><offset>15</offset></temperature><hkr><tist>49</tist><tsoll>48</tsoll><absenk>36</absenk><komfort>48</komfort><lock>0</lock><devicelock>0</devicelock><errorcode>0</errorcode><windowopenactiv>0</windowopenactiv><batterylow>0</batterylow><battery>100</battery><nextchange><endperiod>1643050800</endperiod><tchange>36</tchange></nextchange><summeractive>0</summeractive><holidayactive>0</holidayactive></hkr></device><group identifier="grp0710C6-3D328FB9B" id="900" functionbitmask="4160" fwversion="1.0" manufacturer="AVM" productname=""><present>1</present><name>Esszimmer</name><hkr><tist>0</tist><tsoll>48</tsoll><absenk>36</absenk><komfort>48</komfort><lock>0</lock><devicelock>0</devicelock><errorcode>0</errorcode><windowopenactiv>0</windowopenactiv><nextchange><endperiod>1643050800</endperiod><tchange>36</tchange></nextchange><summeractive>0</summeractive><holidayactive>0</holidayactive></hkr><groupinfo><masterdeviceid>0</masterdeviceid><members>19,20</members></groupinfo></group><device identifier="09995 1020710" id="20" functionbitmask="320" fwversion="04.97" manufacturer="AVM" productname="FRITZ!DECT 301"><present>1</present><name>Esszimmer links</name><battery>100</battery><batterylow>0</batterylow><temperature><celsius>245</celsius><offset>10</offset></temperature><hkr><tist>49</tist><tsoll>48</tsoll><absenk>36</absenk><komfort>48</komfort><lock>0</lock><devicelock>0</devicelock><errorcode>0</errorcode><windowopenactiv>0</windowopenactiv><batterylow>0</batterylow><battery>100</battery><nextchange><endperiod>1643050800</endperiod><tchange>36</tchange></nextchange><summeractive>0</summeractive><holidayactive>0</holidayactive></hkr></device><device identifier="09995 1022706" id="21" functionbitmask="320" fwversion="04.97" manufacturer="AVM" productname="FRITZ!DECT 301"><present>1</present><name>Wohnzimmer</name><battery>100</battery><batterylow>0</batterylow><temperature><celsius>240</celsius><offset>5</offset></temperature><hkr><tist>48</tist><tsoll>48</tsoll><absenk>36</absenk><komfort>48</komfort><lock>0</lock><devicelock>0</devicelock><errorcode>0</errorcode><windowopenactiv>0</windowopenactiv><batterylow>0</batterylow><battery>100</battery><nextchange><endperiod>1643050800</endperiod><tchange>36</tchange></nextchange><summeractive>0</summeractive><holidayactive>0</holidayactive></hkr></device></devicelist> Fehler logout_SID { msg: 'AHA request error', function: 'fritzAHA_Request', error: 404, response: <ref *1> IncomingMessage { _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: true, ended: false, endEmitted: false, reading: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: false, destroyed: false, errored: null, closed: false, closeEmitted: false, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, dataEmitted: true, decoder: [StringDecoder], encoding: 'utf8', [Symbol(kPaused)]: false }, _events: [Object: null prototype] { end: [Array], data: [Function (anonymous)] }, _eventsCount: 2, _maxListeners: undefined, socket: Socket { connecting: false, _hadError: false, _parent: null, _host: null, _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 8, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, parser: [HTTPParser], _httpMessage: [ClientRequest], [Symbol(async_id_symbol)]: 124, [Symbol(kHandle)]: [TCP], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(RequestTimeout)]: undefined }, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: false, headers: { connection: 'close', 'content-length': '1703', 'content-type': 'text/html; charset=utf-8' }, rawHeaders: [ 'Connection', 'close', 'Content-Length', '1703', 'Content-Type', 'text/html; charset=utf-8' ], trailers: {}, rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 404, statusMessage: 'Not Found', client: Socket { connecting: false, _hadError: false, _parent: null, _host: null, _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 8, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, parser: [HTTPParser], _httpMessage: [ClientRequest], [Symbol(async_id_symbol)]: 124, [Symbol(kHandle)]: [TCP], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(RequestTimeout)]: undefined }, _consuming: true, _dumped: false, req: ClientRequest { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [Socket], _header: 'GET /login_sid.lua&sid=fb4d114f7a108c5f&logout=1 HTTP/1.1\r\n' + 'Content-Type: application/x-www-form-urlencoded\r\n' + 'Host: 192.168.178.1\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'GET', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/login_sid.lua&sid=fb4d114f7a108c5f&logout=1', _ended: false, res: [Circular *1], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: [HTTPParser], maxHeadersCount: null, reusedSocket: false, host: '192.168.178.1', protocol: 'http:', [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] }, [Symbol(kCapture)]: false, [Symbol(RequestTimeout)]: undefined } } pi@raspberrypi:/opt/iobroker/node_modules/iobroker.fritzdect/lib/fritz $
Gruß Markus
-
Hallo,
hab jetzt noch mal die letzte Version von Github installiert. Jetzt scheint es zu funktionieren.
Gruß Markus -
@markus-hofbauer
Das hilft auf jeden Fall weiter, die xml-Antwort muß ich mal anschauen und die andere Meldung ist interpretationswürdig. Gibt mir aber mindestens eine Idee wo ich suchen kann.
Die FB verwendet noch den alten Login Mechanismus und da ist mir ggf. bei der großen Änderung ab 2.2.x etwas durchgerutscht.Immerhin zeigt das Bildchen, daß grundsätzlich ein login möglich ist und auch die Berechtigungen für Smarthome richtig sind.
Gruß
Klaus -
@markus-hofbauer sagte in Probleme mit FritzDect Adapter:
Hallo,
hab jetzt noch mal die letzte Version von Github installiert. Jetzt scheint es zu funktionieren.
Gruß Markusdas dachte ich mir schon, daß es damit gehen sollte. Habe ja die Umwandlung von xml nach json auskommentiert.
Grundsätzlich funktioniert ja login und der Zugriff.
Evtl. mal noch ein Kommando probieren, nicht das das Lesen von der FB geht und Schreiben ist noch ein Bug drin.Gruß
Klaus -
@foxthefox Hallo,
zur Zeit scheint alles zu funktionieren. Kann steuern und Temperaturen werden aktualisiert.
Vielen Dank für die Hilfe und die Arbeit.
Gruß Markus -
@foxthefox
ok - dann werde ich die github Version auch noch mal probieren... Wir hatten letztes Jahr im Sommer schon Probleme, Update mit fritzdect zu machen und letztendlich bin ich dann auf Version 0.2.4 (hab ich in der Console mit npm installiert) zurück gegangen. Gestern hatten wir aber js-controller und npm aktualisiert und dann eben auch alle Adapter (war glaub ich 2.2.3) - aber lief nicht. Da ich heute wenig Zeit zum Rumprobieren hatte, hab ich erst mal wieder 0.2.4 installiert, und Heizungen lassen sich grad wieder steuern.
Ich teste die Tage auch noch mal - mal sehen, ob ich vielleicht eine neue eigene Maschine mach... Mal sehen. Berichte hier dann auch, wenn das ok ist - oder soll ich lieber einen eigenen Post machen ? Finde gesammelte Infos eigentlich immer schöner, aber ist ja Geschmackssache
LG
Melanie -
@kamikazemimmi Hi, ich glaube seit der Version 2.0 heißen die Datenpunkte (Objekte) anders, bzw. es werden neue angelegt und die alten funktionieren nicht mehr. Das musst du in deiner Logik (je nach dem was du nutzt, Blockly, Javascrip oder NodeRed) anpassen und die alten dann eventuell löschen.
Siehe hier:
https://forum.iobroker.net/topic/40485/test-adapter-adapter-fritzdect-v2-1-x-github?_=1643126487921 -
@frankyboy73 Danke für den Tipp. Das kann natürlich unser Fehler sein.
-
@frankyboy73 Also haben eben die Version aus Git installiert - und es war so, wie du beschrieben hast: es gab auch neue Objekte... Da hatten wir nicht geguckt. Die alten funktionierten halt nicht, wir sind nicht über neue gestolpert...
Jetzt die neuen Objekte in unserer Umgebung angepasst (Vis, Scripte usw...) - und aktuell läuft es. Danke für den Hinweis !!! -
@foxthefox
es gibt eine weiterentwickelte Version die das verkorkste xml nun korrekt umwandelt und ein paar erweiterte Fehlerabfangmethoden.
Wenn möglich, bitte testen und berichten,
Danke -
@foxthefox Hi, die Meldungen "has to be type Number, but received string habe ich immer noch"
Was ich etwas komisch finde, ist das mir bei den Adapter immer noch installierte Version 2.2.3 angezeigt wird, im Log steht bein Start aber starting Version 2.2.5fritzdect.0 2022-01-28 16:21:25.472 info State value to set for "fritzdect.0.DECT_119600221368.lasttarget" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:25.434 info State value to set for "fritzdect.0.DECT_119600221368.tsoll" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:25.371 info going over to cyclic polling, messages to poll activity only in debug-mode fritzdect.0 2022-01-28 16:21:25.371 info finished initial updating devices/groups fritzdect.0 2022-01-28 16:21:24.495 info start initial updating devices/groups fritzdect.0 2022-01-28 16:21:24.493 info finished creating templates (if any) fritzdect.0 2022-01-28 16:21:24.024 info start creating templates fritzdect.0 2022-01-28 16:21:24.024 info finished creating devices/groups (if any) fritzdect.0 2022-01-28 16:21:24.013 info State value to set for "fritzdect.0.DECT_119600221368.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:24.012 info State value to set for "fritzdect.0.DECT_119600221368.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:24.006 info State value to set for "fritzdect.0.DECT_119621022208.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:23.959 info State value to set for "fritzdect.0.DECT_119621022208.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:23.947 info State value to set for "fritzdect.0.DECT_099950697379.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:23.946 info State value to set for "fritzdect.0.DECT_099950697379.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:23.945 info State value to set for "fritzdect.0.DECT_119600824952.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:23.929 info setting up thermostat nextchange fritzdect.0 2022-01-28 16:21:23.916 info State value to set for "fritzdect.0.DECT_119600824952.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:23.915 info State value to set for "fritzdect.0.DECT_119600808296.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:23.914 info State value to set for "fritzdect.0.DECT_119600808296.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:23.913 info State value to set for "fritzdect.0.DECT_099951017547.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:23.913 info State value to set for "fritzdect.0.DECT_099951017547.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 16:21:23.897 info setting up thermostat nextchange fritzdect.0 2022-01-28 16:21:23.882 info setting up thermostat nextchange fritzdect.0 2022-01-28 16:21:23.862 info setting up thermostat nextchange fritzdect.0 2022-01-28 16:21:23.857 info setting up thermostat nextchange fritzdect.0 2022-01-28 16:21:23.839 info setting up thermostat nextchange fritzdect.0 2022-01-28 16:21:23.817 info setting up levelcontrol fritzdect.0 2022-01-28 16:21:23.809 info setting up blind fritzdect.0 2022-01-28 16:21:23.798 info setting up alert fritzdect.0 2022-01-28 16:21:23.705 info setting up thermostat fritzdect.0 2022-01-28 16:21:23.703 info setting up thermostat fritzdect.0 2022-01-28 16:21:23.702 info setting up thermostat fritzdect.0 2022-01-28 16:21:23.698 info setting up thermostat fritzdect.0 2022-01-28 16:21:23.697 info setting up thermostat fritzdect.0 2022-01-28 16:21:23.692 info setting up thermostat fritzdect.0 2022-01-28 16:21:23.674 info setting up temperature fritzdect.0 2022-01-28 16:21:23.673 info setting up temperature fritzdect.0 2022-01-28 16:21:23.655 info setting up temperature fritzdect.0 2022-01-28 16:21:23.650 info setting up temperature fritzdect.0 2022-01-28 16:21:23.648 info setting up temperature fritzdect.0 2022-01-28 16:21:23.623 info setting up temperature fritzdect.0 2022-01-28 16:21:23.531 info CREATE Devices 8 fritzdect.0 2022-01-28 16:21:23.216 info start creating devices/groups fritzdect.0 2022-01-28 16:21:23.215 info the rights are : {"Rights":{"Name":["Dial","App","HomeAuto","BoxAdmin","Phone"],"Access":["2","2","2","2","2"]}} fritzdect.0 2022-01-28 16:21:23.210 info raw perm =>[object Object] fritzdect.0 2022-01-28 16:21:23.020 info checking user permissions fritzdect.0 2022-01-28 16:21:22.418 info fritzdect uses USER: dect fritzdect.0 2022-01-28 16:21:22.381 info fritzdect entered ready fritzdect.0 2022-01-28 16:21:22.317 info starting. Version 2.2.5 in /opt/iobroker/node_modules/iobroker.fritzdect, node: v14.18.3, js-controller: 3.3.22 host.raspberrypi 2022-01-28 16:21:20.717 info instance system.adapter.fritzdect.0 started with pid 15340 host.raspberrypi 2022-01-28 16:21:20.586 info "system.adapter.fritzdect.0" enabled host.raspberrypi 2022-01-28 16:20:52.104 info instance system.adapter.fritzdect.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
Edit: Objektbaum hatte ich auch noch mal gelöscht, keine Änderung.
Nachdem ich jetzt, noch mal per mpn installiert habe, (vorher hatte ich von Git installiert) wird jetzt auch bei den Adaptern die Installierte Version als 2.2.5 angezeigt. -
@frankyboy73
das könnte mit der admin Oberfläche zusammenhängen, die ja Standardwerte vergibt, wenn keine Altwerte bekannt sind (wie nach Objketbaumlöschen). Das hatte ich auch schon mit 2.2.4 gefixt, daß die admin Einstellungen als Zahlen übergeben werden.iobroker upload fritzdect
lädt admin noch mal nach.
was mich bloß wundert, npm=2.2.3 und git ist 2.2.5, wie kann bei npm Installation dies mit 2.2.5.
wenn also noch die 2.2.3 läuft, dann geht der Fehler nicht weg.
Ich empfehle nochmal git zu nehmen und mit obigen Befehl das Admin erneuern.Gruß
Klaus -
@foxthefox Hi, bin jetzt noch erst wieder auf die 2.2.3 zurückgegangen. Habe dann über Git die installiert, 2,2,5, den Admin erneuert, Installierte Version wird jetzt auch als 2.2.5 angezeigt. Gestartete Version wird auch als 2.2.5 angezeigt. Allerdings bekomme ich die Meldungen "has to be type number but received type string" bei jedem Neustart der Instanz. Wenn die nur beim Neustart kommt ist mir das auch egal, hauptsache es funktioniert alles und so wie es aussieht, tut es das.
fritzdect.0 2022-01-28 17:39:25.682 info going over to cyclic polling, messages to poll activity only in debug-mode fritzdect.0 2022-01-28 17:39:25.682 info finished initial updating devices/groups fritzdect.0 2022-01-28 17:39:24.807 info start initial updating devices/groups fritzdect.0 2022-01-28 17:39:24.807 info finished creating templates (if any) fritzdect.0 2022-01-28 17:39:24.550 info start creating templates fritzdect.0 2022-01-28 17:39:24.549 info finished creating devices/groups (if any) fritzdect.0 2022-01-28 17:39:24.491 info State value to set for "fritzdect.0.DECT_119600221368.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.489 info State value to set for "fritzdect.0.DECT_119600221368.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.440 info State value to set for "fritzdect.0.DECT_119621022208.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.428 info State value to set for "fritzdect.0.DECT_119621022208.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.415 info setting up thermostat nextchange fritzdect.0 2022-01-28 17:39:24.408 info State value to set for "fritzdect.0.DECT_099950697379.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.408 info State value to set for "fritzdect.0.DECT_099950697379.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.407 info State value to set for "fritzdect.0.DECT_119600824952.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.406 info State value to set for "fritzdect.0.DECT_119600824952.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.405 info State value to set for "fritzdect.0.DECT_119600808296.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.404 info State value to set for "fritzdect.0.DECT_119600808296.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.394 info State value to set for "fritzdect.0.DECT_099951017547.boostactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.390 info State value to set for "fritzdect.0.DECT_099951017547.windowopenactivetime" has to be type "number" but received type "string" fritzdect.0 2022-01-28 17:39:24.374 info setting up thermostat nextchange fritzdect.0 2022-01-28 17:39:24.369 info setting up thermostat nextchange fritzdect.0 2022-01-28 17:39:24.360 info setting up thermostat nextchange fritzdect.0 2022-01-28 17:39:24.347 info setting up thermostat nextchange fritzdect.0 2022-01-28 17:39:24.332 info setting up thermostat nextchange fritzdect.0 2022-01-28 17:39:24.308 info setting up levelcontrol fritzdect.0 2022-01-28 17:39:24.291 info setting up blind fritzdect.0 2022-01-28 17:39:24.284 info setting up alert fritzdect.0 2022-01-28 17:39:24.215 info setting up thermostat fritzdect.0 2022-01-28 17:39:24.209 info setting up thermostat fritzdect.0 2022-01-28 17:39:24.207 info setting up thermostat fritzdect.0 2022-01-28 17:39:24.205 info setting up thermostat fritzdect.0 2022-01-28 17:39:24.201 info setting up thermostat fritzdect.0 2022-01-28 17:39:24.198 info setting up thermostat fritzdect.0 2022-01-28 17:39:24.193 info setting up temperature fritzdect.0 2022-01-28 17:39:24.179 info setting up temperature fritzdect.0 2022-01-28 17:39:24.177 info setting up temperature fritzdect.0 2022-01-28 17:39:24.174 info setting up temperature fritzdect.0 2022-01-28 17:39:24.168 info setting up temperature fritzdect.0 2022-01-28 17:39:24.164 info setting up temperature fritzdect.0 2022-01-28 17:39:24.080 info CREATE Devices 8 fritzdect.0 2022-01-28 17:39:23.784 info start creating devices/groups fritzdect.0 2022-01-28 17:39:23.783 info the rights are : {"Rights":{"Name":["Dial","App","HomeAuto","BoxAdmin","Phone"],"Access":["2","2","2","2","2"]}} fritzdect.0 2022-01-28 17:39:23.779 info raw perm =>[object Object] fritzdect.0 2022-01-28 17:39:23.597 info checking user permissions fritzdect.0 2022-01-28 17:39:22.984 info fritzdect uses USER: dect fritzdect.0 2022-01-28 17:39:22.933 info fritzdect entered ready fritzdect.0 2022-01-28 17:39:22.895 info starting. Version 2.2.5 in /opt/iobroker/node_modules/iobroker.fritzdect, node: v14.18.3, js-controller: 3.3.22 host.raspberrypi 2022-01-28 17:39:21.332 info instance system.adapter.fritzdect.0 started with pid 31899 host.raspberrypi 2022-01-28 17:39:18.779 info instance system.adapter.fritzdect.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) host.raspberrypi 2022-01-28 17:39:18.219 info stopInstance system.adapter.fritzdect.0 send kill signal
-
@foxthefox
es kamen ein paar Warnungen (warn)host.raspberrypi 2022-01-28 17:42:44.218 info instance system.adapter.fritzdect.0 started with pid 2174 host.raspberrypi 2022-01-28 17:42:43.961 info "system.adapter.fritzdect.0" enabled javascript.0 2022-01-28 17:42:24.924 info script.js.common.Bewegungsmelder.FLUR_BEWEGUNG: Bewegung im Flur erkannt und Licht ein javascript.0 2022-01-28 17:42:20.429 info script.js.common.Tür_Fenster_Sensoren.Wohnungstüre: telegram['Michael']: Wohnungstür wurde geschlossen ! javascript.0 2022-01-28 17:42:14.509 info script.js.common.Bewegungsmelder.FLUR_BEWEGUNG: Bewegung im Flur erkannt und Licht ein javascript.0 2022-01-28 17:42:12.843 info script.js.common.Tür_Fenster_Sensoren.Wohnungstüre: telegram['Michael']: Wohnungstür wurde geöffnet ! host.raspberrypi 2022-01-28 17:41:21.547 info iobroker exit 0 host.raspberrypi 2022-01-28 17:41:20.481 info iobroker host.raspberrypi object system.adapter.fritzdect.0 created host.raspberrypi 2022-01-28 17:41:20.432 info iobroker host.raspberrypi object system.adapter.fritzdect.0.alive created host.raspberrypi 2022-01-28 17:41:20.392 info iobroker host.raspberrypi object system.adapter.fritzdect.0.connected created host.raspberrypi 2022-01-28 17:41:20.355 info iobroker host.raspberrypi object system.adapter.fritzdect.0.compactMode created host.raspberrypi 2022-01-28 17:41:20.322 info iobroker host.raspberrypi object system.adapter.fritzdect.0.cpu created host.raspberrypi 2022-01-28 17:41:20.289 info iobroker host.raspberrypi object system.adapter.fritzdect.0.cputime created host.raspberrypi 2022-01-28 17:41:20.255 info iobroker host.raspberrypi object system.adapter.fritzdect.0.memHeapUsed created host.raspberrypi 2022-01-28 17:41:20.222 info iobroker host.raspberrypi object system.adapter.fritzdect.0.memHeapTotal created host.raspberrypi 2022-01-28 17:41:20.180 info iobroker host.raspberrypi object system.adapter.fritzdect.0.memRss created host.raspberrypi 2022-01-28 17:41:20.138 info iobroker host.raspberrypi object system.adapter.fritzdect.0.uptime created host.raspberrypi 2022-01-28 17:41:20.099 info iobroker host.raspberrypi object system.adapter.fritzdect.0.inputCount created host.raspberrypi 2022-01-28 17:41:20.062 info iobroker host.raspberrypi object system.adapter.fritzdect.0.outputCount created host.raspberrypi 2022-01-28 17:41:20.024 info iobroker host.raspberrypi object system.adapter.fritzdect.0.eventLoopLag created host.raspberrypi 2022-01-28 17:41:19.987 info iobroker host.raspberrypi object system.adapter.fritzdect.0.sigKill created host.raspberrypi 2022-01-28 17:41:19.951 info iobroker host.raspberrypi object system.adapter.fritzdect.0.logLevel created host.raspberrypi 2022-01-28 17:41:19.935 info iobroker host.raspberrypi create instance fritzdect host.raspberrypi 2022-01-28 17:41:17.856 info iobroker add fritzdect 0 --host raspberrypi host.raspberrypi 2022-01-28 17:40:11.839 info iobroker exit 0 host.raspberrypi 2022-01-28 17:40:10.712 info iobroker upload [0] fritzdect.admin /opt/iobroker/node_modules/iobroker.fritzdect/admin/admin.d.ts admin.d.ts video/mp2t host.raspberrypi 2022-01-28 17:40:10.653 info iobroker upload [1] fritzdect.admin /opt/iobroker/node_modules/iobroker.fritzdect/admin/fritzdect_logo.png fritzdect_logo.png image/png host.raspberrypi 2022-01-28 17:40:10.594 info iobroker upload [2] fritzdect.admin /opt/iobroker/node_modules/iobroker.fritzdect/admin/index_m.html index_m.html text/html host.raspberrypi 2022-01-28 17:40:10.536 info iobroker upload [3] fritzdect.admin /opt/iobroker/node_modules/iobroker.fritzdect/admin/style.css style.css text/css host.raspberrypi 2022-01-28 17:40:10.443 info iobroker upload [4] fritzdect.admin /opt/iobroker/node_modules/iobroker.fritzdect/admin/words.js words.js application/javascript host.raspberrypi 2022-01-28 17:40:10.373 info iobroker 60 packages are looking for funding run `npm fund` for details javascript.0 2022-01-28 17:40:10.180 info script.js.common.Bewegungsmelder.BAD_BEWEGUNG: Bad Licht aus host.raspberrypi 2022-01-28 17:40:08.999 info iobroker + iobroker.fritzdect@2.2.5added 23 packages from 10 contributors in 17.345s host.raspberrypi 2022-01-28 17:40:08.994 info iobroker host.raspberrypi 2022-01-28 17:40:08.992 info iobroker npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.7 (node_modules/osx-temperature-sensor):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) host.raspberrypi 2022-01-28 17:40:08.954 info iobroker npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) host.raspberrypi 2022-01-28 17:39:50.120 info iobroker npm install foxthefox/ioBroker.fritzdect#c25e37c0054aab94b58c5fd1903c1ab681fdb96e --prefix "/opt/iobroker" (System call) host.raspberrypi 2022-01-28 17:39:50.117 info iobroker NPM version: 6.14.15 host.raspberrypi 2022-01-28 17:39:49.435 info iobroker install foxthefox/ioBroker.fritzdect#c25e37c0054aab94b58c5fd1903c1ab681fdb96e
EDIT: aber es scheint alles normal zu laufen. Ich werde das mal paar Tage testen und berichten.