schuma am besten orientierst du dich am monit Eintrag in der nginx Config Datei unter availablesites.
Statt proxy_pass http://monithost; müsstest du http://alexa eingeben und ganz oben in der Datei checken, ob 9000 der richtige Port ist.
Wäre super, du könntest hier die fertige Config posten, dann kann ich das aktualisieren. Persönlich würde ich präferieren, Alexa ist in einem entsprechenden Unterverzeichnis und nicht im HTML Root.
Mit Zertifikaten müsste alles klappen, aber du musst neue anlegen lassen, am besten mit setup_all
Ankündigung
Einklappen
Keine Ankündigung bisher.
Amazon Alexa Plugin
Einklappen
X
-
Bei mir ist die domain.conf im nginx wie folgt.
Zitat von schuma Beitrag anzeigen
Was muss ich in dem Image genau an den nginx Dateien ändern um das Alexaplugin zu benutzen?GrußCode:# alexa server { server_tokens off; listen 443 ssl; server_name host.domain.de; # gzip should not be used with ssl gzip off; ## # SSL # Global SSL in nginx.conf ## # ssl on; ssl_certificate /etc/letsencrypt/live/host.domain/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/host.domain/privkey.pem; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always; access_log /var/log/nginx/host.log combined; # maintain the .well-known directory alias for letsencrypt & renewals location /.well-known { auth_basic off; alias /var/www/html/.well-known; } auth_basic "user"; auth_basic_user_file /etc/nginx/htpasswd; location / { add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://hostintern.domain.de:9000/; proxy_read_timeout 90; } }
Michael
Einen Kommentar schreiben:
-
OK, Danke für die Info!Zitat von yachti Beitrag anzeigenIch habe da nichts ausgefüllt
Onkelandy Was muss ich in dem Image genau an den nginx Dateien ändern um das Alexaplugin zu benutzen?
Am besten ersteinmal mit basic auth. Oder ist das mit den Zertifikaten schon angelegt?
Es schein jetzt, bei mir, nur noch daran zu liegen.
Im Webif wird die eine Lampe angezeigt und in der Alexa App konnte ich den selbst erstellten Skill verbinden und aktivieren.
Die Verbindung der beiden (Alexa/shng) scheint aber noch nicht zu klappen.
Alexa findet keine Geräte.
Grüße, Marc
Einen Kommentar schreiben:
-
Ich habe da nichts ausgefülltZitat von schuma Beitrag anzeigenHabt Ihr in Eurem Amazon development Account dieausgefüllt?
Einen Kommentar schreiben:
-
Noch eine kurze Frage....
Habt Ihr in Eurem Amazon development Account die
ausgefüllt? Oder ist das für unseren Zweck nicht nötig?
Einen Kommentar schreiben:
-
Hallo AndreK
ich habe soeben in der Datei device.py die Zeile 127 wie folgt geändert und es kommt nun keine Fehlermeldung.
ALT:
NEU:Code:proto.addEntry('WARNING',msg)
PS: Das Problem mit der Beschreibung ist nun auch behoben.Code:proto.addEntry('WARNING',"Alexa-Device {}: empty description, fallback to name '{}' - please set `alexa_description`".format(self.id, self.name))
Gruß Salf
Einen Kommentar schreiben:
-
Hallo @AndreK,
Danke für die Hilfe. Es lag doch an mir. Vergesse immer ein paar Schritte auf der Synology NAS.
Mein Fehler war, dass ich das Plugin in meinen separaten Smarthome Ordner gelegt hatte, aber vergessen habe die dem Docker Image zu mappen. Dadurch hatte ich nur die Standard alexa4p3 aus dem Master von SHNG v1.6.
Habe aber durch deine Hilfe ein paar Tricks gelernt, wo ich nachschauen kann.
Jetzt kommt aber eine neue Fehlermeldung.
Gruß SalfCode:2020-01-16 21:44:45 ERROR alexa4p3 Plugin 'alexa4p3' exception in run() method: local variable 'msg' referenced before assignment Traceback (most recent call last): File "/usr/local/smarthome/lib/plugin.py", line 674, in run self.plugin.run() File "/usr/local/smarthome/plugins/alexa4p3/__init__.py", line 102, in run self.validate_devices() File "/usr/local/smarthome/plugins/alexa4p3/__init__.py", line 316, in validate_devices if not device.validate(self.logger, self._proto): File "/usr/local/smarthome/plugins/alexa4p3/device.py", line 127, in validate proto.addEntry('WARNING',msg) UnboundLocalError: local variable 'msg' referenced before assignment
Einen Kommentar schreiben:
-
Hallo Salf ,
ja die die fehlenden Actions sind dort drin, irgendwas ging bei Deinem Upate schief - meine Vermutung.
Kannst ja mal die Dateien durch suchen :
Sollte liefern :Code:cat /usr/local/smarthome/plugins/alexa4p3/p3_action.py | grep SetRangeValue
Falls nicht fehlt hier noch etwasCode:@alexa('SetRangeValue', 'SetRangeValue', 'rangeValue','Alexa.RangeController',[],"3") def SetRangeValue(self, directive): self.logger.info("Alexa P3: SetRangeValue({}, {:.1f})".format(item.id(), item_new))
Gruss Andre
Einen Kommentar schreiben:
-
Da hast Du recht. Mache ich dann!
Aber erstmal muss das laufen....
Grüße, Marc
Einen Kommentar schreiben:
-
Hi schuma
wenn schon mal wieder einer durch die aktuelle "Hell of Amazon" geht - mit all den Oberflächenänderungen - wäre es schön nicht nur eine Diff-Doku
(was alles nicht mehr passt) zu erstellen sondern eine "komplette" Doku. Zieh das mal in Betracht, würde sicherlich allen helfen. (Ein paar Screen-Shots mit bunten frames und Hinweisen helfen da schon viel :-) ). Wo die Doku dann gehostet wird können wir dann immer noch festlegen.
Da bei Amazon die Seiten sehr schnell umgestellt werden ist es fast aussichtslos hier immer aktuell zu bleiben - aber, das System lebt !
Gruss Andre
Einen Kommentar schreiben:
-
Hi AndreK
danke für deine Mühen.
V3 und Warnings passt soweit.
Hier der Debug. Da fehlen anscheinend einige. Sind die in der Master (https://github.com/Andrek01/Alexa4PayloadV3) schon drin?
Und zu deiner Frage mit der Beschreibung in der Alexa App. Ich habe es raus genommen, da ich dachte das es erledigt ist. Ist es aber doch nicht. Bei all meinen Geräten seht unter Beschreibung (wie in deinem Screenshot) nur "SmartHomeNG".Code:2020-01-16 20:42:16 DEBUG Main Alexa: initializing action turnOn 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action turnOff 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action setTargetTemperature 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action incrementTargetTemperature 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action decrementTargetTemperature 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action setPercentage 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action incrementPercentage 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action decrementPercentage 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action getLockState 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action setLockState 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action SetThermostatMode 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action AdjustTargetTemperature 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action SetTargetTemperature 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action TurnOn 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action TurnOff 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action Lock 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action Unlock 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action AdjustBrightness 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action SetBrightness 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action AdjustPercentage 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action SetPercentage 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action AdjustPowerLevel 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action SetPowerLevel 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action Activate 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action Play 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action Stop 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action InitializeCameraStreams 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action AcceptGrant 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action SetColor 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action ReportTemperature 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action ReportLockState 2020-01-16 20:42:16 DEBUG Main Alexa: initializing action ReportContactState
Zuletzt geändert von Salf; 16.01.2020, 21:07.
Einen Kommentar schreiben:
-
Ich habe das jetzt durch und jetzt sieht es wirklich besser aus....Zitat von psilo Beitrag anzeigenDie neue version des plugins hat eine recht ausführliche Anleitung dabei.
https://github.com/smarthomeNG/plugi...d%20Lambda.pdf
https://github.com/smarthomeNG/plugi...%202019-01.pdf
Sonst auch mein artikel im blog https://www.smarthomeng.de/aws-fuer-...gin-einrichten
Ich habe allerdings alle drei Dateien gebraucht um da durchzukommen. Die wiedersprechen sich teilweise. Wenn ich mit allem durch bin, mache ich alles noch mal und schreibe dann mit was nicht gepasst hat. Was mir so auf Anhieb einfällt: Bei SMARTHOME_HOST darf wohl kein HTTP:// stehen.
Morgen aktiviere ich dann mal das Plugin...
Danke, Marc
Einen Kommentar schreiben:
-
Hallo Salf ,
ich kann Deinen Fehler im Moment nicht nachvollziehen ? Das mit den "falschen" Descriptions hast Du aus Deinem Post entfernt, oder war ich hier total daneben ?
Passen die Descriptions ?
Sollte so wie im Screenshot aussehen.
Kannst Du ein logging für das Plugin in der logging.yaml einrichten. Es sollte beim Start von shNG im Debug-Level des Logs eine Meldung für alle "actions" die registriert werden erscheinen.
Sieht dann so aus :
Dann sind auf jeden Fall alle "actions" vorhanden.Code:2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action turnOn 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action turnOff 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action setTargetTemperature 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action incrementTargetTemperature 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action decrementTargetTemperature 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action setPercentage 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action incrementPercentage 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action decrementPercentage 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action getLockState 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action setLockState 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action SetColorTemperature 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action IncreaseColorTemperature 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action DecreaseColorTemperature 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action AdjustRangeValue 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action SetRangeValue 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action SetThermostatMode 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action AdjustTargetTemperature 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action SetTargetTemperature 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action TurnOn 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action TurnOff 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action Lock 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action Unlock 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action AdjustBrightness 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action SetBrightness 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action AdjustPercentage 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action SetPercentage 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action AdjustPowerLevel 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action SetPowerLevel 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action Activate 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action Play 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action Stop 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action FastForward 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action Next 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action Pause 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action Previous 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action Rewind 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action StartOver 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action InitializeCameraStreams 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action AcceptGrant 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action SetColor 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action ReportTemperature 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action ReportLockState 2020-01-16 20:22:05 DEBUG plugins.alexa4p3 Alexa: initializing action ReportContactState
Am besten nochmal beim Start das smarthome-warnings.log prüfen ob hier ein Fehler geschmissen wird.
Was sagt Dein Web-IF - alle Items auf Payload V3 umgestellt ?
Hast Du den Skill in der Amazon-Cloud auf V3 umgestellt ?
Ich weiß - ein Haufen fragen - aber irgendwie möchte ich das Problem eingrenzen
Alexa.jpgAngehängte Dateien
Einen Kommentar schreiben:
-
Die neue version des plugins hat eine recht ausführliche Anleitung dabei.
https://github.com/smarthomeNG/plugi...d%20Lambda.pdf
https://github.com/smarthomeNG/plugi...%202019-01.pdf
Sonst auch mein artikel im blog https://www.smarthomeng.de/aws-fuer-...gin-einrichtenZuletzt geändert von psilo; 16.01.2020, 19:02.
Einen Kommentar schreiben:
-
Ich habe mal eine kurze Frage:
Gibt es irgendwo eine Anleitung wo ich sehen kann, was ich alles machen muss um dieses Plugin zu benutzen?
Also so von A-Z.
Ich habe mir schon die Readme zu dem Alexa Plugin durchgelesen und auch schon- Five Steps Before Developing a Smart Home Skill
- 5 Steps to Seamlessly Link Your Alexa Skill with Login with Amazon
Muss ich jetzt beides erst durcharbeiten? Das sieht heute auch alles etwas anders auf den Amazon Seiten aus...
Kurz gesagt, ich komme da echt nicht weiter.
Hat da jemand evtl. eine kurze oder auch ausführliche Anleitung parat?
Grüße, Marc
Einen Kommentar schreiben:


Einen Kommentar schreiben: