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

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

Vorheriges Thema - Nächstes Thema

darkness


Volker80

Hallo

Gibt es mittlerweile einen Lösungsansatz um Alexa zu nutzen ohne das der Pi (oder auch der Router) von außen zu sehen ist?

Modell:

Inet->Fritzbox(Gastnetzwerk)->Repeater->Repeater->Fritzbox(eigener IP-Bereich)->Raspi, Echo, FHEM und alles andere

platoboos

Guten Tag,

benötige mal bitte eure Hilfe !

Komme einfach nicht weiter bei der Einrichtung. Hier bleibt es einfach stehen und es passiert nichts mehr...

Hat jemand eine Idee ?

pi@raspberrypi:~/alexa-fhem $ ./bin/alexa
[2017-07-20 22:29:23] using /home/pi/.alexa/config.json
[2017-07-20 22:29:23] ---
[2017-07-20 22:29:23] this alexa-fhem 0.1.9
[2017-07-20 22:29:23] Fetching FHEM devices...
[2017-07-20 22:29:23] [FHEM] Checking devices and attributes...
[2017-07-20 22:29:23] [FHEM]   executing: https://192.168.178.120:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[2017-07-20 22:29:23] [FHEM]   executing: https://192.168.178.120:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1
[2017-07-20 22:29:23] [FHEM] starting longpoll: https://192.168.178.120:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1500582563767
[2017-07-20 22:29:23] [FHEM] Fetching FHEM devices...
[2017-07-20 22:29:23] [FHEM] fetching: https://192.168.178.120:8083/fhem?cmd=jsonlist2%20room=alexa&XHR=1
[2017-07-20 22:29:23] Server listening on: https://:::3000


{
    "alexa": {
        "name": "Alexa FHEM",
        "keyFile": "./key.pem",
        "certFile": "./cert.pem",
        "nat-pmp": "",
        "nat-upnp": false,
        "applicationId": "amzn1.ask.skill.47801db0-c",
        "oauthClientID": "amzn1.application-oa2-client."

     },

    "connections": [
        {
            "name": "FHEM",
            "server": "192.168.178.120",
            "ssl": true,
            "auth": {"user": "xx", "pass": "xx"},
            "port": "8083",
            "filter": "room=alexa"
        }
    ]
}


amenomade

@Volker80: Irgendwie muss Alexa Voice Service (im Cloud) auf deinem Netz kommen (FHEM o.ä.), wenn Du mit Alexa etwas steuern willst.

Anscheinend gibt es eine rudimentäre Lösung hier: https://forum.fhem.de/index.php/topic,74356.msg660722.html#msg660722

Aber das gehört m.A. nicht zu diesem Thread alexa-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

amenomade

@platoboos: geh mal zuerst durch https://wiki.fhem.de/wiki/Alexa-Fhem#Troubleshooting

Und sag dann welche Devices Du im Room alexa hast (mit "list" davon)
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

platoboos


Fixel2012

Fhem 5.8 auf Raspi 3, HMLAN und 868MHz CUL mit einigen Komponenten, Z-Wave Rollladenaktoren, Tablet UI, 433 MHz CUL mit Baumarktsteckdosen und Temp Sensoren, Amazon Echo, Echo Dot, 2x SONOS  play1, 1x SONOS Connect AMP,  presence, HUE, Lightify

platoboos

Internals:
   00         f0
   DEF        000000000F FF F0
   IODev      nanoCUL
   NAME       TVLicht
   NR         32
   STATE      on
   TYPE       IT
   XMIT       000000000f
   XMITdimdown 00
   XMITdimup  00
   XMITon     ff
   Code:
     1          000000000f
   Readings:
     2017-07-16 18:47:18   protocol        V1
     2017-07-18 20:59:18   state           on
Attributes:
   IODev      nanoCUL
   model      itswitch
   room       alexa,Wohnzimmer

amenomade

Also... das Troubleshooting im Wiki musst Du noch anscheinend durchlesen...
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

platoboos


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

Markus

Ich komme auch nicht weiter :'(
In putty bekomme ich folgende Fehlermeldung

[2017-07-22 09:59:49] using /home/pi/.alexa/config.json
[2017-07-22 09:59:49] ---
[2017-07-22 09:59:49] this is alexa-fhem 0.3.4
[2017-07-22 09:59:49] Trying NAT-PMP ...
[2017-07-22 09:59:49] Trying NAT-UPNP ...
[2017-07-22 09:59:49] Fetching FHEM devices...
[2017-07-22 09:59:49] [FHEM] starting longpoll: https://192.168.1.27:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1500710389451
[2017-07-22 09:59:49] Server listening on: https://:::3000
/opt/fhem-5.7/alexa-fhem/lib/server.js:137
      if (err) throw err;
               ^

Error: "vers" must be 0. Got: 2
    at Client.onmessage (/opt/fhem-5.7/alexa-fhem/node_modules/nat-pmp/index.js:301:8)
    at Socket.<anonymous> (/opt/fhem-5.7/alexa-fhem/node_modules/nat-pmp/index.js:367:32)
    at emitTwo (events.js:87:13)
    at Socket.emit (events.js:172:7)
    at UDP.onMessage (dgram.js:506:8)


Danke
Gruß Markus
Raspberry Pi2 als FHEM-Plattform
HM, FS20, 1-Wire, PanStamp,LW12,Intertechno,ESPEasy,Alexa

justme1968

hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Markus

Danke jetzt schaut es anders aus aber ich habe keine Ahnung was mir das sagen soll-

in der app finde ich keine Geräte nur den Fehler ihre anfrage konnte nicht abgeschlossen werden.

Guß Markus

./bin/alexa
[2017-07-23 15:03:45] using /home/pi/.alexa/config.json
[2017-07-23 15:03:45] ---
[2017-07-23 15:03:45] this is alexa-fhem 0.3.4
[2017-07-23 15:03:45] Fetching FHEM devices...
[2017-07-23 15:03:45] [FHEM] starting longpoll: https://192.168.1.27:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1500815025924
[2017-07-23 15:03:46] Server listening on: https://:::3000
[2017-07-23 15:07:46] [FHEM] Checking devices and attributes...
[2017-07-23 15:07:46] [FHEM]   executing: https://192.168.1.27:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&fwcsrf=csrf_665245902756393&XHR=1
[2017-07-23 15:07:46] [FHEM]   executing: https://192.168.1.27:8083/fhem?cmd=jsonlist2%20TYPE=alexa&fwcsrf=csrf_665245902756393&XHR=1
[2017-07-23 15:07:46] [FHEM] Fetching FHEM devices...
[2017-07-23 15:07:46] [FHEM] fetching: https://192.168.1.27:8083/fhem?cmd=jsonlist2%20room=alexa&fwcsrf=csrf_665245902756393&XHR=1
[2017-07-23 15:07:49] [FHEM] alexa device is MyAlexa
[2017-07-23 15:07:49] [FHEM] MyAlexa is switch
[2017-07-23 15:07:49] [FHEM] MyAlexa has
[2017-07-23 15:07:49] [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
[2017-07-23 15:07:49] [FHEM]   executing: https://192.168.1.27:8083/fhem?cmd=%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%201%7D&fwcsrf=csrf_665245902756393&XHR=1
[2017-07-23 15:07:49] [FHEM]   executing: https://192.168.1.27:8083/fhem?cmd=%7B$defs%7BMyAlexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20=%20%220.3.4%22%7D&fwcsrf=csrf_665245902756393&XHR=1
[2017-07-23 15:07:49] [FHEM]   executing: https://192.168.1.27:8083/fhem?cmd=%7B$defs%7BMyAlexa%7D-%3E%7B%22active%22%7D%20=%200%7D&fwcsrf=csrf_665245902756393&XHR=1
[2017-07-23 15:07:49] perfectOfVerb:
[2017-07-23 15:07:49] { stelle: 'gestellt',
  schalte: 'geschaltet',
  'färbe': 'gefärbt',
  mach: 'gemacht' }
[2017-07-23 15:07:49] verbsOfIntent:
[2017-07-23 15:07:49] [ OnIntent: [ 'schalte' ],
  prozentIntent: [ 'stelle' ],
  HueIntent: [ 'stelle' ],
  HueIntentB: [ 'färbe' ],
  SaturationIntent: [ 'stelle' ],
  SaturationIntentB: [ 'sättige' ],
  TargetPositionIntent: [ 'mach' ],
  gradIntent: [ 'stelle' ] ]
[2017-07-23 15:07:49] characteristicsOfIntent:
[2017-07-23 15:07:49] { OnIntent: [ 'On' ],
  prozentIntent: [ 'Brightness', 'TargetPosition', 'Volume' ],
  HueIntent: [ 'Hue' ],
  HueIntentB: [ 'Hue' ],
  SaturationIntent: [ 'Saturation' ],
  SaturationIntentB: [ 'Saturation' ],
  TargetPositionIntent: [ 'TargetPosition' ],
  gradIntent: [ 'TargetTemperature' ] }
[2017-07-23 15:07:49] prefixOfIntent:
[2017-07-23 15:07:49] { OnIntent: undefined,
  prozentIntent: 'auf',
  HueIntent: 'auf',
  HueIntentB: undefined,
  SaturationIntent: 'auf',
  SaturationIntentB: undefined,
  TargetPositionIntent: undefined,
  gradIntent: 'auf' }
[2017-07-23 15:07:49] suffixOfIntent:
[2017-07-23 15:07:49] { OnIntent: undefined,
  prozentIntent: 'prozent',
  HueIntent: undefined,
  HueIntentB: undefined,
  SaturationIntent: undefined,
  SaturationIntentB: undefined,
  TargetPositionIntent: undefined,
  gradIntent: 'grad' }
[2017-07-23 15:07:49] alexaTypes:
[2017-07-23 15:07:49] { light: [ 'licht', 'lampen' ],
  blind:
   [ 'rolladen',
     'rolläden',
     'jalousie',
     'jalousien',
     'rollo',
     'rollos' ] }
[2017-07-23 15:07:49] roomOfEcho:
[2017-07-23 15:07:49] {}
[2017-07-23 15:07:49] fhemIntents:
[2017-07-23 15:07:49] { FHEMgutenMorgenIntent: 'gutenMorgen',
  FHEMguteNachtIntent: 'guteNacht' }
[2017-07-23 15:07:49] [FHEM] got: 1 results
[2017-07-23 15:07:49] [FHEM] Licht_Schlafzimmer is light
[2017-07-23 15:07:49] [FHEM] Licht_Schlafzimmer has
[2017-07-23 15:07:49] [FHEM]   On [pct;on,off]
[2017-07-23 15:07:49] [FHEM]   Brightness [pct]
[2017-07-23 15:07:49] [FHEM]   FirmwareRevision [D-firmware]
[2017-07-23 15:07:49] [FHEM] { reading: 'pct',
  valueOff: '0',
  cmdOn: 'on',
  cmdOff: 'off',
  device: 'Licht_Schlafzimmer',
  informId: 'Licht_Schlafzimmer-pct',
  characteristic_type: 'On',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2017-07-23 15:07:49 caching: Licht_Schlafzimmer-pct: 0
[2017-07-23 15:07:49] [FHEM] { reading: 'pct',
  cmd: 'pct',
  delay: true,
  device: 'Licht_Schlafzimmer',
  informId: 'Licht_Schlafzimmer-pct',
  characteristic_type: 'Brightness',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
[2017-07-23 15:07:49] [FHEM] { reading: 'D-firmware',
  _isInformation: true,
  device: 'Licht_Schlafzimmer',
  informId: 'Licht_Schlafzimmer-D-firmware',
  characteristic_type: 'FirmwareRevision',
  log:
   { [Function: bound ]
     debug: [Function],
     info: [Function],
     warn: [Function],
     error: [Function],
     log: [Function],
     prefix: 'FHEM' } }
  2017-07-23 15:07:49 caching: Licht_Schlafzimmer-D-firmware: 2.2
MyAlexa

Raspberry Pi2 als FHEM-Plattform
HM, FS20, 1-Wire, PanStamp,LW12,Intertechno,ESPEasy,Alexa

justme1968

wie im wiki beschrieben die trouble shooting punkte duchgehen. vermutlich stimmt etwas mit dem trigger nicht.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968