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

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

Vorheriges Thema - Nächstes Thema

gent

Bei mir leider nicht:

was ist, wenn beim Start von alexa-fhem diese Zeile

[FHEM] Checking devices and attributes...

nicht kommt?

Wenn ich in der Alexa App nach Geräten suche, erhalte ich zumindest so etwas:

[2018-5-29 20:48:52] accepted new token
**** Received Directive: {"directive":{"header":{"namespace":"Alexa.Discovery","name":"Discover","payloadVersion":"3","messageId":"7502489a-46c3-48a3-8fdf-d112b5d66816"},"payload":{"scope":{"type":"BearerToken","token":"Atza|IwEBIO8UZu65W5HS7cQxGQqyP6i7winGgu8jz3IxPt8GtuncvDvrX4Ab7M29QiaUzAHSLcPoKqg3y-0WafgIzaHzK74xcfBGcLl8kmLfK_ySz2tHm62keWwNr8CVCEich7TSxtAT3NSKbXDmOFyKwcnDk-Qj8IajBwPSkhFFpKKcFdAGyEH6cFTSSVpGwq8C3UI4-Wcmd8q3Z7cpN97PCw7diHVV7i6ePs91Bt-aNU879lgVS2QYhr2u6sC_CJkRGnP_ADmHrnQppGIv2pnzGUIzscKreyxbDtOVu_zGurFqBIKtvtck5u1xnLQoWTla7M4QL26eX1yzFkUJS_QXJPwVoAybM0u2r-zpULsiR0ipTiMOAQAms2qGkm5sGf8nCeEchjQ_A1yfwUtA6Mk4B71_mRE5XfQpX84yGS1NtMBMuCqEe59pRosbkGDxlUlixO5gn8k0bE2ZJyF_4BOEX4J-39YEnLpcu-EjEakcDQ6BQzO-mwrdWFgJKXtkSOx3Gtou0mnam0lGdwGFwVu5yfOb47KmZfESb2jO7GCeqUXkk7yA33_MzJ--RrTJe7FIW5CHXogdGpX8aU1sgBjWDPwoT7IO"}}}}
response :{"event":{"header":{"name":"Discover.Response","payloadVersion":3,"namespace":"Alexa.Discovery","messageId":"5b268e96-bbeb-48d9-ab97-fcc17f521a77"},"payload":{"endpoints":[]}}}


Wo muss ich nachschauen, um weiterzukommen?

Viele Grüße
fhem auf rPi3 mit USB boot und M2, cul866 (hm), homebridge, FlowerSens, Shelly, Harmony, WemosD1, Sonoff/Tasmota, grafana, mqtt/mosquitto

MadMax-FHEM

Fehler hat damit nichts zu tun...
Anfrage kommt an, somit scheint: Portweiterleitung etc. zu funktionieren...

Dann findet wohl alexa-fhem keine Geräte...

Poste doch mal einen Logauszug (komplett) von alexa-fhem beim Start.

Prüfe noch mal den Filter-Eintrag (oder poste ihn hier) in der config.json (muss zum Kriterium eines Gerätes passen, das gefunden werden soll)...
...poste noch ein list eines Gerätes von dem du denkst es sollte gefunden werden.

Oder lege ein simples "Dummy-Beispiel" an:


define TestDummy dummy
attr TestDummy setList on off
attr TestDummy genericDeviceType switch
attr TestDummy alias Testgerät
attr TestDummy room alexa
attr TestDummy alexaName Schalter
attr TestDummy alexaRoom Testraum


Das attr room bzw. was halt bei dir als Filter in der config.json steht muss halt passen bzw. angepasst werden.

Und die letzten beiden Attribute sind optional.
alexaName gilt halt vor alias und vor name.
alexaRoom gilt nur für den Custom Skill.

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)

gent

Hi,

wo ist der Unterschied zwischen SkillID und ApplicationID?

Viele Grüße vom gent
fhem auf rPi3 mit USB boot und M2, cul866 (hm), homebridge, FlowerSens, Shelly, Harmony, WemosD1, Sonoff/Tasmota, grafana, mqtt/mosquitto

gent

Hallo Joachim

Zitat von: MadMax-FHEM am 29 Mai 2018, 21:57:49
Fehler hat damit nichts zu tun...
Anfrage kommt an, somit scheint: Portweiterleitung etc. zu funktionieren...

Dann findet wohl alexa-fhem keine Geräte...

Poste doch mal einen Logauszug (komplett) von alexa-fhem beim Start.

Prüfe noch mal den Filter-Eintrag (oder poste ihn hier) in der config.json (muss zum Kriterium eines Gerätes passen, das gefunden werden soll)...
...poste noch ein list eines Gerätes von dem du denkst es sollte gefunden werden.

Oder lege ein simples "Dummy-Beispiel" an:


define TestDummy dummy
attr TestDummy setList on off
attr TestDummy genericDeviceType switch
attr TestDummy alias Testgerät
attr TestDummy room alexa
attr TestDummy alexaName Schalter
attr TestDummy alexaRoom Testraum


Das attr room bzw. was halt bei dir als Filter in der config.json steht muss halt passen bzw. angepasst werden.

Und die letzten beiden Attribute sind optional.
alexaName gilt halt vor alias und vor name.
alexaRoom gilt nur für den Custom Skill.

Gruß, Joachim

hier der komplette Output beim Start von alexa-fhem

pi@fhem-pi3:~/alexa-fhem $ ./bin/alexa --debug
[2018-6-1 17:35:58] using /home/pi/.alexa/config.json
[2018-6-1 17:35:58] ---
[2018-6-1 17:35:58] this is alexa-fhem 0.4.4
[2018-6-1 17:35:58] Fetching FHEM devices...
[2018-6-1 17:35:58] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1527867358633
[2018-6-1 17:35:58] Server listening on: https://:::3000


Das Dummy-Device habe ich genau so angelegt.

Hier noch das list von dem "richtigen" Device

Internals:
   DEF        elro_800_switch 13 1
   FS433_MSGCNT 56
   FS433_TIME 2018-05-31 22:01:00
   ID         13
   IODev      FS433
   LASTInputDev FS433
   MSGCNT     56
   NAME       WZ_Lampe1
   NR         48
   PROTOCOL   elro_800_switch
   STATE      off
   SYSCODE   
   TYPE       pilight_switch
   UNIT       1
   READINGS:
     2018-05-31 22:01:00   state           off
Attributes:
   DbLogExclude .*
   IODev      FS433
   alexaName  Stehlampe
   alexaRoom  Wohnzimmer
   event-on-change-reading state
   genericDeviceType switch
   group      Licht
   room       alexa,Homekit,Wohnzimmer


und hier die config.json (anonymisiert)

{
    "alexa": {
        "port": 3000,
        "name": "Alexa FHEM",
        "keyFile": "./key.pem",
        "certFile": "./cert.pem",
        "nat-pmp": "",
        "nat-upnp": false,
        "applicationId": "amzn1.ask.skill.234a728a----anonym---",
        "oauthClientID": "amzn1.application-oa2-client.d7ce---anonym---",
        "permissions": {"amzn1.ask.skill.234a728a----anonym": { "client_id": "amzn1.application-oa2-client.d7ce---anonym---", "client_secret": "0b8b498f1d7---anonym---"}}
    },

    "connections": [
        {
            "name": "FHEM",
            "server": "127.0.0.1",
            "port": "8083",
            "ssl": true,
            "auth": {"user": "fhem", "pass": ---anonym---},
            "webname": "fhem",
            "filter": "room=alexa"
        }
    ]
}


Viele Grüße vom gent
fhem auf rPi3 mit USB boot und M2, cul866 (hm), homebridge, FlowerSens, Shelly, Harmony, WemosD1, Sonoff/Tasmota, grafana, mqtt/mosquitto

amenomade

Bitte aus dem Rechner, wo alexa-fhem läuft, testen, ob https://127.0.0.1:8083/fhem antwortet

Weil im Moment [FHEM] starting longpoll: https://127.0.0.1:8083/fhem nicht weiter geht.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

MadMax-FHEM

Richtig, sehr eigenartig...
Normalerweise kommen Ausgaben oder Fehler...

Evtl. mal zum Test ein weiteres FHEMWEB anlegen ohne ssh und user/passwort...

Vielleicht auch mal statt 127.0.0.1 die tatsächliche IP eintragen...

Aber wie geschrieben sehr verwunderlich, dass gar nichts mehr kommt...
Aber Suchanfragen (zumindest laut letztem Log) ankommen, alexa-fhem also wohl arbeitet...

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)

amenomade

Zitat von: MadMax-FHEM am 02 Juni 2018, 08:22:20
Aber Suchanfragen (zumindest laut letztem Log) ankommen, alexa-fhem also wohl arbeitet...
Ja, server.js und cli.js arbeiten, fhem.js aber nicht. Das haben wir schon mal gehabt: der User hatte eine fehlerhafte Apache Konfig u./o. Firewall Probleme. alexa-fhem kriegt keine Verbindung mit FHEM.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Shadow3561

Moin,

Bei mir läuft plötzlich garnichts mehr.
Hatte Alexa vor Monaten eingerichtet und nie Probleme.
Seit ein paar Tagen nun kann sie meine Geräte nicht mehr finden.

Habe am Server nichts verändert und FHEM ist up to date.

hier mal die Fehlermeldung beim ausführen von ./bin/alexa

Der Anfang sieht gut aus denke ich (gekürzt)

[2018-6-3 08:19:38] using /root/.alexa/config.json
[2018-6-3 08:19:38] ---
[2018-6-3 08:19:38] this is alexa-fhem 0.3.4
[2018-6-3 08:19:38] Trying NAT-PMP ...
[2018-6-3 08:19:38] Fetching FHEM devices...
[2018-6-3 08:19:38] [FHEM] starting longpoll: http://192.168.1.14:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1528006778719
[2018-6-3 08:19:38] Server listening on: https://:::3000
[2018-6-3 08:19:38] [FHEM] Checking devices and attributes...
[2018-6-3 08:19:38] [FHEM]   executing: http://192.168.1.14:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[2018-6-3 08:19:38] [FHEM]   executing: http://192.168.1.14:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1
[2018-6-3 08:19:38] [FHEM] Fetching FHEM devices...
[2018-6-3 08:19:38] [FHEM] fetching: http://192.168.1.14:8083/fhem?cmd=jsonlist2%20room=Alexa&XHR=1
[2018-6-3 08:19:39] [FHEM] alexa device is MyAlexa
[2018-6-3 08:19:39] [FHEM] MyAlexa is switch
[2018-6-3 08:19:39] [FHEM] MyAlexa has
[2018-6-3 08:19:39] [FHEM] homebridgeMapping: #Characteristic=<name>=<value>,...
On=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um



doch am Ende dann dies

TypeError: Cannot read property 'length' of null
    at FHEMDevice.fromHomebridgeMapping (/opt/fhem/alexa-fhem/lib/fhem.js:860:40)
    at new FHEMDevice (/opt/fhem/alexa-fhem/lib/fhem.js:2307:8)
    at FHEM.<anonymous> (/opt/fhem/alexa-fhem/lib/fhem.js:758:39)
    at Array.map (<anonymous>)
    at FHEM.<anonymous> (/opt/fhem/alexa-fhem/lib/fhem.js:755:31)
    at Request.self.callback (/opt/fhem/alexa-fhem/node_modules/request/request.js:186:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/opt/fhem/alexa-fhem/node_modules/request/request.js:1163:10)
    at emitOne (events.js:116:13)


Hat jemand eine Idee?

EDIT:

Fehler gefunden.
Habe das HomebridgeMapping vom AVR gelöscht und jetzt läuft es wieder (komisch, dass es bis vor ein paar Tagen tadelos funktionierte).

Wie muss denn ein Homebridgemapping aussehen um die Lautstärke vom AVR zu steuern?
Anbei mal ein List vom Device

Internals:
   Clients    :ONKYO_AVR_ZONE:
   DEF        192.168.1.176 pre2013
   DeviceName 192.168.1.176:60128
   FD         11
   INPUT     
   NAME       AVR
   NR         74
   NTFY_ORDER 50-AVR
   PARTIAL   
   PROTOCOLVERSION pre2013
   SCREENLAYER 0
   STATE      off
   TIMEOUT    3
   TYPE       ONKYO_AVR
   ZONE       1
   Helper:
     DBLOG:
       presence:
         logdb:
           TIME       1528011531.14215
           VALUE      present
       state:
         logdb:
           TIME       1528011531.14215
           VALUE      CONNECTED
       stateAV:
         logdb:
           TIME       1528011531.14215
           VALUE      off
   READINGS:
     2017-02-10 15:16:35   Cover           ./images/sonos_empty.jpg
     2017-01-12 18:31:40   _PW3            00
     2018-05-10 08:59:05   _SLZ            80
     2018-05-10 08:59:05   _VL3            N/A
     2017-01-12 18:31:40   _ZPW            00
     2018-05-10 08:59:05   _ZVL            N/A
     2018-06-01 20:31:45   audin_ch        2
     2018-06-02 09:26:41   audin_enc       Dolby D
     2018-06-01 20:31:45   audin_srate     2
     2018-06-01 20:31:45   audin_src       HDMI 3
     2018-05-10 08:59:15   audio-input     hdmi
     2018-06-01 20:31:45   audout_ch       1
     2018-06-01 20:31:45   audout_mode     Stereo
     2018-05-10 08:59:33   audyssey-dynamic-volume light
     2018-05-29 16:47:35   center-temporary-level 3
     2018-05-20 19:28:23   channel         DLNA
     2016-11-25 19:43:15   channelList     AUPEO!_PERSONAL_RADIO,DLNA,Home_Media,Last.fm_Internet_Radio,MP3tunes,Mediafly,My_Favorites,Napster,Pandora_Internet_Radio,Rhapsody,SiriusXM_Internet_Radio,Slacker_Personal_Radio,Spotify,TuneIn,e-onkyo_music,radiko.jp,simfy,vTuner
     2018-05-20 19:28:23   currentAlbum   
     2017-02-10 15:16:35   currentAlbumArtURI ./www/tablet_eval/images/sonos_empty.jpg
     2017-02-10 15:16:35   currentAlbumArtURL ?/ONKYO_AVR/cover/sonos_empty.jpg
     2017-03-24 12:04:15   currentArtist   -
     2017-03-24 12:04:15   currentTitle    -
     2017-03-24 12:04:41   currentTrackDuration --:--
     2017-03-28 18:40:20   currentTrackPosition --:--
     2018-01-30 06:00:55   dimmer-level    dim
     2018-06-01 21:51:34   input           cbl-sat
     2017-02-19 17:58:16   inputList       am,aux1,aux2,bd,bd/dvd,cbl,cbl-sat,cd,dlna,dvr,fm,game,internet-radio,iradio-favorite,multi-ch,music-server,net,network,p4s,pc,phono,sat,sirius,tape,tape-1,tape2,tuner,tv,tv-cd,universal-port,usb,usb-rear,usb-toggle,vcr,video1,video3,video4,video5,video6,video7,xm
     2018-06-02 20:53:38   listening-mode  stereo
     2018-06-02 10:33:06   mute            off
     2017-03-24 12:04:41   playStatus      stopped
     2017-02-08 17:22:06   playlist_json   []
     2018-06-02 20:55:37   power           off
     2018-06-03 09:38:51   presence        present
     2017-03-28 18:40:20   repeat          off
     2018-05-20 19:28:24   screenCurser    0
     2018-05-20 19:28:23   screenIconLeft  01
     2017-02-06 18:42:12   screenIconRight 00
     2017-03-24 08:01:14   screenItemC0000 USB Storage
     2017-02-09 20:09:59   screenItemC0001 bigFM Sunset Lounge
     2017-02-06 18:54:16   screenItemC0002 Emerge
     2017-02-09 20:16:18   screenItemC0003 Radio Hamburg 103.6 FM
     2017-02-06 19:03:24   screenItemC0004 Chakka Chakka
     2017-02-09 20:08:22   screenItemC0005 NDR 2
     2017-02-06 19:03:24   screenItemC0006 Matisse
     2017-02-06 18:57:49   screenItemC0007 KONTOR
     2016-11-26 08:34:28   screenItemC0008 Magdeburg
     2016-11-26 08:20:22   screenItemC0009 ---
     2016-11-26 08:12:58   screenItemCnt   0000
     2016-11-26 08:12:58   screenLayer     00
     2018-05-20 23:05:21   screenLayerInfo 1
     2018-05-20 23:05:21   screenListPos   0000
     2017-02-06 18:58:01   screenStatus   
     2018-05-20 19:28:23   screenTitle     Server
     2016-11-26 08:12:58   screenType      0
     2017-03-28 18:40:20   shuffle         off
     2018-01-30 06:00:56   sleep           off
     2018-06-03 09:38:51   state           opened
     2018-06-03 09:38:51   stateAV         off
     2018-05-29 16:47:35   subwoofer-temporary-level -11
     2018-05-10 08:59:12   tone-front-bass 10
     2018-05-10 08:59:12   tone-front-treble 10
     2017-02-10 19:10:06   tunerFrequency  00522
     2018-06-01 21:51:37   video-picture-mode through
     2018-04-08 10:59:50   video-wide-mode auto
     2018-05-30 18:17:34   vidin_cdepth    1
     2018-05-30 18:17:34   vidin_cspace    YCbCr
     2016-11-25 19:43:14   vidin_res       
     2018-05-30 18:17:34   vidin_src       HDMI 3
     2018-05-30 18:17:34   vidout_cdepth   1
     2018-06-01 20:31:45   vidout_cspace   YCbCr
     2018-05-30 18:17:34   vidout_dst      HDMI Main
     2018-05-30 18:17:34   vidout_mode     Through
     2016-11-25 19:43:14   vidout_res     
     2018-06-02 20:16:50   volume          34
   fhem:
     infix      ONKYO_AVR
   helper:
     nextConnectionCheck 1528012613.00054
     receiver:
       device:
         netservicelist:
         selectorlist:
         zonelist:
           zone:
             1:
               name       Main
               value      1
       input_names:
Attributes:
   alexaName  Anlage
   alexaRoom  wohnzimmer
   cmdIcon    muteT:rc_MUTE previous:rc_PREVIOUS next:rc_NEXT play:rc_PLAY pause:rc_PAUSE stop:rc_STOP shuffleT:rc_SHUFFLE repeatT:rc_REPEAT
   connectionCheck 120
   devStateIcon on:rc_GREEN@green:off off:rc_STOP:on absent:rc_RED playing:rc_PLAY@green:pause paused:rc_PAUSE@green:play muted:rc_MUTE@green:muteT fast-rewind:rc_REW@green:play fast-forward:rc_FF@green:play interrupted:rc_PAUSE@yellow:play
   genericDeviceType light
   group      HiFi
   model      pre2013
   room       Alexa,Wohnzimmer
   stateFormat stateAV
   userReadings Cover:currentAlbumArtURI.* {my $ret = ReadingsVal("AVR","currentAlbumArtURI","");$ret =~ s/www\/tablet_eval\///g;return $ret;}
   verbose    3
   volumeSteps 0.5
   webCmd     dimmer-level:volume:input:previous:next:listening-mode

gent

Zitat von: amenomade am 01 Juni 2018, 23:51:13
Bitte aus dem Rechner, wo alexa-fhem läuft, testen, ob https://127.0.0.1:8083/fhem antwortet

Weil im Moment [FHEM] starting longpoll: https://127.0.0.1:8083/fhem nicht weiter geht.

Hi anemomade,

vielen Dank. Das war es. Die Verbindung mit https hat nicht funktioniert. Hab's korrigiert und jetzt geht's weiter und mein Problem ist gelöst.

Viele Grüße und schönen Sonntag.
fhem auf rPi3 mit USB boot und M2, cul866 (hm), homebridge, FlowerSens, Shelly, Harmony, WemosD1, Sonoff/Tasmota, grafana, mqtt/mosquitto

FrankieSOC

Hallo Zusammen,

ich habe jetzt lange versucht alleine zum laufen zubekommen, aber es klappt nicht. Ich habe mit dem WIKI versucht und vielen Seiten hier im Forum.
Mein erste Versuch war im September 2017 und jetzt nochmal. Das Ergebnis ist das gleiche, über alexa.amazon.com und auch über die APP finde ich keine Geräte von FHEM.

hoffentlich gebe ich alle wichtigen Infos.
Alexa Fhem läuft soweit
[2018-6-22 11:54:57] using /root/.alexa/config.json
[2018-6-22 11:54:57] ---
[2018-6-22 11:54:57] this is alexa-fhem 0.4.4
[2018-6-22 11:54:57] Fetching FHEM devices...
[2018-6-22 11:54:57] [FHEM] starting longpoll: http://172.19.0.5:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1529661297959
[2018-6-22 11:54:57] Server listening on: https://:::3000
[2018-6-22 11:54:57] [FHEM] Checking devices and attributes...
[2018-6-22 11:54:57] [FHEM]   executing: http://172.19.0.5:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[2018-6-22 11:54:57] [FHEM]   executing: http://172.19.0.5:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1
[2018-6-22 11:54:57] [FHEM] Fetching FHEM devices...
[2018-6-22 11:54:57] [FHEM] fetching: http://172.19.0.5:8083/fhem?cmd=jsonlist2%20room=Alexa&XHR=1
[2018-6-22 11:54:57] [FHEM] alexa device is Alexa
[2018-6-22 11:54:57] [FHEM] Alexa is switch
[2018-6-22 11:54:57] [FHEM] Alexa has
[2018-6-22 11:54:57] [FHEM] homebridgeMapping: #Characteristic=<name>=<value>,...
On=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um

Brightness=verb=stelle,property=helligkeit,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent

Hue=verb=stelle,valuePrefix=auf,values=rot:0;grün:128;blau:200
Hue=verb=färbe,values=rot:0;grün:120;blau:220

Saturation=verb=stelle,property=sättigung,valuePrefix=auf,values=AMAZON.NUMBER
Saturation=verb=sättige,values=AMAZON.NUMBER

TargetPosition=verb=mach,articles=den;die,values=auf:100;zu:0
TargetPosition=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent

TargetTemperature=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=grad

Volume:verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent

#Weckzeit=verb=stelle,valuePrefix=auf;für,values=AMAZON.TIME,valueSuffix=uhr
[2018-6-22 11:54:57] [FHEM]   executing: http://172.19.0.5:8083/fhem?cmd=%7B$defs%7BAlexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;%7B$defs%7BAlexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20=%20%220.4.4%22%7D;%7B$defs%7BAlexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2018-6-22 11:54:57] perfectOfVerb:
[2018-6-22 11:54:57] { stelle: 'gestellt',
  schalte: 'geschaltet',
  'färbe': 'gefärbt',
  mach: 'gemacht' }
[2018-6-22 11:54:57] verbsOfIntent:
[2018-6-22 11:54:57] [ OnIntent: [ 'schalte' ],
  prozentIntent: [ 'stelle' ],
  HueIntent: [ 'stelle' ],
  HueIntentB: [ 'färbe' ],
  SaturationIntent: [ 'stelle' ],
  SaturationIntentB: [ 'sättige' ],
  TargetPositionIntent: [ 'mach' ],
  gradIntent: [ 'stelle' ] ]
[2018-6-22 11:54:57] characteristicsOfIntent:
[2018-6-22 11:54:57] { OnIntent: [ 'On' ],
  prozentIntent: [ 'Brightness', 'TargetPosition', 'Volume' ],
  HueIntent: [ 'Hue' ],
  HueIntentB: [ 'Hue' ],
  SaturationIntent: [ 'Saturation' ],
  SaturationIntentB: [ 'Saturation' ],
  TargetPositionIntent: [ 'TargetPosition' ],
  gradIntent: [ 'TargetTemperature' ] }
[2018-6-22 11:54:57] prefixOfIntent:
[2018-6-22 11:54:57] { OnIntent: undefined,
  prozentIntent: 'auf',
  HueIntent: 'auf',
  HueIntentB: undefined,
  SaturationIntent: 'auf',
  SaturationIntentB: undefined,
  TargetPositionIntent: undefined,
  gradIntent: 'auf' }
[2018-6-22 11:54:57] suffixOfIntent:
[2018-6-22 11:54:57] { OnIntent: undefined,
  prozentIntent: 'prozent',
  HueIntent: undefined,
  HueIntentB: undefined,
  SaturationIntent: undefined,
  SaturationIntentB: undefined,
  TargetPositionIntent: undefined,
  gradIntent: 'grad' }
[2018-6-22 11:54:57] alexaTypes:
[2018-6-22 11:54:57] { light: [ 'licht', 'lampen' ],
  blind:
   [ 'rolladen',
     'rolläden',
     'jalousie',
     'jalousien',
     'rollo',
     'rollos' ] }
[2018-6-22 11:54:57] roomOfEcho:
[2018-6-22 11:54:57] {}
[2018-6-22 11:54:57] fhemIntents:
[2018-6-22 11:54:57] { FHEMgutenMorgenIntent: 'gutenMorgen',
  FHEMguteNachtIntent: 'guteNacht' }
[2018-6-22 11:54:57] [FHEM]   executing: http://172.19.0.5:8083/fhem?cmd=%7B$defs%7BAlexa%7D-%3E%7B%22active%22%7D%20=%201;;undef%7D;list%20Alexa%20.Alexa.Authorization;%7B$defs%7BAlexa%7D-%3E%7B%22active%22%7D%20=%200;;undef%7D&XHR=1
[2018-6-22 11:54:57] [FHEM] got: 3 results
[2018-6-22 11:54:57] [FHEM] Alexa.Party is switch
[2018-6-22 11:54:57] [FHEM] Alexa.Party has
[2018-6-22 11:54:57] [FHEM]   On [state;on,off]
[2018-6-22 11:54:57] [FHEM] { reading: 'state',
  valueOff: '/off|A0|000000/',
  cmdOn: 'on',
  cmdOff: 'off',
  device: 'Alexa.Party',
  informId: 'Alexa.Party-state',
  characteristic_type: 'On',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-06-22 11:54:57 caching: Alexa.Party-state: off
[2018-6-22 11:54:57] [FHEM] HM_29DFC7 is switch
[2018-6-22 11:54:57] [FHEM] HM_29DFC7 has
[2018-6-22 11:54:57] [FHEM]   FirmwareRevision [D-firmware]
[2018-6-22 11:54:57] [FHEM]   On [state;on,off]
[2018-6-22 11:54:57] [FHEM] { reading: 'D-firmware',
  _isInformation: true,
  device: 'HM_29DFC7',
  informId: 'HM_29DFC7-D-firmware',
  characteristic_type: 'FirmwareRevision',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-06-22 11:54:57 caching: HM_29DFC7-D-firmware: 2.4
[2018-6-22 11:54:57] [FHEM] { reading: 'state',
  valueOff: '/off|A0|000000/',
  cmdOn: 'on',
  cmdOff: 'off',
  device: 'HM_29DFC7',
  informId: 'HM_29DFC7-state',
  characteristic_type: 'On',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-06-22 11:54:57 caching: HM_29DFC7-state: off
[2018-6-22 11:54:57] [FHEM] ZWave_SWITCH_BINARY_10 is switch
[2018-6-22 11:54:57] [FHEM] ZWave_SWITCH_BINARY_10 has
[2018-6-22 11:54:57] [FHEM]   Custom Voltage [voltage]
[2018-6-22 11:54:57] [FHEM]   Custom Current [current]
[2018-6-22 11:54:57] [FHEM]   Custom Power [power]
[2018-6-22 11:54:57] [FHEM]   Custom Energy [energy]
[2018-6-22 11:54:57] [FHEM]   On [state;on,off]
[2018-6-22 11:54:57] [FHEM] { name: 'Voltage',
  reading: 'voltage',
  format: 'FLOAT',
  factor: 1,
  device: 'ZWave_SWITCH_BINARY_10',
  informId: 'ZWave_SWITCH_BINARY_10-voltage',
  characteristic_type: 'E863F10A-079E-48FF-8F27-9C2605A29F52',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-06-22 11:54:57 caching: ZWave_SWITCH_BINARY_10-voltage:  237.84 V previous: 236.88 delta_time: 301 s
[2018-6-22 11:54:57] [FHEM]     caching: Custom Voltage: 237.84 (as number; from ' 237.84 V previous: 236.88 delta_time: 301 s')
[2018-6-22 11:54:57] [FHEM] { name: 'Current',
  reading: 'current',
  format: 'FLOAT',
  factor: 1,
  device: 'ZWave_SWITCH_BINARY_10',
  informId: 'ZWave_SWITCH_BINARY_10-current',
  characteristic_type: 'E863F126-079E-48FF-8F27-9C2605A29F52',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-06-22 11:54:57 caching: ZWave_SWITCH_BINARY_10-current:  0 A previous: 0 delta_time: 301 s
[2018-6-22 11:54:57] [FHEM]     caching: Custom Current: 0 (as number; from ' 0 A previous: 0 delta_time: 301 s')
[2018-6-22 11:54:57] [FHEM] { name: 'Power',
  reading: 'power',
  format: 'FLOAT',
  factor: 1,
  device: 'ZWave_SWITCH_BINARY_10',
  informId: 'ZWave_SWITCH_BINARY_10-power',
  characteristic_type: 'E863F10D-079E-48FF-8F27-9C2605A29F52',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-06-22 11:54:57 caching: ZWave_SWITCH_BINARY_10-power:  0 W previous: 0 delta_time: 301 s
[2018-6-22 11:54:57] [FHEM]     caching: Custom Power: 0 (as number; from ' 0 W previous: 0 delta_time: 301 s')
[2018-6-22 11:54:57] [FHEM] { name: 'Energy',
  reading: 'energy',
  format: 'FLOAT',
  factor: 1,
  device: 'ZWave_SWITCH_BINARY_10',
  informId: 'ZWave_SWITCH_BINARY_10-energy',
  characteristic_type: 'E863F10C-079E-48FF-8F27-9C2605A29F52',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-06-22 11:54:57 caching: ZWave_SWITCH_BINARY_10-energy:  0 kWh previous: 0 delta_time: 301 s
[2018-6-22 11:54:57] [FHEM]     caching: Custom Energy: 0 (as number; from ' 0 kWh previous: 0 delta_time: 301 s')
[2018-6-22 11:54:57] [FHEM] { reading: 'state',
  valueOff: '/off|A0|000000/',
  cmdOn: 'on',
  cmdOff: 'off',
  device: 'ZWave_SWITCH_BINARY_10',
  informId: 'ZWave_SWITCH_BINARY_10-state',
  characteristic_type: 'On',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2018-06-22 11:54:57 caching: ZWave_SWITCH_BINARY_10-state: on


Der Port ist weiterleitet. Wenn ich über Mobilfunk auf den Port 3000 gehe bekomme ich diese Meldung.
[2018-6-22 12:02:47] ERROR: SyntaxError: Unexpected end of JSON input from ::ffff:172.19.0.1

Wenn ich auf der Lambda einen Discovery test mache, erhalte ich diese Meldung.
[2018-6-22 12:03:09] client not authorized: {"error_description":"The request has an invalid parameter : access_token","error":"invalid_token"}
[2018-6-22 12:03:09] ERROR: InvalidAccessTokenError from ::ffff:172.19.0.1
response :{"header":{"name":"InvalidAccessTokenError","payloadVersion":"2","namespace":"Alexa.ConnectedHome.Control","messageId":"e90381c2-46b3-4906-9fd1-979fdb81b68b"},"payload":{}}


So sieht meine config.json aus.
    "alexa": {
        "port": 3000,
        "name": "Alexa",
        "keyFile": "./key.pem",
        "certFile": "./cert.pem",
        "nat-pmp": "",
        "nat-upnp": false,
        "applicationId": "amzn1.ask.skill.x",
        "oauthClientID": "amzn1.application-oa2-client.x",
        "permissions": {"<skill-id>": { "client_id": "xyz", "client_secret": "123"}}
    },

    "connections": [
        {
            "name": "FHEM",
            "server": "172.19.0.5",
            "port": "8083",
            "webname": "fhem",
            "filter": "room=Alexa"
        }
    ]
}


und ein Dummy Device habe ich auch angelegt.


Internals:
   CFGFN     
   NAME       Alexa.Party
   NR         73505
   STATE      off
   TYPE       dummy
   READINGS:
     2018-06-22 11:46:24   state           off
Attributes:
   DbLogExclude .*
   alexaName  party
   alexaRoom  alexaroom
   genericDeviceType switch
   group      AlexaGerät
   room       Alexa
   setList    on off


Der Skill ist unter alexa.amazon.com aktiviert.
Wo kann ich den Fehler finden?

Vorab vielen Dank und Grüße
Frank

amenomade

Steht das wirklich so in deinem config.json?  :o
        "permissions": {"<skill-id>": { "client_id": "xyz", "client_secret": "123"}}
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

FrankieSOC

danke für den Hinweis, ich hatte heute nochmals alles gelöscht und neu gemacht, du das übersehen.
Die Zeile sieht nun so aus.

"permissions": {"amzn1.ask.skill.x": { "client_id": "amzn1.application-oa2-client.x", "client_secret": "xxx"}}

geändert hat sich leider nichts.

amenomade

alexa-fhem neu gestartet, und evtl. das Skill mit dem Amazon Konto in Alexa App neu verbunden?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

FrankieSOC

zur Sicherheit habe ich alexa-fhem noch mal neu gestartet und habe meinen Skill fhemDS nochmals deaktiviert und wieder aktiviert.

irgendwohin müssen doch die Suchanfragen laufen?
Gibt es noch weitere Lösungsansätze?

TomLee