[alexa-fhem | Generell] Alles zu Installation und damit verbundenen Problemen

Begonnen von prodigy7, 09 November 2016, 19:42:01

Vorheriges Thema - Nächstes Thema

MadMax-FHEM

Hmm, bin jetzt kein systemd Experte aber du solltest mindestens noch den User alexa im Script durch blane ersetzen...

Ansonsten mal im Forum/google suchen, da gab/gibt es auch einige Threads bzgl. alexa-fhem und systemd bzw. automatischer Start...

Oder gezielt einen neuen öffnen...
...sonst geht das hier wohl eher unter...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

blane

Hallo zusammen,

bei mir lag es wirklich an dem gesetzten User und ein Neustart des Servers.

Danke für die Hilfe.

Heggeg

Hallo zusammen,

ich habe alexa-fhem in version 0.4.4 installiert seit knapp 7 Monaten.

Leider reagieren Geräte seit rund 2 Monaten nicht mehr und werden auf https://alexa.amazon.de als Offline angezeigt. FHEM läuft auf einem Ubuntu 16.04, der Service alexa-fhem wird nach einem reboot oder dergleichen automatisch gestartet.

systemctl status alexa liefert folgende Ausgabe:

alexa.service - Node.js Alexa Server
   Loaded: loaded (/etc/systemd/system/alexa.service; enabled; vendor preset: enabled)
   Active: active (running) since Mi 2018-08-01 14:51:10 CEST; 22min ago


Das alex-fhem Log liefert folgende Ausgabe nach einem Reboot:

-- Logs begin at Mi 2018-08-01 14:51:09 CEST, end at Mi 2018-08-01 14:53:29 CEST. --
Aug 01 14:51:10 fhem systemd[1]: Started Node.js Alexa Server.
Aug 01 14:51:11 fhem alexa[1170]: [2018-08-01 14:51:11] using /home/heggeg/.alexa/config.json
Aug 01 14:51:11 fhem alexa[1170]: [2018-08-01 14:51:11] ---
Aug 01 14:51:11 fhem alexa[1170]: [2018-08-01 14:51:11] this is alexa-fhem 0.4.4
Aug 01 14:51:11 fhem alexa[1170]: [2018-08-01 14:51:11] Fetching FHEM devices...
Aug 01 14:51:11 fhem alexa[1170]: [2018-08-01 14:51:11] [FHEM] starting longpoll: https://127.0.0.1:8083/f
Aug 01 14:51:11 fhem alexa[1170]: [2018-08-01 14:51:11] Server listening on: https://:::4000
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] Checking devices and attributes...
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM]   executing: https://127.0.0.1:8083/fhem?cm
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM]   executing: https://127.0.0.1:8083/fhem?cm
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] Fetching FHEM devices...
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] fetching: https://127.0.0.1:8083/fhem?cmd=j
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] alexa device is Alexa
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] Alexa is switch
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] Alexa has
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] homebridgeMapping: #Characteristic=<name>=<
Aug 01 14:51:15 fhem alexa[1170]: On=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um
Aug 01 14:51:15 fhem alexa[1170]: Brightness=verb=stelle,property=helligkeit,valuePrefix=auf,values=AMAZON
Aug 01 14:51:15 fhem alexa[1170]: Hue=verb=stelle,valuePrefix=auf,values=rot:0;grün:128;blau:200
Aug 01 14:51:15 fhem alexa[1170]: Hue=verb=färbe,values=rot:0;grün:120;blau:220
Aug 01 14:51:15 fhem alexa[1170]: Saturation=verb=stelle,property=sättigung,valuePrefix=auf,values=AMAZON.
Aug 01 14:51:15 fhem alexa[1170]: Saturation=verb=sättige,values=AMAZON.NUMBER
Aug 01 14:51:15 fhem alexa[1170]: TargetPosition=verb=mach,articles=den;die,values=auf:100;zu:0
Aug 01 14:51:15 fhem alexa[1170]: TargetPosition=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuf
Aug 01 14:51:15 fhem alexa[1170]: TargetTemperature=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,value
Aug 01 14:51:15 fhem alexa[1170]: Volume:verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=proz
Aug 01 14:51:15 fhem alexa[1170]: #Weckzeit=verb=stelle,valuePrefix=auf;für,values=AMAZON.TIME,valueSuffix
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM]   executing: https://127.0.0.1:8083/fhem?cm
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] perfectOfVerb:
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] { stelle: 'gestellt',
Aug 01 14:51:15 fhem alexa[1170]:   schalte: 'geschaltet',
Aug 01 14:51:15 fhem alexa[1170]:   'färbe': 'gefärbt',
Aug 01 14:51:15 fhem alexa[1170]:   mach: 'gemacht' }
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] verbsOfIntent:
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [ OnIntent: [ 'schalte' ],
Aug 01 14:51:15 fhem alexa[1170]:   prozentIntent: [ 'stelle' ],
...skipping...
Aug 01 14:51:15 fhem alexa[1170]:   device: 'AlexaHarmonyFernseher',
Aug 01 14:51:15 fhem alexa[1170]:   informId: 'AlexaHarmonyFernseher-state',
Aug 01 14:51:15 fhem alexa[1170]:   characteristic_type: 'On',
Aug 01 14:51:15 fhem alexa[1170]:   log:
Aug 01 14:51:15 fhem alexa[1170]:    { [Function: bound ]
Aug 01 14:51:15 fhem alexa[1170]:      debug: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      info: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      warn: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      error: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      log: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      prefix: 'FHEM' } }
Aug 01 14:51:15 fhem alexa[1170]:   2018-08-01 14:51:15 caching: AlexaHarmonyFernseher-state: off
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] AlexaLiebemachen is switch
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] AlexaLiebemachen has
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM]   On [state;on,off]
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] { reading: 'state',
Aug 01 14:51:15 fhem alexa[1170]:   valueOff: '/off|A0|000000/',
Aug 01 14:51:15 fhem alexa[1170]:   cmdOn: 'on',
Aug 01 14:51:15 fhem alexa[1170]:   cmdOff: 'off',
Aug 01 14:51:15 fhem alexa[1170]:   device: 'AlexaLiebemachen',
Aug 01 14:51:15 fhem alexa[1170]:   informId: 'AlexaLiebemachen-state',
Aug 01 14:51:15 fhem alexa[1170]:   characteristic_type: 'On',
Aug 01 14:51:15 fhem alexa[1170]:   log:
Aug 01 14:51:15 fhem alexa[1170]:    { [Function: bound ]
Aug 01 14:51:15 fhem alexa[1170]:      debug: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      info: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      warn: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      error: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      log: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      prefix: 'FHEM' } }
Aug 01 14:51:15 fhem alexa[1170]:   2018-08-01 14:51:15 caching: AlexaLiebemachen-state: off
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaHarmonyComputer: no service type dete
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaHarmonyComputer
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaHarmonyFernsehen: no service type det
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaHarmonyFernsehe
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaLiebemachen: no service type detected
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaLiebemachen (DO
...skipping...
Aug 01 14:51:15 fhem alexa[1170]:   device: 'AlexaHarmonyFernseher',
Aug 01 14:51:15 fhem alexa[1170]:   informId: 'AlexaHarmonyFernseher-state',
Aug 01 14:51:15 fhem alexa[1170]:   characteristic_type: 'On',
Aug 01 14:51:15 fhem alexa[1170]:   log:
Aug 01 14:51:15 fhem alexa[1170]:    { [Function: bound ]
Aug 01 14:51:15 fhem alexa[1170]:      debug: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      info: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      warn: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      error: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      log: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      prefix: 'FHEM' } }
Aug 01 14:51:15 fhem alexa[1170]:   2018-08-01 14:51:15 caching: AlexaHarmonyFernseher-state: off
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] AlexaLiebemachen is switch
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] AlexaLiebemachen has
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM]   On [state;on,off]
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] { reading: 'state',
Aug 01 14:51:15 fhem alexa[1170]:   valueOff: '/off|A0|000000/',
Aug 01 14:51:15 fhem alexa[1170]:   cmdOn: 'on',
Aug 01 14:51:15 fhem alexa[1170]:   cmdOff: 'off',
Aug 01 14:51:15 fhem alexa[1170]:   device: 'AlexaLiebemachen',
Aug 01 14:51:15 fhem alexa[1170]:   informId: 'AlexaLiebemachen-state',
Aug 01 14:51:15 fhem alexa[1170]:   characteristic_type: 'On',
Aug 01 14:51:15 fhem alexa[1170]:   log:
Aug 01 14:51:15 fhem alexa[1170]:    { [Function: bound ]
Aug 01 14:51:15 fhem alexa[1170]:      debug: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      info: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      warn: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      error: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      log: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      prefix: 'FHEM' } }
Aug 01 14:51:15 fhem alexa[1170]:   2018-08-01 14:51:15 caching: AlexaLiebemachen-state: off
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaHarmonyComputer: no service type dete
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaHarmonyComputer
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaHarmonyFernsehen: no service type det
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaHarmonyFernsehe
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaLiebemachen: no service type detected
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaLiebemachen (DO
...skipping...
Aug 01 14:51:15 fhem alexa[1170]:   device: 'AlexaHarmonyFernseher',
Aug 01 14:51:15 fhem alexa[1170]:   informId: 'AlexaHarmonyFernseher-state',
Aug 01 14:51:15 fhem alexa[1170]:   characteristic_type: 'On',
Aug 01 14:51:15 fhem alexa[1170]:   log:
Aug 01 14:51:15 fhem alexa[1170]:    { [Function: bound ]
Aug 01 14:51:15 fhem alexa[1170]:      debug: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      info: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      warn: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      error: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      log: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      prefix: 'FHEM' } }
Aug 01 14:51:15 fhem alexa[1170]:   2018-08-01 14:51:15 caching: AlexaHarmonyFernseher-state: off
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] AlexaLiebemachen is switch
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] AlexaLiebemachen has
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM]   On [state;on,off]
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] { reading: 'state',
Aug 01 14:51:15 fhem alexa[1170]:   valueOff: '/off|A0|000000/',
Aug 01 14:51:15 fhem alexa[1170]:   cmdOn: 'on',
Aug 01 14:51:15 fhem alexa[1170]:   cmdOff: 'off',
Aug 01 14:51:15 fhem alexa[1170]:   device: 'AlexaLiebemachen',
Aug 01 14:51:15 fhem alexa[1170]:   informId: 'AlexaLiebemachen-state',
Aug 01 14:51:15 fhem alexa[1170]:   characteristic_type: 'On',
Aug 01 14:51:15 fhem alexa[1170]:   log:
Aug 01 14:51:15 fhem alexa[1170]:    { [Function: bound ]
Aug 01 14:51:15 fhem alexa[1170]:      debug: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      info: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      warn: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      error: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      log: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      prefix: 'FHEM' } }
Aug 01 14:51:15 fhem alexa[1170]:   2018-08-01 14:51:15 caching: AlexaLiebemachen-state: off
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaHarmonyComputer: no service type dete
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaHarmonyComputer
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaHarmonyFernsehen: no service type det
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaHarmonyFernsehe
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaLiebemachen: no service type detected
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaLiebemachen (DO
...skipping...
Aug 01 14:51:15 fhem alexa[1170]:   device: 'AlexaHarmonyFernseher',
Aug 01 14:51:15 fhem alexa[1170]:   informId: 'AlexaHarmonyFernseher-state',
Aug 01 14:51:15 fhem alexa[1170]:   characteristic_type: 'On',
Aug 01 14:51:15 fhem alexa[1170]:   log:
Aug 01 14:51:15 fhem alexa[1170]:    { [Function: bound ]
Aug 01 14:51:15 fhem alexa[1170]:      debug: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      info: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      warn: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      error: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      log: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      prefix: 'FHEM' } }
Aug 01 14:51:15 fhem alexa[1170]:   2018-08-01 14:51:15 caching: AlexaHarmonyFernseher-state: off
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] AlexaLiebemachen is switch
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] AlexaLiebemachen has
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM]   On [state;on,off]
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] { reading: 'state',
Aug 01 14:51:15 fhem alexa[1170]:   valueOff: '/off|A0|000000/',
Aug 01 14:51:15 fhem alexa[1170]:   cmdOn: 'on',
Aug 01 14:51:15 fhem alexa[1170]:   cmdOff: 'off',
Aug 01 14:51:15 fhem alexa[1170]:   device: 'AlexaLiebemachen',
Aug 01 14:51:15 fhem alexa[1170]:   informId: 'AlexaLiebemachen-state',
Aug 01 14:51:15 fhem alexa[1170]:   characteristic_type: 'On',
Aug 01 14:51:15 fhem alexa[1170]:   log:
Aug 01 14:51:15 fhem alexa[1170]:    { [Function: bound ]
Aug 01 14:51:15 fhem alexa[1170]:      debug: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      info: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      warn: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      error: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      log: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      prefix: 'FHEM' } }
Aug 01 14:51:15 fhem alexa[1170]:   2018-08-01 14:51:15 caching: AlexaLiebemachen-state: off
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaHarmonyComputer: no service type dete
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaHarmonyComputer
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaHarmonyFernsehen: no service type det
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaHarmonyFernsehe
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaLiebemachen: no service type detected
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaLiebemachen (DO
...skipping...
Aug 01 14:51:15 fhem alexa[1170]:   device: 'AlexaHarmonyFernseher',
Aug 01 14:51:15 fhem alexa[1170]:   informId: 'AlexaHarmonyFernseher-state',
Aug 01 14:51:15 fhem alexa[1170]:   characteristic_type: 'On',
Aug 01 14:51:15 fhem alexa[1170]:   log:
Aug 01 14:51:15 fhem alexa[1170]:    { [Function: bound ]
Aug 01 14:51:15 fhem alexa[1170]:      debug: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      info: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      warn: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      error: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      log: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      prefix: 'FHEM' } }
Aug 01 14:51:15 fhem alexa[1170]:   2018-08-01 14:51:15 caching: AlexaHarmonyFernseher-state: off
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] AlexaLiebemachen is switch
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] AlexaLiebemachen has
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM]   On [state;on,off]
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] { reading: 'state',
Aug 01 14:51:15 fhem alexa[1170]:   valueOff: '/off|A0|000000/',
Aug 01 14:51:15 fhem alexa[1170]:   cmdOn: 'on',
Aug 01 14:51:15 fhem alexa[1170]:   cmdOff: 'off',
Aug 01 14:51:15 fhem alexa[1170]:   device: 'AlexaLiebemachen',
Aug 01 14:51:15 fhem alexa[1170]:   informId: 'AlexaLiebemachen-state',
Aug 01 14:51:15 fhem alexa[1170]:   characteristic_type: 'On',
Aug 01 14:51:15 fhem alexa[1170]:   log:
Aug 01 14:51:15 fhem alexa[1170]:    { [Function: bound ]
Aug 01 14:51:15 fhem alexa[1170]:      debug: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      info: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      warn: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      error: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      log: [Function],
Aug 01 14:51:15 fhem alexa[1170]:      prefix: 'FHEM' } }
Aug 01 14:51:15 fhem alexa[1170]:   2018-08-01 14:51:15 caching: AlexaLiebemachen-state: off
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaHarmonyComputer: no service type dete
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaHarmonyComputer
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaHarmonyFernsehen: no service type det
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaHarmonyFernsehe
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] dAlexaLiebemachen: no service type detected
Aug 01 14:51:15 fhem alexa[1170]: [2018-08-01 14:51:15] [FHEM] no device created for dAlexaLiebemachen (DO


Die Cloudwatch Logs sagen das ein Task in den Timeout läuft.


12:53:17
START RequestId: dbf625e8-9589-11e8-a83e-3d7d590d32cc Version: $LATEST
12:53:17
2018-08-01T12:53:17.007Z dbf625e8-9589-11e8-a83e-3d7d590d32cc EVENT: [object Object]
12:53:17
2018-08-01T12:53:17.027Z dbf625e8-9589-11e8-a83e-3d7d590d32cc CONTEXT: [object Object]
12:53:20
END RequestId: dbf625e8-9589-11e8-a83e-3d7d590d32cc
12:53:20
REPORT RequestId: dbf625e8-9589-11e8-a83e-3d7d590d32cc Duration: 3003.22 ms Billed Duration: 3000 ms Memory Size: 128 MB Max Memory Used: 21 MB
12:53:20
2018-08-01T12:53:20.007Z dbf625e8-9589-11e8-a83e-3d7d590d32cc Task timed out after 3.00 seconds


Der Aufruf der ip und meinem konfigurierten alexa-fhem Server Port gibt folgende Ausgabe:

https://ip.de:4000/

{"header":{"name":"UnsupportedOperationError","payloadVersion":"2","namespace":"Alexa.ConnectedHome.Control","messageId":"dae3db79-4835-48f6-8a47-64955a726b14"},"payload":{}}

Leider ist es nun schon viel zu lange her und ich kann mich nicht mehr an alles erinnern was ich damals genau konfiguriert habe. Ich hab mir zwar alles fein dokumentiert aber mir fehlt irgendwie der Zusammenhang und ich steh momentan auf dem Schlauch.

Mag mir wer helfen? Steinigt mich falls ich vergessen habe Informationen mitzuliefern.



amenomade

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Jessyfoosy

Zitat von: amenomade am 09 August 2018, 22:44:49
Siehst Du die Requests in der alexa-fhem Log ankommen?

Ich hänge mich mal mit rein da ich das selbe Problem habe. Der Request ist bei mir wie folgt im log zu sehen


Aug 10 18:40:26 raspberrypi alexa[10206]: [8/10/2018, 6:40:26 PM] accepted new token
**** Received Directive: {"directive":{"header":{"namespace":"Alexa.Discovery","name":"Discover","payloadVersion":"3","messageId":"80c11045-e974-46db-9512-cb2ab92e6caf"},"payload":{"scope":{"type":"BearerToken","token":"Atza|IwEBIK_aLE1smv1tfrVQ1s_n6Z6nNA7CRW3IHWUjkcwW3..................... (usw)

Aug 10 18:40:26 raspberrypi alexa[10206]: response :{"event":{"header":{"name":"Discover.Response","payloadVersion":3,"namespace":"Alexa.Discovery","messageId":"9a905c1e-6cdb-4c3f-b3bb-1bf1d08009e0"},"payload":{"endpoints":[]}}}


in der Zeile "{"type":"BearerToken","token":"Atza|IwEBIK_aLE1sm" steht "Atza" und das müsste eigentlich Atze heißen denke ich. Woher wird das bezogen ?


finden tut er trotzdem nichts in der APP

michisa86888

Hallo zusammen,
ich habe gestern erfolgreich alexa und Fhem verbunden. Es ging gestern ein Homematic Rolladenaktor und eine Fritz Dect Dose.
Seid heute sagt aber Alexa bei den gleichen Befehlen das das Gerät nicht reagiert. Im FHEM log ist folgendes zu sehen


2018-08-20 21:26:27 FBDECT Pumpe_Zisterne FBTYPE: FRITZ!DECT 200
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne temperature: 28.5 C (measured)
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne AIN: 08761 0365489
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne energy: 24869 Wh
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne power: 0.00 W
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne FBNAME: FRITZ!DECT 200 #1
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne FBPROP: powerMeter,tempSensor,switch
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne ID: 16
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne locked: no
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne tempadjust: 0.0 C
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne fwversion: 03.87
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne devicelock: no
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne present: yes
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne off
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne mode: manuell

Jemand ne Idee an was es liegen könnte. FHEM Update habe ich soeben auch mal gemacht....

MadMax-FHEM

Hier ein paar Ideen:

alexa-fhem nach fhem Neustart ebenfalls neu gestartet?

Zugriff von "außen" geht noch? Also dynDNS-Eintrag/IP aktuell?

Kommen Aufrufe (also: Alexa schalte ...) in alexa-fhem an, sollte im Log zu sehen sein, bzw. auf der Console, wenn manuell gestartet...

Wie ist der Status zu den Geräten in der Alexa-App?

Was soll das Log zeigen?

Interessanter wären Logausgaben aus dem alexa-fhem Log und CloudWatch...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

michisa86888

Zitat von: michisa86888 am 20 August 2018, 21:34:00
Hallo zusammen,
ich habe gestern erfolgreich alexa und Fhem verbunden. Es ging gestern ein Homematic Rolladenaktor und eine Fritz Dect Dose.
Seid heute sagt aber Alexa bei den gleichen Befehlen das das Gerät nicht reagiert. Im FHEM log ist folgendes zu sehen


2018-08-20 21:26:27 FBDECT Pumpe_Zisterne FBTYPE: FRITZ!DECT 200
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne temperature: 28.5 C (measured)
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne AIN: 08761 0365489
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne energy: 24869 Wh
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne power: 0.00 W
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne FBNAME: FRITZ!DECT 200 #1
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne FBPROP: powerMeter,tempSensor,switch
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne ID: 16
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne locked: no
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne tempadjust: 0.0 C
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne fwversion: 03.87
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne devicelock: no
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne present: yes
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne off
2018-08-20 21:26:27 FBDECT Pumpe_Zisterne mode: manuell

Jemand ne Idee an was es liegen könnte. FHEM Update habe ich soeben auch mal gemacht....

Nun bin ich ein Schritt weiter gekommen. Es geht wieder wenn ich in Putty die ./bin/alexa starte. Sobald ich Putty aber am PC schließe reagieren die Geräte nicht mehr auf meine Alexa
Sprachbefehle...

amenomade

Dann musst Du alexa im Hintergrund laufen lassen. Entweder in putty mit
./bin/alexa &oder nohup ./bin/alexa
oder als Dienst installieren (siehe wiki)
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

ChrisKoh

Hallo zusammen. Ich versuche aktuell nach einem total Zusammenbruch meines Smarthomes nach und nach alles wieder zum laufen zu bringen.

Nun wäre alexa-Fhem an der Reihe, aber leider hänge ich schon bei der Installation des Moduls und bekomme das nicht gelöst...

Habt ihr einen Tipp für mich?

ODROID H2 + Docker: Portainer; FHEM; HomeBridge; Node-RED; Nextcloud; PiHole; MQTT.
FS20; HM; ZigBee; Z-Wave

MadMax-FHEM

#2350
Das ist "nur" ein Hinweis auf eine (mögliche) Schwachstelle...
Habe ich auch und es läuft...

Ob die Schwachstelle zum Tragen kommt weiß ich nicht, also ob die betroffene Funktion(alität) von alexa-fhem genutzt wird...

Wenn das dein einziges Problem ist, sollte alexa-fhem laufen...

EDIT: oder lief npm install gar nicht durch?

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

ChrisKoh

Oh man! Du hast recht. Ich habe mich davon so blenden lassen das ich nicht gemerkt habe das die Installation dennoch durchgeführt wurde.

Nur hänge ich am nächsten Schritt. Meine FHEM Installation liegt wie in der Anleitung beschrieben auch in /opt/fhem. Nun konnte ich npm install schon nicht ohne sudo ausführen und nun auch ./createKey.sh nicht ohne sudo...

Was mache ich hier nun wieder falsch!? Oder wäre es mit sudo doch in Ordnung?
ODROID H2 + Docker: Portainer; FHEM; HomeBridge; Node-RED; Nextcloud; PiHole; MQTT.
FS20; HM; ZigBee; Z-Wave

MadMax-FHEM

Ich hab alexa-fhem unter /home/pi/alexa-fhem installiert.
Alexa-fhem läuft bei mir unter dem User pi.
Dort hat dieser eben die notwendigen Rechte...

Hast vermutlich alexa-fhem schon mit sudo entpacken müssen?

Entweder wird dann bei dir alexa-fhem als root laufen müssen, keines falls zu empfehlen!

Oder "von vorne" und gleich die Berechtigungen setzen (könnte auch nachträglich gehen, kenne mich aber mit npm etc. nicht so aus) oder eben wo installieren, wo der vorgesehene User für alexa-fhem die notwendigen Rechte schon hat...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

ChrisKoh

Hallo Joachim,

danke für die Hilfe! Nun bin ich auch schon weiter, leider schon beim nächsten problem :(

ODROID H2 + Docker: Portainer; FHEM; HomeBridge; Node-RED; Nextcloud; PiHole; MQTT.
FS20; HM; ZigBee; Z-Wave

ChrisKoh

Zitat von: ChrisKoh am 13 September 2018, 21:10:35
Hallo Joachim,

danke für die Hilfe! Nun bin ich auch schon weiter, leider schon beim nächsten problem :(

ok, Hilfe zur Selbsthilfe:

bei eintrage zu "nat ---" entfernt und schon läuft es...

Jetzt muss ich es nur noch schaffen das es automatisch startet.

Aber das sollte machbar sein :)
ODROID H2 + Docker: Portainer; FHEM; HomeBridge; Node-RED; Nextcloud; PiHole; MQTT.
FS20; HM; ZigBee; Z-Wave