Hallo zusammen!
Ich habe meinen RasPi zum Fhem Server gemacht.
Das hat gut funktioniert. :)
Anschließend habe ich meine Yeelight integriert.
Hat ebenfalls geklappt :)
Aber jetzt hakt es bei der Installation von alexa-fhem.
Ich weiß. Die 1000ste :(
Die Suche hat mir auch irgendwie nicht geholfen.
Wiki Artikel auch durchgearbeitet.
Vielleicht bin ich aber auch mittlerweile blind 8)
Im Grunde hat alles ganz gut funktioniert bis zum Start vom alexa-fhem.
Dabei bekomme ich eine Fehlermeldung aus der ich nicht schlau werde.
Vielleicht kann mir hier jemand auf die Sprünge helfen.
Hier der Output beim Start:
pi@raspberrypi:~/alexa-fhem $ ./bin/alexa
[2017-8-1 20:37:24] using /home/pi/.alexa/config.json
[2017-8-1 20:37:25] ---
[2017-8-1 20:37:25] this alexa-fhem 0.1.9
pi@raspberrypi:~/alexa-fhem $ ./bin/alexa
[2017-8-1 20:41:00] using /home/pi/.alexa/config.json
[2017-8-1 20:41:00] --- [2017-8-1 20:41:00] this alexa-fhem 0.1.9
[2017-8-1 20:41:00] Fetching FHEM devices... [2017-8-1 20:41:00] [FHEM] Checking devices and attributes...
[2017-8-1 20:41:00] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1 [2017-8-1 20:41:01] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1
[2017-8-1 20:41:01] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1501612861079
[2017-8-1 20:41:01] [FHEM] Fetching FHEM devices... [2017-8-1 20:41:01] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=Alexa&XHR=1
[2017-8-1 20:41:01] Server listening on: https://:::3000 [2017-8-1 20:41:01] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%20addToAttrList(%20%22homebridgeMapping:textField-long%22%20)%20%7D&XHR=1
[2017-8-1 20:41:01] [FHEM] homebridgeMapping attribute created.
[2017-8-1 20:41:01] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BaddToAttrList(%20%22genericDeviceType:security,ignore,switch,outlet,light,blind,thermometer,thermostat,contact,garage,window,lock%22%20)%20%7D&XHR=1
/home/pi/alexa-fhem/lib/fhem.js:729
this.log.info( 'got: ' + json['totalResultsReturned'] + ' results' );
^
TypeError: Cannot read property 'totalResultsReturned' of undefined
at FHEM.<anonymous> (/home/pi/alexa-fhem/lib/fhem.js:729:51)
at Request.self.callback (/home/pi/alexa-fhem/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/home/pi/alexa-fhem/node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Gunzip.<anonymous> (/home/pi/alexa-fhem/node_modules/request/request.js:1091:12)
at Gunzip.g (events.js:292:16)
at emitNone (events.js:91:20)
pi@raspberrypi:~/alexa-fhem $
Danke :D
Zitatthis alexa-fhem 0.1.9
Vielleicht zuerst deine alexa-fhem Version aktualisieren. alexa-fhem ist mittlerweile in Version 0.3.4.
Oh Mann. Wo hab ich die denn ausgegraben ;D
Das werde ich dann wohl erst mal probieren.
Danke.