[37_echodevice] Amazon Echo Modul (nicht Alexa)

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

Vorheriges Thema - Nächstes Thema

michael.winkler

Zitat von: KölnSolar am 13 Januar 2018, 12:45:49
Das muss ich revidieren. Ich sehe zwar die neuen tracks in der App, aber in der Cloud sind sie nicht.  :'(

Mikrofon stumm schalten wäre noch ein interessantes feature.
Soweit ich weiß ist das nicht möglich. Alles was du über http://alesa.amazon.de machen kannst würde auch in FHEM gehen.

Gruß
Michael

Nils

Hallo Michael,

ich bin heute auch auf deine Version vom Modul umgestiegen vielen Dank für die Weiterentwicklung. Hier noch was für die ToDo bzw. Wunschliste:

  • Unsterstützung für den Echo Show

Aus get devices:
G000MWXXXXXXXXXE KNIGHT A1NL4BVLQ4L3N3 Wohnzimmer

Der Echo Show wird momentan noch nicht per autocreate angelegt. Das händische Anlegen hat mich auch etwas Zeit gekostet, da die Hilfe zum echodevice nicht stimmt. Laut Hilfe sollte das Anlegen mit:

define <name> echodevice <DeviceID> [DeviceType]

erfolgen, dann landet aber die device-id im Internal model

richtig scheint zu sein: define <name> echodevice <DeviceType> [DeviceID]

VG
Nils

TomLee

Weil man das stoppen eines abgelaufenen Timer über die App machen kann, fragte ich ob du das einbauen könntest.

Und eine Frage hätte ich zu den Logeinträgen, das sieht bei mir so aus:

18.01.13 11:58:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515841126
2018.01.13 11:59:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515841162
2018.01.13 11:59:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515841162
2018.01.13 11:59:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515841194
2018.01.13 11:59:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515841194
2018.01.13 11:59:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515841194
2018.01.13 11:59:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515841194
2018.01.13 11:59:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 11:59:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 11:59:55 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:03:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515841426
2018.01.13 12:08:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515841726
2018.01.13 12:09:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515841762
2018.01.13 12:09:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515841762
2018.01.13 12:09:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515841794
2018.01.13 12:09:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515841794
2018.01.13 12:09:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515841794
2018.01.13 12:09:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515841794
2018.01.13 12:09:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:09:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:09:55 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:13:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842026
2018.01.13 12:18:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842326
2018.01.13 12:19:03 1: No Logdevice FileLog_CUL_TX_29
2018.01.13 12:19:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515842362
2018.01.13 12:19:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515842362
2018.01.13 12:19:22 3: Getting state URL https://layla.amazon.de/api/media/state?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515842362
2018.01.13 12:19:22 3: Getting bluetooth URL https://layla.amazon.de/api/bluetooth?cached=true&_=1515842362
2018.01.13 12:19:22 3: Getting settings URL https://layla.amazon.de/api/wake-word?_=1515842362
2018.01.13 12:19:22 3: Getting dnd URL https://layla.amazon.de/api/dnd/device-status-list?_=1515842362
2018.01.13 12:19:22 3: Getting alarm volume URL https://layla.amazon.de/api/device-notification-state/A3S5BH2xxxxxx/597465220/SERIAL?_=1515842362
2018.01.13 12:19:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842394
2018.01.13 12:19:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515842394
2018.01.13 12:19:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515842394
2018.01.13 12:19:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515842394
2018.01.13 12:19:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:19:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:19:55 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:23:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842626
2018.01.13 12:28:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842926
2018.01.13 12:29:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515842962
2018.01.13 12:29:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515842962
2018.01.13 12:29:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842994
2018.01.13 12:29:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515842994
2018.01.13 12:29:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515842994
2018.01.13 12:29:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515842994
2018.01.13 12:29:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:29:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:29:55 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:33:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515843226
2018.01.13 12:38:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515843526
2018.01.13 12:39:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515843562
2018.01.13 12:39:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515843562
2018.01.13 12:39:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515843594
2018.01.13 12:39:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515843594
2018.01.13 12:39:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515843594
2018.01.13 12:39:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515843594
2018.01.13 12:39:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:39:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:39:55 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:43:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515843826
2018.01.13 12:48:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515844126
2018.01.13 12:49:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515844162
2018.01.13 12:49:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515844162
2018.01.13 12:49:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515844194
2018.01.13 12:49:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515844194
2018.01.13 12:49:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515844194
2018.01.13 12:49:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515844194
2018.01.13 12:49:56 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:49:56 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:49:56 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:53:16 3: Getting state URL https://layla.amazon.de/api/media/state?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515844396
2018.01.13 12:53:16 3: Getting bluetooth URL https://layla.amazon.de/api/bluetooth?cached=true&_=1515844396
2018.01.13 12:53:16 3: Getting settings URL https://layla.amazon.de/api/wake-word?_=1515844396
2018.01.13 12:53:16 3: Getting dnd URL https://layla.amazon.de/api/dnd/device-status-list?_=1515844396
2018.01.13 12:53:16 3: Getting alarm volume URL https://layla.amazon.de/api/device-notification-state/A3S5BH2xxxxxx/597465220/SERIAL?_=1515844396
2018.01.13 12:53:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515844426
2018.01.13 12:58:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515844726
2018.01.13 12:59:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515844762
2018.01.13 12:59:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515844762
2018.01.13 12:59:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515844794
2018.01.13 12:59:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515844794
2018.01.13 12:59:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515844794
2018.01.13 12:59:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515844794
2018.01.13 12:59:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:59:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:59:55 1: Echo: notify 1516336200000 ALARM


Muss das alles geloggt werden ändert sich da was in Zukunft ? Stell ich da zur Zeit einfach auf verbose 0?

michael.winkler

#33
Zitat von: Nils am 13 Januar 2018, 13:09:17
Hallo Michael,

ich bin heute auch auf deine Version vom Modul umgestiegen vielen Dank für die Weiterentwicklung. Hier noch was für die ToDo bzw. Wunschliste:

  • Unsterstützung für den Echo Show

Aus get devices:
G000MWXXXXXXXXXE KNIGHT A1NL4BVLQ4L3N3 Wohnzimmer

Der Echo Show wird momentan noch nicht per autocreate angelegt. Das händische Anlegen hat mich auch etwas Zeit gekostet, da die Hilfe zum echodevice nicht stimmt. Laut Hilfe sollte das Anlegen mit:

define <name> echodevice <DeviceID> [DeviceType]

erfolgen, dann landet aber die device-id im Internal model

richtig scheint zu sein: define <name> echodevice <DeviceType> [DeviceID]

VG
Nils
Hallo Nils,

danke für die Hinweise. Habe mir Deine Themen notiert. Leider habe ich noch keinen Echo Show. Wäre natürlich hilfreich wenn Ihr eure Amazon Einkäufe über meine Webseite macht https://mwinkler.jimdo.com dann könnte Ich mir für das Modul einen Echo Show zulegen und hier weitere Features integrieren.

Puh so ein Echo Show kostet über 200€, ganz schön viel Geld für ein bisschen Modulentwicklung  :(

Gruß
Michael

michael.winkler

Zitat von: TomLee am 13 Januar 2018, 13:16:18
Weil man das stoppen eines abgelaufenen Timer über die App machen kann, fragte ich ob du das einbauen könntest.

Und eine Frage hätte ich zu den Logeinträgen, das sieht bei mir so aus:

18.01.13 11:58:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515841126
2018.01.13 11:59:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515841162
2018.01.13 11:59:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515841162
2018.01.13 11:59:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515841194
2018.01.13 11:59:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515841194
2018.01.13 11:59:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515841194
2018.01.13 11:59:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515841194
2018.01.13 11:59:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 11:59:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 11:59:55 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:03:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515841426
2018.01.13 12:08:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515841726
2018.01.13 12:09:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515841762
2018.01.13 12:09:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515841762
2018.01.13 12:09:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515841794
2018.01.13 12:09:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515841794
2018.01.13 12:09:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515841794
2018.01.13 12:09:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515841794
2018.01.13 12:09:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:09:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:09:55 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:13:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842026
2018.01.13 12:18:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842326
2018.01.13 12:19:03 1: No Logdevice FileLog_CUL_TX_29
2018.01.13 12:19:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515842362
2018.01.13 12:19:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515842362
2018.01.13 12:19:22 3: Getting state URL https://layla.amazon.de/api/media/state?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515842362
2018.01.13 12:19:22 3: Getting bluetooth URL https://layla.amazon.de/api/bluetooth?cached=true&_=1515842362
2018.01.13 12:19:22 3: Getting settings URL https://layla.amazon.de/api/wake-word?_=1515842362
2018.01.13 12:19:22 3: Getting dnd URL https://layla.amazon.de/api/dnd/device-status-list?_=1515842362
2018.01.13 12:19:22 3: Getting alarm volume URL https://layla.amazon.de/api/device-notification-state/A3S5BH2xxxxxx/597465220/SERIAL?_=1515842362
2018.01.13 12:19:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842394
2018.01.13 12:19:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515842394
2018.01.13 12:19:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515842394
2018.01.13 12:19:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515842394
2018.01.13 12:19:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:19:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:19:55 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:23:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842626
2018.01.13 12:28:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842926
2018.01.13 12:29:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515842962
2018.01.13 12:29:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515842962
2018.01.13 12:29:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515842994
2018.01.13 12:29:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515842994
2018.01.13 12:29:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515842994
2018.01.13 12:29:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515842994
2018.01.13 12:29:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:29:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:29:55 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:33:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515843226
2018.01.13 12:38:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515843526
2018.01.13 12:39:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515843562
2018.01.13 12:39:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515843562
2018.01.13 12:39:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515843594
2018.01.13 12:39:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515843594
2018.01.13 12:39:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515843594
2018.01.13 12:39:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515843594
2018.01.13 12:39:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:39:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:39:55 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:43:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515843826
2018.01.13 12:48:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515844126
2018.01.13 12:49:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515844162
2018.01.13 12:49:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515844162
2018.01.13 12:49:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515844194
2018.01.13 12:49:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515844194
2018.01.13 12:49:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515844194
2018.01.13 12:49:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515844194
2018.01.13 12:49:56 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:49:56 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:49:56 1: Echo: notify 1516336200000 ALARM
2018.01.13 12:53:16 3: Getting state URL https://layla.amazon.de/api/media/state?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515844396
2018.01.13 12:53:16 3: Getting bluetooth URL https://layla.amazon.de/api/bluetooth?cached=true&_=1515844396
2018.01.13 12:53:16 3: Getting settings URL https://layla.amazon.de/api/wake-word?_=1515844396
2018.01.13 12:53:16 3: Getting dnd URL https://layla.amazon.de/api/dnd/device-status-list?_=1515844396
2018.01.13 12:53:16 3: Getting alarm volume URL https://layla.amazon.de/api/device-notification-state/A3S5BH2xxxxxx/597465220/SERIAL?_=1515844396
2018.01.13 12:53:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515844426
2018.01.13 12:58:46 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515844726
2018.01.13 12:59:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515844762
2018.01.13 12:59:22 3: Getting player URL https://layla.amazon.de/api/np/player?deviceSerialNumber=SERIAL&deviceType=A3S5BH2xxxxxx&screenWidth=1392&_=1515844762
2018.01.13 12:59:54 3: Getting history URL https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1515844794
2018.01.13 12:59:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1515844794
2018.01.13 12:59:54 3: Getting list URL https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1515844794
2018.01.13 12:59:54 3: Getting notifications nonblocking https://layla.amazon.de/api/notifications?cached=true&_=1515844794
2018.01.13 12:59:55 1: Echo: notify 1516163400000 ALARM
2018.01.13 12:59:55 1: Echo: notify 1516249800000 ALARM
2018.01.13 12:59:55 1: Echo: notify 1516336200000 ALARM


Muss das alles geloggt werden ändert sich da was in Zukunft ? Stell ich da zur Zeit einfach auf verbose 0?

Habe mir Deine Anforderung notiert. Die Logeinträge stehen auch schon auf meiner ToDo Liste, sollten demnächst nicht mehr erscheinen.

Mathea

Hallo, erst einmal vielen Dank für die Arbeit an dem Modul.

Ich habe allerdings ein Problem beim Setzen der Lautstärke meiner Echos. Direkt nachdem ich einen set volume Befehl absetze springt der Device State auf "timeout" und die Lautstärke wird nicht gesetzt. Sobald man dann per "get" den aktuellen Status abfragt geht es wieder auf "connected" und das ursprüngliche Volume Level wird angezeigt.
Komischerweise kann ich andere Befehle, wie z.B. "dnd" ohne Probleme setzen.

Hier dazu der Auszug aus dem Logfile mit verbose 5:

2018.01.13 16:21:05 3: Setting URL https://layla.amazon.de/api/np/command?deviceSerialNumber=SERIAL&deviceType=A3S5BH2HU6VAYF
{"type":"VolumeLevelCommand","contentFocusClientId":null,"volumeLevel":100}
2018.01.13 16:21:06 5: WZ_Echo_Dot: '{"message":"No routes found","userFacingMessage":null}'

2018.01.13 16:21:06 2: WZ_Echo_Dot: No routes found


Was könnte hier das Problem sein?

Gruß,
Martin

fischit

Hi Michael,

mit der Art von "reminder_normal" Implementierung kann ich gut leben.

Derzeit wird leider die Erinnerung bei "reminder_normal" abgeschnitten.
Alexa sagt immer nur das letzte Wort der Erinnerung an.

Grüße
Nils

KernSani

Zitat von: fischit am 13 Januar 2018, 16:38:34
Derzeit wird leider die Erinnerung bei "reminder_normal" abgeschnitten.
Ich habe bei mir festgestellt, dass das erste Wort bei der Ansage abgeschnitten wird, in der App wird es aber korrekt angezeigt, daher vermute ich eher die API auf Amazon-Seite ist schuld...
RasPi: RFXTRX, HM, zigbee2mqtt, mySensors, JeeLink, miLight, squeezbox, Alexa, Siri, ...

KernSani

Falls es jemanden interessiert, ich habe eine kleine Sub gebastelt, die es mir erleichtert flexibel reminder zu setzen.

Im einfachsten Fall wäre das sowas:
{echo_setMsg("text=test|echo=EG_Kueche_echo

es geht aber auch wesentlich komplexer (siehe Doku im Code).


#------------------------------------------------------------
# Set a reminder
# Parameters:
# text: mandatory
# echo: comma-separated list of echodevices (mandatory)
# date: YYYY-MM-DD (optional)
# repeat: [1-10] (optional)
#   time: HH-MM (optional)
#   delay: seconds (optional)
# Examples:
# {echo_setMsg("text=test|echo=EG_Kueche_echo")}
# {echo_setMsg("text=test|echo=EG_Kueche_echo,EG_AZi_echo|time=12:00|delay=3600")}
# {echo_setMsg("text=test|echo=EG_Kueche_echo,EG_AZi_echo|repeat=1|delay=3600")}
#------------------------------------------------------------

sub echo_setMsg($) {
my ($string) = @_;
my @devs;
my $cmd;
my $timestamp = 0;
my $time;

Log3 undef, 5, $string;   

#Split the input string
my %params = map{split /\=/, $_}(split /\|/, $string);
Log3 undef, 5, Dumper(%params);

#text
$params{"text"} //= "";
if ($params{"text"} eq "") {
Log3 undef, 1, "[echo_setMsg]: Parameter 'text' is mandatory!";
return undef;
}

#get echodevices
$params{"echo"} //= "";
if ($params{"echo"} eq "") {
Log3 undef, 1, "[echo_setMsg]: Parameter 'echo' is mandatory!";
return undef;
}
else {
@devs = split /,/, $params{"echo"};
}

# date
$params{"date"} //= strftime '%Y-%m-%d', localtime;

# repeat
$params{"repeat"} //= "";
if ($params{"repeat"} eq "") {
$cmd = "reminder_normal";
}
else {
if ($params{"repeat"} < 1 or $params{"repeat"} > 10) {
Log3 undef, 1, "[echo_setMsg]: If set, parameter 'repeat' must be between 1 and 10!";
return undef;
}
else {
$cmd = "reminder_repeat";
$params{"date"} = ""
}
}
# time
$params{"time"} //= "";
if ($params{"time"} ne "") {
$timestamp = time_str2num($params{"date"}." ".$params{"time"});
}

# delay
$params{"delay"} //= "";
if ($params{"delay"} =~ /^[0-9,.E]+$/ ) {
if ($timestamp == 0) {
$timestamp = time;
}
$timestamp += $params{"delay"};
}
if ($timestamp != 0) {
$time = strftime '%H:%M', localtime($timestamp);
}

foreach my $dev (@devs) {
Log3 undef, 3, "[echo_setMsg]set $dev $cmd $params{'date'} $time $params{'repeat'} $params{'text'}";
fhem ("set $dev $cmd $params{'date'} $time $params{'repeat'} $params{'text'}");
}
return undef;

}



Ich glaube nicht, dass ich alle möglichen Kombinationen getestet habe, bei Bugs bin ich für einen Hinweis dankbar.

Grüße,

Oli
RasPi: RFXTRX, HM, zigbee2mqtt, mySensors, JeeLink, miLight, squeezbox, Alexa, Siri, ...

KernSani

und weil ich gerade dabei bin: noch ein Feauture request: Ich würde gerne SHOPPING_LISTs löschen können. Alexa unterstützt das nicht, aber die App kann Shopping List Einträge löschen... Ich hab die API noch nicht ganz kapiert, falls mir das noch gelingt bekommst du vielleicht einen patch...
RasPi: RFXTRX, HM, zigbee2mqtt, mySensors, JeeLink, miLight, squeezbox, Alexa, Siri, ...

michael.winkler

Zitat von: KernSani am 14 Januar 2018, 01:36:55
und weil ich gerade dabei bin: noch ein Feauture request: Ich würde gerne SHOPPING_LISTs löschen können. Alexa unterstützt das nicht, aber die App kann Shopping List Einträge löschen... Ich hab die API noch nicht ganz kapiert, falls mir das noch gelingt bekommst du vielleicht einen patch...
spar Dir das mit dem Patch lieber. Ich bin gerade dabei das Modul komplett umzubauen.

Den Fehler mit dem abgeschnittenen Reminder habe ich schon gepatcht

Markus M.

Zitat von: michael.winkler am 13 Januar 2018, 13:36:37Puh so ein Echo Show kostet über 200€, ganz schön viel Geld für ein bisschen Modulentwicklung  :(
Hab noch nen nagelneuen hier, der marktübliche Preis scheint gerade um die 150 zu liegen.
Wenn du mir 140 dafür gibst, spendier ich den Versand :)
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

jojo61

Hallo

wenn wir schon beim wünschen sind dann wünsche ich mir eine Funktion zum löschen der Sprachaufzeichnungen.  Das ist zwar im normalen Amazonaccount über Geräte  mit ein paar clicks erledigt wäre aber super wenn ich die Nachts automatisch löschen könnte.
Da ich die App nicht nutze kann ich nicht sagen ob es da geht.

mfg
Jojo61

michael.winkler

Zitat von: jojo61 am 14 Januar 2018, 11:23:50
Hallo

wenn wir schon beim wünschen sind dann wünsche ich mir eine Funktion zum löschen der Sprachaufzeichnungen.  Das ist zwar im normalen Amazonaccount über Geräte  mit ein paar clicks erledigt wäre aber super wenn ich die Nachts automatisch löschen könnte.
Da ich die App nicht nutze kann ich nicht sagen ob es da geht.

mfg
Jojo61
Ist notiert, kann aber noch nichts versprechen

ToKa

Hallo Michael,

auch mit der neusten Version kommt es nach einem Neustart von fhem noch zu dieser Fehlermeldung im Log:
2018.01.14 11:55:02 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/37_echodevice.pm line 929.
2018.01.14 11:55:02 2: E1_wz_AV_EchoDot: Unknown Operation


Beste Grüße
Torsten
RaspberryPi3 mit RaZberry2 und Conbee II
Fibaro: FGWPE/F-101 Switch & FIBARO System FGWPE/F Wall Plug Gen5, FGSD002 Smoke Sensor
EUROtronic: SPIRIT Wall Radiator Thermostat Valve Control
Shelly2.5 Rollladenaktoren
Zipato Bulb 2, Osram und InnrLight