[37_echodevice] Amazon Echo Modul (nicht Alexa)

Begonnen von michael.winkler, 12 Januar 2018, 18:20:12

Vorheriges Thema - Nächstes Thema

michael.winkler

Auf Seite 1 gibt es wieder ein aktualisiertes Modul.

Das erste Reading ist auch schon in der Doku
https://mwinkler.jimdo.com/smarthome/eigene-module/echodevice/#Readings

Gute Nacht & Gruß
Michael


# 2018-01-14, v0.0.6
#
# v0.0.6
# - CHANGE : Log Einträge reduziert
#            Reading "voice" zum Echo Device verschoben
# - BUGFIX:  set reminder_normal Text (Reminder sofort ausgeführt))
#            ACCOUNT DEVICE macht jetzt die abfragen für wakeword, volume_alarm, dnd, active, bluetooth
#            Standard Interval 60 Sekunden

TomLee

Jetzt geht gar nichts mehr:

2018.01.15 01:10:22 1: reload: Error:Modul 37_echodevice deactivated:
Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 1997.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 1997.

2018.01.15 01:10:22 0: Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 1997.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 1997.

2018.01.15 01:10:22 1: reload: Error:Modul 37_echodevice deactivated:
Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 1999.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 1999.

2018.01.15 01:10:22 0: Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 1999.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 1999.

2018.01.15 01:10:22 1: reload: Error:Modul 37_echodevice deactivated:
Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 2002.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 2002.

2018.01.15 01:10:22 0: Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 2002.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 2002.

2018.01.15 01:10:22 1: reload: Error:Modul 37_echodevice deactivated:
Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 2005.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 2005.

2018.01.15 01:10:22 0: Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 2005.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 2005.

2018.01.15 01:10:22 1: Including ./log/fhem.save
2018.01.15 01:10:26 3: No I/O device found for Mi_Wecklicht
2018.01.15 01:10:26 3: No I/O device found for InfoLED
2018.01.15 01:10:26 1: configfile: Cannot load module echodevice
Cannot load module echodevice
Cannot load module echodevice
Cannot load module echodevice

michael.winkler

Zitat von: TomLee am 15 Januar 2018, 01:24:03
Jetzt geht gar nichts mehr:

2018.01.15 01:10:22 1: reload: Error:Modul 37_echodevice deactivated:
Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 1997.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 1997.

2018.01.15 01:10:22 0: Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 1997.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 1997.

2018.01.15 01:10:22 1: reload: Error:Modul 37_echodevice deactivated:
Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 1999.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 1999.

2018.01.15 01:10:22 0: Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 1999.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 1999.

2018.01.15 01:10:22 1: reload: Error:Modul 37_echodevice deactivated:
Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 2002.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 2002.

2018.01.15 01:10:22 0: Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 2002.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 2002.

2018.01.15 01:10:22 1: reload: Error:Modul 37_echodevice deactivated:
Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 2005.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 2005.

2018.01.15 01:10:22 0: Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM ./FHEM/lib) at ./FHEM/37_echodevice.pm line 75, <$fh> line 2005.
BEGIN failed--compilation aborted at ./FHEM/37_echodevice.pm line 75, <$fh> line 2005.

2018.01.15 01:10:22 1: Including ./log/fhem.save
2018.01.15 01:10:26 3: No I/O device found for Mi_Wecklicht
2018.01.15 01:10:26 3: No I/O device found for InfoLED
2018.01.15 01:10:26 1: configfile: Cannot load module echodevice
Cannot load module echodevice
Cannot load module echodevice
Cannot load module echodevice


habe das Modul noch mal ersetzt. Probiere es jetzt noch mal.

TomLee

#63
Alles gut  :D

Es steht nach 'shutdown restart'  nur noch folgendes im Log :

2018.01.15 01:36:19 1: Echo: notify 1516077000000 ALARM
2018.01.15 01:36:19 1: Echo: notify 1516163400000 ALARM
2018.01.15 01:36:19 1: Echo: notify 1516249800000 ALARM
2018.01.15 01:36:19 1: Echo: notify 1516336200000 ALARM


edit:

Kurz später noch

2018.01.15 01:36:42 2: Echo: connection error dnd read from https://layla.amazon.de:443 timed out
2018.01.15 01:36:48 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/37_echodevice.pm line 731.

dk3572

Guten Morgen,
ich hatte bereits im alten Thread gefragt.
Wie löst ihr das mit 2FA?
Möchte die eigentlich ungern deaktivieren.
Danke und Gruß
Dieter

Markus M.

Zitat von: dk3572 am 15 Januar 2018, 06:08:53
Wie löst ihr das mit 2FA?
Möchte die eigentlich ungern deaktivieren.

Gar nicht.
Entweder deaktivieren oder einen zweiten Account ohne 2FA anlegen und mit dem Haushalt verbinden.
Inwiefern hier auch ein Account für Kinder funktioniert müsstest du mal testen.
FHEM dev + HomeBridge + Lenovo Flex15 + HM-CFG-USB + RFXtrx433 + Fritz!Box 7590/7580/546E

HM Aktor/Sensor/Winmatic/Keymatic/Thermostat, HUE, Netatmo Weather/Security/Heating, Xiaomi AirPurifier/Vacuum, Withings Aura/BPM/Cardio/Go/Pulse/Thermo, VSX828, Harmony, Siro ERB15LE
https://paypal.me/mm0

TomLee

Zitat von: michael.winkler am 15 Januar 2018, 00:54:59
# - BUGFIX:  set reminder_normal Text (Reminder sofort ausgeführt))

Mit der neuen Version muss man immer noch ein Dummy-Wort für die Zeit angeben, ohne wird das erste Wort der Erinnerung weiterhin abgeschnitten.

michael.winkler

#67
Zitat von: TomLee am 15 Januar 2018, 15:43:16
Mit der neuen Version muss man immer noch ein Dummy-Wort für die Zeit angeben, ohne wird das erste Wort der Erinnerung weiterhin abgeschnitten.
Kannst du mir mal schreiben wie der gesamte Befehl lautet welcher nicht funktioniert und der der dann funktioniert?

Kann es bei mir nicht nachstellen

TomLee

Erstes Wort abgeschnitten ( in der App und in der Sprachausgabe):

set <devicename> reminder_normal Denke an die Liste

Im reading reminder_normal steht:

Denke an die Liste




Korrekt in der App und Sprachausgabe:

set <devicename> reminder_normal Fakeword Denke an die Liste

Aber im reading reminder_normal steht:

Fakeword Denk an die Liste

michael.winkler

Zitat von: TomLee am 15 Januar 2018, 16:03:36
Erstes Wort abgeschnitten ( in der App und in der Sprachausgabe):

set <devicename> reminder_normal Denke an die Liste

Im reading reminder_normal steht:

Denke an die Liste

Die set Befehle sind falsche. Du solltest mindestens ein Datum angeben.

Lies mal hier https://mwinkler.jimdo.com/smarthome/eigene-module/echodevice/#Set




Korrekt in der App und Sprachausgabe:

set <devicename> reminder_normal Fakeword Denke an die Liste

Aber im reading reminder_normal steht:

Fakeword Denk an die Liste

TomLee

Sry, dann war das eine Fehlinterpretation meinerseits, ich hatte

Zitat von: michael.winkler am 15 Januar 2018, 00:54:59
# - BUGFIX:  set reminder_normal Text (Reminder sofort ausgeführt))

aus Post #60 so verstanden das der Datum-Teil nun entfallen kann.

So wäre ich erst gar nicht auf die Idee gekommen das Datum wegzulassen:

# - BUGFIX:  set reminder_normal Datum Text (Reminder sofort ausgeführt))


Warum überhaupt mit Datum, praxistauglich ist das ja auch wieder nur mit Umständen.


michael.winkler

Zitat von: TomLee am 15 Januar 2018, 16:23:30
Sry, dann war das eine Fehlinterpretation meinerseits, ich hatte

aus Post #60 so verstanden das der Datum-Teil nun entfallen kann.

So wäre ich erst gar nicht auf die Idee gekommen das Datum wegzulassen:

# - BUGFIX:  set reminder_normal Datum Text (Reminder sofort ausgeführt))


Warum überhaupt mit Datum, praxistauglich ist das ja auch wieder nur mit Umständen.
Da gebe ich dir recht! Nacht um 2 ist es mit dem Denken manchmal so  ;)

Ich baue es so um dass das Datum direkt weggelassen werden kann

TomLee

Noch was, mit bluetooth hatte ich mich noch gar nicht beschäftigt. Was mir dort aufgefallen ist das die möglichen Werte/ Geräte  beim set bluetooth_connect -Befehl bereits vorgegeben sind.

Es ist ärgerlich das Amazon das hochladen eigener Titel beendet hat, aber nutzen können wir die bereits vorhandenen ja noch und ich zumindest hoffe auf eine Alternative. Da keine anderen Werte beim set track -Befehl möglich sind als die Werte aus get tracks wäre es doch super das hier genauso wie wie beim bluetooth_connect Befehl umzusetzen. Dieser Wunsch wurde auch glaub schon mehrfach geäußert.

Was mir dabei auffällt ist das die Werte aus dem Kombinationsfeld für bluetooth_connect nur auswählbar sind. Ein klick/tipp in das Feld für ein kopieren des Wertes oder eigene Angaben ist nicht möglich. Das meine ich habe ich auch schon anders umgesetzt gesehen so das ein auswählen aus der Liste, kopieren oder das eingeben eigener Werte möglich wäre.

michael.winkler

Zitat von: TomLee am 15 Januar 2018, 17:07:48
Noch was, mit bluetooth hatte ich mich noch gar nicht beschäftigt. Was mir dort aufgefallen ist das die möglichen Werte/ Geräte  beim set bluetooth_connect -Befehl bereits vorgegeben sind.
Ja, hier wird ausgelesen welche bluetooth Geräre das jeweilige ECHO Device schon kennt.

Zitat von: TomLee am 15 Januar 2018, 17:07:48
Es ist ärgerlich das Amazon das hochladen eigener Titel beendet hat, aber nutzen können wir die bereits vorhandenen ja noch und ich zumindest hoffe auf eine Alternative. Da keine anderen Werte beim set track -Befehl möglich sind als die Werte aus get tracks wäre es doch super das hier genauso wie wie beim bluetooth_connect Befehl umzusetzen. Dieser Wunsch wurde auch glaub schon mehrfach geäußert.
Leider kann ich das nicht testen, da ich keine eigenen MP3 hochladen kann. Es macht aber auch keinen Sinn die ganzen Titel dort anzuzeigen. Hier werden auch nur max. 50 angezeigt.

Hier habe ich auch Dokumentiert wie man die TrackIds auch ohne das Modul auslesen kann. "https://mwinkler.jimdo.com/smarthome/eigene-module/echodevice/#Medieninformationen%20ermitteln"

Zitat von: TomLee am 15 Januar 2018, 17:07:48
Was mir dabei auffällt ist das die Werte aus dem Kombinationsfeld für bluetooth_connect nur auswählbar sind. Ein klick/tipp in das Feld für ein kopieren des Wertes oder eigene Angaben ist nicht möglich. Das meine ich habe ich auch schon anders umgesetzt gesehen so das ein auswählen aus der Liste, kopieren oder das eingeben eigener Werte möglich wäre.
Das ist leider nicht möglich. Du musst über die Original Webapp deine bluetooth Geräte verbinden. Erst danach werden diese in FHEM angezeigt

Nils

Zitat von: dk3572 am 15 Januar 2018, 06:08:53
Wie löst ihr das mit 2FA?
Möchte die eigentlich ungern deaktivieren.

Ich hole den Cookie per Browser (Private Mode)  und setzte ihn anschließend manuell im echodevice. Hielt bislang aber immer nur ca. eine Woche.