fhem alexa-Connector gerät reagiert gerade nicht

Begonnen von spion77, 22 Februar 2024, 14:37:46

Vorheriges Thema - Nächstes Thema

spion77

Hallo zusammen,

ich habe ein Problem mit dem Alexa-FHEM-Connector. Und zwar wird sehr häufig am Tag die SSH-Verbindung vom Connector beendet. Danach reagiert der Alexa-Connector nicht mehr für eine kurze Zeit und startet anschließend wieder.

Wenn man in dieser Zeit Alexa eine Anweisung gibt, kommt dann nur die Antwort, dass das Gerät gerade nicht reagiert. Ich habe schon vieles ausprobiert, unter anderem auch eine Neuinstallation, finde aber keinen Fehler, an dem das liegen könnte.

Kann mir jemand von euch helfen?



*** CONFIG: parsed completely
[2/22/2024, 12:11:18 PM] os.homedir()=/opt/fhem
[2/22/2024, 12:11:18 PM] this is alexa-fhem 0.5.64
[2/22/2024, 12:11:18 PM] connecting to FHEM ...
[2/22/2024, 12:11:18 PM] [FHEM] defaults to: will not send proactive events
[2/22/2024, 12:11:18 PM] [FHEM] trying longpoll to listen for fhem events
[2/22/2024, 12:11:18 PM] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1708600278854
[2/22/2024, 12:11:19 PM] [FHEM] got csrfToken:
[2/22/2024, 12:11:19 PM] [FHEM] Checking devices and attributes...
[2/22/2024, 12:11:19 PM] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2/22/2024, 12:11:19 PM] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2/22/2024, 12:11:19 PM] [FHEM] waiting for events ...
[2/22/2024, 12:11:19 PM] [FHEM] Fetching FHEM devices...
[2/22/2024, 12:11:19 PM] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName%3D..*&XHR=1
[2/22/2024, 12:11:19 PM] [FHEM] alexa device is alexa
[2/22/2024, 12:11:19 PM] [FHEM] alexa will not send proactive events
[2/22/2024, 12:11:19 PM] [FHEM] alexa uses ID: 65cb9330-f33f-5c31-91a5-028c923dd1b90c46
[2/22/2024, 12:11:19 PM] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.64%22%7D%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2/22/2024, 12:11:19 PM] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2/22/2024, 12:11:19 PM] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2/22/2024, 12:11:19 PM] Server listening on: http://127.0.0.1:35285 for proxy connections
[2/22/2024, 12:11:19 PM] *** SSH: checking proxy configuration
[2/22/2024, 12:11:19 PM] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2/22/2024, 12:11:19 PM] Passed config: {
  connections: [
    {
      webname: 'fhem',
      filter: 'alexaName=..*',
      port: '8083',
      server: '127.0.0.1',
      name: 'FHEM',
      uid: 999
    }
  ],
  sshproxy: {
    description: 'FHEM Connector',
    ssh: '/usr/bin/ssh',
    options: [ '-i', '/opt/fhem/.ssh/id_rsa', '-p', 58824, 'fhem-va.fhem.de' ],
    'bind-ip': '127.0.0.1',
    server: Server {
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      requestTimeout: 300000,
      headersTimeout: 60000,
      keepAliveTimeout: 5000,
      connectionsCheckingInterval: 30000,
      joinDuplicateHeaders: undefined,
      rejectNonStandardBodyWrites: false,
      _events: [Object: null prototype],
      _eventsCount: 4,
      _maxListeners: undefined,
      _connections: 0,
      _handle: [TCP],
      _usingWorkers: false,
      _workers: [],
      _unref: false,
      allowHalfOpen: true,
      pauseOnConnect: false,
      noDelay: true,
      keepAlive: false,
      keepAliveInitialDelay: 0,
      highWaterMark: 16384,
      httpAllowHalfOpen: false,
      timeout: 0,
      maxHeadersCount: null,
      maxRequestsPerSocket: 0,
      _connectionKey: '4:127.0.0.1:0',
      [Symbol(IncomingMessage)]: [Function: IncomingMessage],
      [Symbol(ServerResponse)]: [Function: ServerResponse],
      [Symbol(kCapture)]: false,
      [Symbol(async_id_symbol)]: 100,
      [Symbol(kUniqueHeaders)]: null,
      [Symbol(http.server.connections)]: ConnectionsList {},
      [Symbol(http.server.connectionsCheckingInterval)]: Timeout {
        _idleTimeout: 30000,
        _idlePrev: [TimersList],
        _idleNext: [TimersList],
        _idleStart: 1121,
        _onTimeout: [Function: bound checkConnections],
        _timerArgs: undefined,
        _repeat: 30000,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 102,
        [Symbol(triggerId)]: 101
      }
    }
  }
}
[2/22/2024, 12:11:19 PM] sshautoconf: SSH key seems to exist
[2/22/2024, 12:11:19 PM] sshautoconf: Our SSH key is known at the reverse proxy, good!
[2/22/2024, 12:11:19 PM] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2/22/2024, 12:11:19 PM] BearerToken '...5032D' read from alexa
[2/22/2024, 12:11:19 PM] [FHEM] got .eventToken
[2/22/2024, 12:11:19 PM] refreshing token
[2/22/2024, 12:11:19 PM] 39_alexa.pm is new version: true
[2/22/2024, 12:11:19 PM] sshautoconf: completed successfully
[2/22/2024, 12:11:19 PM] *** SSH: proxy configuration set up done
[2/22/2024, 12:11:19 PM] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[2/22/2024, 12:11:19 PM] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2/22/2024, 12:11:19 PM] Starting SSH with -R 1234:127.0.0.1:35285 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
*** FHEM: connected
[2/22/2024, 12:11:19 PM] [FHEM] got: 61 results
[2/22/2024, 12:12:46 PM] Got SIGTERM, shutting down alexa-fhem...
[2/22/2024, 12:12:46 PM] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2/22/2024, 12:12:46 PM] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2/22/2024, 12:12:46 PM] Stopping SSH ...
[2/22/2024, 12:12:46 PM] Reading alexaFHEM.ProxyConnection set to stopped
[2/22/2024, 12:12:46 PM] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopped%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2/22/2024, 12:12:46 PM] *** SSH: exited with 255
[2/22/2024, 12:12:46 PM] Got SIGTERM, shutting down alexa-fhem...
[2/22/2024, 12:12:46 PM] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2/22/2024, 12:12:46 PM] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2/22/2024, 12:12:46 PM] Stopping SSH ...
[2/22/2024, 12:12:51 PM] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely