[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

#855
Zitat von: Tommy82 am 03 Februar 2017, 11:05:03
Also der user fhem ist in den sudoers, somit kann es das auch nicht sein...

War der User thomas doch auch (in verschiedenen Varianten) und hat (soweit ich mich erinnere) auch nicht (gleich) funktioniert...

Was steht denn in der sudoers drin?
Poste das doch (noch) mal...

Auch mal den Link bzgl. sudoers von mir verfolgt??

Steht was im alexa-Log, wenn du per Alexa-DOIF schaltest?
Bzw. die DOIF-Befehle per Web-cmd-Zeile eingibst?

Ganz sicher gehen könnte man nur, wenn man rauskriegt was passiert, wenn die Befehle als User fhem ausgeführt werden.

So wie es aussieht ist ja genau das der einzige Unterschied zwischen: geht und geht nicht...

...oder hab ich was übersehen??

EDIT: ich hab leider grad kein Startscript hier bzw. das DOIF aber da wird ja einiges/alles nach /dev/null umgeleitet, vielleicht das mal rausmachen und in eine (extra) Datei umleiten damit man sieht was passiert...

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)

Tommy82

Juhu hab es hinbekommen, man was für eine geburt.....

Die Lösung war nun , das ich den User fhem den gleichen Gruppen wie dem User thomas zugeordnet habe, nun lässt sich auch alles über Fhem starten bzw. stoppen.

Vielen Dank für die freundliche und geduldige Hilfe.
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

MadMax-FHEM

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)

PsychoJJ

"
#858
Hall zusammen,

Vielen Dank! Mein "Custom Skill" läuft einwandfrei.

Zusätzlich würde ich aber auch gerne das "SmartHome Skill" nutzen.

Hierzu habe ich laut Anleitung (https://wiki.fhem.de/wiki/Alexa-Fhem) Alles noch einmal erneut erstellt. Also ich habe jetzt 2 Security-Profiles, 2 Apps, 2 Lambda Functions.

In der conifg.json kann ich dann auch zwischen dem "Smarthome Skill" und dem "Custom Skill" wechseln.
Einzeln funktionieren die beiden also, ich würde aber gerne beide gleichzeitig nutzen. Geht das?


Vielen Dank schon mal im voraus!

Gruß

        Jörg

Fixel2012

Klar geht das!

Ich habe bei mir nur eine Lambda Funktion und triggere mit der aber beide Skills. Guck mal bei Lambda nach, dort ist ein Reiter trigger.
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

MadMax-FHEM

Zitat von: PsychoJJ am 03 Februar 2017, 13:11:52
Hall zusammen,

Vielen Dank! Mein "Custom Skill" läuft einwandfrei.

Zusätzlich würde ich aber auch gerne das "SmartHome Skill" nutzen.

Hierzu habe ich laut Anleitung (https://wiki.fhem.de/wiki/Alexa-Fhem) Alles noch einmal erneut erstellt. Also ich habe jetzt 2 Security-Profiles, 2 Apps, 2 Lambda Functions.

Die ClientID ist richtig! Der "Custom Skill" funktioniert auch, nur nicht der "einfache" "Smarthome Skill".
Habe auch die Applikation-ID und Client-ID von "Custom-Skill" auf "Smarthome Skill" geändert, also nur ein Eintrag.

Erwartungsgemäß funktioniert dann auch der "Smarthome Skill" und der "Custom Skill" dann nicht.
Einzeln funktionieren die beiden also, ich würde aber gerne beide gleichzeitig nutzen. Geht das?


Vielen Dank schon mal im voraus!

Gruß

        Jörg

Also ob das das Problem löst kann ich nicht sagen (aber da beide jeweils einzeln funktionieren kann das schon sein):

du brauchst nur 1 Security Profile und nur 1 AWS-Lambda!

Was meinst du mit App??

Was du brauchst is 2x Skill: 1x Smart Home und 1x Custom
und 2x Trigger: 1x Smart Home und 1x Custom

In der config.json dann:

app-id: Custom Skill
oauth-id: Smart Home Skill

So läuft beides bei mir parallel ohne Probleme...

Zu beachten: alexaRoom giltet nur für den Custom Skill (etwas vgl.bares beim Smart Home Skill sind wohl die Gruppen in der Alexa-App)

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)

raimundl

Hallo!

Seit ca. 2 Stunden ist alexa bei mir "offline" - das heißt ich kann meine fhem-devices nicht mehr ansprechen. In der alexa App scheinen die skills zwar auf aber mit dem Zusatz offline. Änderungen habe ich keine vorgenommen. Auch ist der Port 3000 offen und die das Programm läuft.
Kann das ein Problem bei Amazon sein? Hat noch jemand so einen Ausfall?

LG
Homematic: Licht, Heizung, Alarm, Alexa ... auf einen RaspberryPi3+mit OS "Stretch" und RPI-RF-MOD mit piVCCU3 (HMCCU), ca. 40 HM Komponenten, alexa, MobileAlerts, Hue Ledstripes....

PsychoJJ

Vielen Dank!

Zitat
app-id: Custom Skill
oauth-id: Smart Home Skill

Nun läuft es!  :)

PsychoJJ


Fixel2012

Zitat von: raimundl am 03 Februar 2017, 13:39:43
Hallo!

Seit ca. 2 Stunden ist alexa bei mir "offline" - das heißt ich kann meine fhem-devices nicht mehr ansprechen. In der alexa App scheinen die skills zwar auf aber mit dem Zusatz offline. Änderungen habe ich keine vorgenommen. Auch ist der Port 3000 offen und die das Programm läuft.
Kann das ein Problem bei Amazon sein? Hat noch jemand so einen Ausfall?

LG

Neu start von alexa-fhem Probiert?

Falls es danach wieder geht, am besten das alexa-fhem log begutachten, um zu schauen an was es lag.
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

MadMax-FHEM

Zitat von: raimundl am 03 Februar 2017, 13:39:43
Hallo!

Seit ca. 2 Stunden ist alexa bei mir "offline" - das heißt ich kann meine fhem-devices nicht mehr ansprechen. In der alexa App scheinen die skills zwar auf aber mit dem Zusatz offline. Änderungen habe ich keine vorgenommen. Auch ist der Port 3000 offen und die das Programm läuft.
Kann das ein Problem bei Amazon sein? Hat noch jemand so einen Ausfall?

LG

Offline hatte ich als etwas mit meinem dynDNS nicht so geklappt hat.

D.h. die Geräte können von außen AWS-Lambda nicht angesprochen werden, da alexa-fhem von außen nicht erreichbar ist weil die IP die der Router vom Provider grad hat nicht die ist, die per ping auf den in AWS-Lambda eingetragenen Namen übereinstimmt...

Das schon mal geprüft??

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)

raimundl

Ausfall vorbei!

Danke für die Meldungen. Muss aber bei Amazon gelegen sein, da ich nichts verändert habe - außer in den logs herumgestochert.

LG
Homematic: Licht, Heizung, Alarm, Alexa ... auf einen RaspberryPi3+mit OS "Stretch" und RPI-RF-MOD mit piVCCU3 (HMCCU), ca. 40 HM Komponenten, alexa, MobileAlerts, Hue Ledstripes....

HomeAlone

Zitat von: raspklaus am 06 Januar 2017, 13:59:22
Hallo zusammen,

ich versuche gerade die Grundlagen für den Dot seit zwei Tagen zu installieren:

[...]

etwas weiter bin ich nun gekommen aber es funktioniert immer noch nicht:

The following packages have unmet dependencies:
nodejs : Depends: libc6 (>= 2.16) but 2.13-38+deb7u11 is to be installed
          Depends: libstdc++6 (>= 5.2) but 4.7.2-5 is to be installed
E: Unable to correct problems, you have held broken packages.


Ich habe mich gerade auch daran versucht, laut Anleitung alexa-fhem zu installieren (Raspberry Pi 2 mit Raspbian / Wheezy).

Ich bekomme eine ähnliche Fehlermeldung bei dem Versuch, node.js zu installieren:


pi@raspberrypi /opt/fhem/package $ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -

## Installing the NodeSource Node.js v4.x LTS Argon repo...


## Populating apt-get cache...

+ apt-get update
Hit http://mirrordirector.raspbian.org wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release
Hit http://mirrordirector.raspbian.org wheezy Release
Hit http://archive.raspberrypi.org wheezy Release
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_GB
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Reading package lists... Done

## Installing packages required for setup: apt-transport-https lsb-release...

+ apt-get install -y apt-transport-https lsb-release > /dev/null 2>&1

## Confirming "wheezy" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_4.x/dists/wheezy/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK

## Creating apt sources list file for the NodeSource Node.js v4.x LTS Argon repo...

+ echo 'deb https://deb.nodesource.com/node_4.x wheezy main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_4.x wheezy main' >> /etc/apt/sources.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
Hit http://mirrordirector.raspbian.org wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release
Hit http://mirrordirector.raspbian.org wheezy Release
Hit http://archive.raspberrypi.org wheezy Release
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_GB
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Get:1 https://deb.nodesource.com wheezy Release.gpg [860 B]
Get:2 https://deb.nodesource.com wheezy Release [3,005 B]
Get:3 https://deb.nodesource.com wheezy/main Sources [762 B]
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Get:4 https://deb.nodesource.com wheezy/main armhf Packages [980 B]
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Ign https://deb.nodesource.com wheezy/main Translation-en_GB
Ign https://deb.nodesource.com wheezy/main Translation-en
Fetched 5,607 B in 18s (297 B/s)
Reading package lists... Done

## Run `apt-get install nodejs` (as root) to install Node.js v4.x LTS Argon and npm

pi@raspberrypi /opt/fhem/package $ sudo apt-get install -y nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
nodejs : Depends: libc6 (>= 2.16) but 2.13-38+rpi2+deb7u11 is to be installed
          Depends: libstdc++6 (>= 5.2) but 4.8.2-21~rpi3rpi1 is to be installed
E: Unable to correct problems, you have held broken packages.


Vermutlich verwendest Du auch Raspbian Wheezy. Ich habe zunächst einmal das System wieder gerade gebogen:


sudo nano /etc/apt/sources.list.d/nodesource.list (alles auskommentieren)
sudo apt-get update
sudo apt-get -f install
wget https://archive.raspbian.org/raspbian/pool/main/e/eglibc/libc6-dev_2.13-38%2brpi2%2bdeb7u11_armhf.deb
sudo dpkg -i --force-all libc6-dev_2.13-38+rpi2+deb7u11_armhf.deb 
sudo apt-get -f install
sudo apt-get --reinstall install libstdc++6


Danach funktionerte bei mir wieder alles einwandfrei und ist wieder sauber:

pi@raspberrypi ~ $ sudo apt-cache policy libstdc++6
libstdc++6:
  Installed: 4.8.2-21~rpi3rpi1
  Candidate: 4.8.2-21~rpi3rpi1
  Version table:
*** 4.8.2-21~rpi3rpi1 0
        500 http://archive.raspberrypi.org/debian/ wheezy/main armhf Packages
        100 /var/lib/dpkg/status
     4.7.2-5+rpi1 0
        500 http://mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages
pi@raspberrypi ~ $ sudo apt-cache policy libc6
libc6:
  Installed: 2.13-38+rpi2+deb7u11
  Candidate: 2.13-38+rpi2+deb7u11
  Version table:
*** 2.13-38+rpi2+deb7u11 0
        500 http://mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages
        100 /var/lib/dpkg/status


Soweit zum Aufräumen.

Jetzt bin ich gerade dabei, die Möglichkeiten zu eruieren, auch in den Genuss von alexa-fhem zu kommen.


  • Gibt es ein Debian Wheezy package von Node.js, welches mit den oben genannten Original-Versionen von libc6 und libstdc++6 auskommt?
  • Upgrade von Wheezy auf Jessy? Gerne mit Hinweis auf eine Anleitung :)

Daher die Frage in die Runde: Wer hat alexa-fhem unter Wheezy laufen und wie habt Ihr das gemacht?

Viele Grüße
Sascha

EnderPhilipp

Hi Liebe FHEM-Community  :D,

habe letzte Woche meinen Dot bekommen und den will ich natürlich auch mit FHEM verbinden.

Ich bin nach diesem Blog-Artikel vorgegangen.

Wenn ich jetzt alexa-fhem starte kommt:

./bin/alexa
[2017-02-08 16:38:16] using /home/pi/.alexa/config.json
[2017-02-08 16:38:16] ---
[2017-02-08 16:38:16] this alexa-fhem 0.1.9
[2017-02-08 16:38:16] Fetching FHEM devices...
[2017-02-08 16:38:16] [FHEM] Checking devices and attributes...
[2017-02-08 16:38:16] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[2017-02-08 16:38:16] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1
[2017-02-08 16:38:16] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1486568296656
[2017-02-08 16:38:16] [FHEM] Fetching FHEM devices...
[2017-02-08 16:38:16] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=Alexa&XHR=1
[2017-02-08 16:38:16] Server listening on: https://:::3000
[2017-02-08 16:38:17] [FHEM] got: 1 results
[2017-02-08 16:38:17] [FHEM] Stehlampe is switch
[2017-02-08 16:38:17] [FHEM] Stehlampe has
[2017-02-08 16:38:17] [FHEM]   On [state;on,off]
  2017-02-08 16:38:17 caching: Stehlampe-state: off
[2017-02-08 16:38:17] [FHEM] no alexa device found. please define it.
^C[2017-02-08 16:40:30] Got SIGINT, shutting down alexa-fhem...
pi@FHEM:~/alexa-fhem $ ./bin/alexa
[2017-02-08 16:40:33] using /home/pi/.alexa/config.json
[2017-02-08 16:40:33] ---
[2017-02-08 16:40:33] this alexa-fhem 0.1.9
[2017-02-08 16:40:33] Fetching FHEM devices...
[2017-02-08 16:40:33] [FHEM] Checking devices and attributes...
[2017-02-08 16:40:33] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[2017-02-08 16:40:33] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1
[2017-02-08 16:40:33] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1486568433617
[2017-02-08 16:40:33] [FHEM] Fetching FHEM devices...
[2017-02-08 16:40:33] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=Alexa&XHR=1
[2017-02-08 16:40:33] Server listening on: https://:::3000
[2017-02-08 16:40:35] [FHEM] alexa device is EchoDot
[2017-02-08 16:40:35] [FHEM] EchoDot is switch
[2017-02-08 16:40:35] [FHEM] EchoDot has
[2017-02-08 16:40:35] [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,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-02-08 16:40:35] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7BEchoDot%7D-%3E%7B%22active%22%7D%20=%201%7D&XHR=1
[2017-02-08 16:40:35] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7BEchoDot%7D-%3E%7B%22alexa-fhem%20version%22%7D%20=%20%220.1.9%22%7D&XHR=1
[2017-02-08 16:40:35] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7BEchoDot%7D-%3E%7B%22active%22%7D%20=%200%7D&XHR=1
[2017-02-08 16:40:35] { stelle: 'gestellt',
  schalte: 'geschaltet',
  'färbe': 'gefärbt',
  mach: 'gemacht' }
[2017-02-08 16:40:35] [ OnIntent: [ 'schalte' ],
  prozentIntent: [ 'stelle' ],
  HueIntent: [ 'stelle' ],
  HueIntentB: [ 'färbe' ],
  SaturationIntent: [ 'stelle' ],
  SaturationIntentB: [ 'sättige' ],
  TargetPositionIntent: [ 'mach' ],
  gradIntent: [ 'stelle' ] ]
[2017-02-08 16:40:35] { OnIntent: [ 'On' ],
  prozentIntent: [ 'Brightness', 'TargetPosition', 'Volume' ],
  HueIntent: [ 'Hue' ],
  HueIntentB: [ 'Hue' ],
  SaturationIntent: [ 'Saturation' ],
  SaturationIntentB: [ 'Saturation' ],
  TargetPositionIntent: [ 'TargetPosition' ],
  gradIntent: [ 'TargetTemperature' ] }
[2017-02-08 16:40:35] { OnIntent: undefined,
  prozentIntent: 'auf',
  HueIntent: 'auf',
  HueIntentB: undefined,
  SaturationIntent: 'auf',
  SaturationIntentB: undefined,
  TargetPositionIntent: undefined,
  gradIntent: 'auf' }
[2017-02-08 16:40:35] { OnIntent: undefined,
  prozentIntent: 'prozent',
  HueIntent: undefined,
  HueIntentB: undefined,
  SaturationIntent: undefined,
  SaturationIntentB: undefined,
  TargetPositionIntent: undefined,
  gradIntent: 'grad' }
[2017-02-08 16:40:35] { light: [ 'licht', 'lampen' ],
  blind:
   [ 'rolladen',
     'rolläden',
     'jalousie',
     'jalousien',
     'rollo',
     'rollos' ] }
[2017-02-08 16:40:35] { FHEMgutenMorgenIntent: 'gutenMorgen',
  FHEMguteNachtIntent: 'guteNacht' }
[2017-02-08 16:40:35] [FHEM] got: 1 results
[2017-02-08 16:40:35] [FHEM] Stehlampe is switch
[2017-02-08 16:40:35] [FHEM] Stehlampe has
[2017-02-08 16:40:35] [FHEM]   On [state;on,off]
  2017-02-08 16:40:35 caching: Stehlampe-state: off
[2017-02-08 16:41:55] [FHEM] longpoll ended, reconnect in: 200msec
[2017-02-08 16:41:55] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1486568515688


Alexa-Device ist in FHEM angelegt.
Stehlampen-dummy ist im Raum Alexa (habe ich in der config darauf geändert), genericDevicetype ist switch.

Wenn ich jetzt in der AlexaApp den Skill aktiviere und Geräte suchen will, findet die App keine Geräte.

Noch was ist mir aufgefallen:
Wenn ich http://192.168.0.220:3000 (Url von FHEM) aufrufe, sehe ich keine Config.

Bin echt an verzweifeln  :-[, deshalb würde mich über jede Hilfe freuen :D

Mfg
Philipp ;D
¡¡¡ANFÄNGERALARM!!!
Raspberry Pi 3 (Hauptsystem)
Raspberry Pi B+ (Kellersonde)
Homematic,Philips Hue, LD382, nanoCul 433/868mhz, MPD, Intertechno, FIRMATA, EspEasy, SSCAM, STV, HDMI-CEC, EchoDot

MadMax-FHEM

Zitat von: EnderPhilipp am 08 Februar 2017, 16:53:07
Hi Liebe FHEM-Community  :D,

habe letzte Woche meinen Dot bekommen und den will ich natürlich auch mit FHEM verbinden.

Ich bin nach diesem Blog-Artikel vorgegangen.

Wenn ich jetzt alexa-fhem starte kommt:

./bin/alexa
[2017-02-08 16:38:16] using /home/pi/.alexa/config.json
[2017-02-08 16:38:16] ---
[2017-02-08 16:38:16] this alexa-fhem 0.1.9
[2017-02-08 16:38:16] Fetching FHEM devices...
[2017-02-08 16:38:16] [FHEM] Checking devices and attributes...
[2017-02-08 16:38:16] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[2017-02-08 16:38:16] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1
[2017-02-08 16:38:16] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1486568296656
[2017-02-08 16:38:16] [FHEM] Fetching FHEM devices...
[2017-02-08 16:38:16] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=Alexa&XHR=1
[2017-02-08 16:38:16] Server listening on: https://:::3000
[2017-02-08 16:38:17] [FHEM] got: 1 results
[2017-02-08 16:38:17] [FHEM] Stehlampe is switch
[2017-02-08 16:38:17] [FHEM] Stehlampe has
[2017-02-08 16:38:17] [FHEM]   On [state;on,off]
  2017-02-08 16:38:17 caching: Stehlampe-state: off
[2017-02-08 16:38:17] [FHEM] no alexa device found. please define it.
^C[2017-02-08 16:40:30] Got SIGINT, shutting down alexa-fhem...
pi@FHEM:~/alexa-fhem $ ./bin/alexa
[2017-02-08 16:40:33] using /home/pi/.alexa/config.json
[2017-02-08 16:40:33] ---
[2017-02-08 16:40:33] this alexa-fhem 0.1.9
[2017-02-08 16:40:33] Fetching FHEM devices...
[2017-02-08 16:40:33] [FHEM] Checking devices and attributes...
[2017-02-08 16:40:33] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[2017-02-08 16:40:33] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=alexa&XHR=1
[2017-02-08 16:40:33] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1486568433617
[2017-02-08 16:40:33] [FHEM] Fetching FHEM devices...
[2017-02-08 16:40:33] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=Alexa&XHR=1
[2017-02-08 16:40:33] Server listening on: https://:::3000
[2017-02-08 16:40:35] [FHEM] alexa device is EchoDot
[2017-02-08 16:40:35] [FHEM] EchoDot is switch
[2017-02-08 16:40:35] [FHEM] EchoDot has
[2017-02-08 16:40:35] [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,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-02-08 16:40:35] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7BEchoDot%7D-%3E%7B%22active%22%7D%20=%201%7D&XHR=1
[2017-02-08 16:40:35] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7BEchoDot%7D-%3E%7B%22alexa-fhem%20version%22%7D%20=%20%220.1.9%22%7D&XHR=1
[2017-02-08 16:40:35] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B$defs%7BEchoDot%7D-%3E%7B%22active%22%7D%20=%200%7D&XHR=1
[2017-02-08 16:40:35] { stelle: 'gestellt',
  schalte: 'geschaltet',
  'färbe': 'gefärbt',
  mach: 'gemacht' }
[2017-02-08 16:40:35] [ OnIntent: [ 'schalte' ],
  prozentIntent: [ 'stelle' ],
  HueIntent: [ 'stelle' ],
  HueIntentB: [ 'färbe' ],
  SaturationIntent: [ 'stelle' ],
  SaturationIntentB: [ 'sättige' ],
  TargetPositionIntent: [ 'mach' ],
  gradIntent: [ 'stelle' ] ]
[2017-02-08 16:40:35] { OnIntent: [ 'On' ],
  prozentIntent: [ 'Brightness', 'TargetPosition', 'Volume' ],
  HueIntent: [ 'Hue' ],
  HueIntentB: [ 'Hue' ],
  SaturationIntent: [ 'Saturation' ],
  SaturationIntentB: [ 'Saturation' ],
  TargetPositionIntent: [ 'TargetPosition' ],
  gradIntent: [ 'TargetTemperature' ] }
[2017-02-08 16:40:35] { OnIntent: undefined,
  prozentIntent: 'auf',
  HueIntent: 'auf',
  HueIntentB: undefined,
  SaturationIntent: 'auf',
  SaturationIntentB: undefined,
  TargetPositionIntent: undefined,
  gradIntent: 'auf' }
[2017-02-08 16:40:35] { OnIntent: undefined,
  prozentIntent: 'prozent',
  HueIntent: undefined,
  HueIntentB: undefined,
  SaturationIntent: undefined,
  SaturationIntentB: undefined,
  TargetPositionIntent: undefined,
  gradIntent: 'grad' }
[2017-02-08 16:40:35] { light: [ 'licht', 'lampen' ],
  blind:
   [ 'rolladen',
     'rolläden',
     'jalousie',
     'jalousien',
     'rollo',
     'rollos' ] }
[2017-02-08 16:40:35] { FHEMgutenMorgenIntent: 'gutenMorgen',
  FHEMguteNachtIntent: 'guteNacht' }
[2017-02-08 16:40:35] [FHEM] got: 1 results
[2017-02-08 16:40:35] [FHEM] Stehlampe is switch
[2017-02-08 16:40:35] [FHEM] Stehlampe has
[2017-02-08 16:40:35] [FHEM]   On [state;on,off]
  2017-02-08 16:40:35 caching: Stehlampe-state: off
[2017-02-08 16:41:55] [FHEM] longpoll ended, reconnect in: 200msec
[2017-02-08 16:41:55] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1486568515688


Alexa-Device ist in FHEM angelegt.
Stehlampen-dummy ist im Raum Alexa (habe ich in der config darauf geändert), genericDevicetype ist switch.

Wenn ich jetzt in der AlexaApp den Skill aktiviere und Geräte suchen will, findet die App keine Geräte.

Noch was ist mir aufgefallen:
Wenn ich http://192.168.0.220:3000 (Url von FHEM) aufrufe, sehe ich keine Config.

Bin echt an verzweifeln  :-[, deshalb würde mich über jede Hilfe freuen :D

Mfg
Philipp ;D

In AWS Lambda muss die von EXTERN erreichbare IP eingetragen werden (dynDNS etc.!!) und dann noch der Port entsprechend von außen zu alexa-fhem weitergeleitet werden!

Wenn bei der Gerätesuche keine weiteren Ausgaben in der alexa-fhem Console kommen, dann kommt keine Anfrage von "außen" durch und somit wird auch nichts von Alexa gefunden...

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)