[37_echodevice] Amazon Echo Modul (nicht Alexa)

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

Vorheriges Thema - Nächstes Thema

ambiman

Zitat von: sinus61 am 05 Februar 2023, 22:05:29
Mit speak statt speak_ssml geht das aber.

Stimmt, damit hat es funktioniert. Ich wusste garnicht das man mit der "speak" Funktion auch ssml-formatierte Texte ausgeben kann. Wieder etwas gelernt !

Vielen Dank!

Zu Vollständigkeit, so hat es funktioniert - auch ohne Pausen:

set <device> speak <speak><audio src='soundbank://soundlibrary/alarms/beeps_and_bloops/tone_05'/>Textausgabe</speak>

fz55

Hallo Michael,

es wäre schön, wenn du ein weiteres Gerät aufnehmen würdest:

elsif($ModelNumber eq "A347N36W21919O" || $ModelNumber eq "Yamaha ATS-2090 Soundbar") {return "Yamaha ATS-2090 Soundbar";}

Die ATS-2090 ist baugleich mit YAS-209, die bereits im Modul definiert ist, hat aber eine andere ModelNumber.

Vielen Dank

Superposchi

Gibt es eigentlich einen Trick wie man neue Geräte in die Echo-Oberfläche übernimmt?
Ich muss immer einen neuen Skill aktivieren, damit Geräte gesucht werden, nach dem ich in Fhem neuen Devices einen Alexa-Namen vergeben habe und sie in den passenden Raum eingefügt habe.

Einfach nur in der App nach neuen Geräten Suchen bringt die neu hinzugefügten  Devices nicht in Echo rein.

MadMax-FHEM

#5613
Das hier ist der echodevice-Modul Thread.

Hat nichts mit Devices mit alexaName etc. zu tun...

Trotzdem eine Antwort: set AlexaDevice add Device oder set AlexaDevice reload oder set AlexaDevice restart (nach den letzten beiden dann die Suche per App oder Sprache starten: "Alexa, suche smarte Geräte")

EDIT: oder was meinst du mit "Echo Oberfläche"?

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)

Superposchi

Danke, ja meinte die App-Oberfläche.
Verwechsele die beiden Threads immer wieder.
Wenn ein Admin die Frage und die beiden Antworten entsprechend verschiiben kann, wäre ich dankbar dafür.

ambiman

Hallo zusammen,

ich nutze das Modul schon schon eine Weile, werde jedoch nach einiger Zeit 1-2 Tage(?) immer abgemeldet und der Status des Devices ändert sich auf "connected but loginerror":


2023.03.04 10:04:35.940 3: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] JSON error = no content / Generate new COOKIE! / set loginerror to 0
2023.03.04 10:04:35.940 3: [Amazon_Echo_AccountDevice] [echodevice_setState] to disconnected
2023.03.04 10:05:36.019 3: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] JSON error = no content / set loginerror to 1
2023.03.04 10:05:36.019 3: [Amazon_Echo_AccountDevice] [echodevice_setState] to connected but loginerror
2023.03.04 10:06:35.571 3: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] connected but loginerror
2023.03.04 10:06:36.022 3: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] JSON error = no content / set loginerror to 2
2023.03.04 10:07:35.578 3: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] connected but loginerror
2023.03.04 10:07:36.025 3: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] JSON error = no content / set loginerror to 3
2023.03.04 10:08:35.586 3: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] connected but loginerror
2023.03.04 10:08:35.904 3: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] JSON error = no content / set loginerror to 4
2023.03.04 10:09:35.593 3: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] connected but loginerror
2023.03.04 10:09:35.955 3: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] JSON error = no content / set loginerror to 5


Ich hatte auch mal einen verbose 4 gemacht - dann erhalte ich Folgendes:


2023.02.27 18:18:05.639 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getnotifications] START
2023.02.27 18:18:05.640 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendURL =https://layla.amazon.de/api/notifications
2023.02.27 18:18:05.640 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getnotifications] PushToCmdQueue SendData=
2023.02.27 18:18:05.642 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] [getnotifications] [228934] [0] send command=https://layla.amazon.de/api/notifications Data=
2023.02.27 18:18:05.644 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [alarmvolume] START
2023.02.27 18:18:05.645 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-notification-state?_=1677518285
2023.02.27 18:18:05.645 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [alarmvolume] PushToCmdQueue SendData=
2023.02.27 18:18:05.646 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.646 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [bluetoothstate] START
2023.02.27 18:18:05.646 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/bluetooth?cached=true&_=1677518285
2023.02.27 18:18:05.646 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [bluetoothstate] PushToCmdQueue SendData=
2023.02.27 18:18:05.646 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.647 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getdnd] START
2023.02.27 18:18:05.647 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendURL =https://layla.amazon.de/api/dnd/device-status-list?_=1677518285
2023.02.27 18:18:05.647 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getdnd] PushToCmdQueue SendData=
2023.02.27 18:18:05.647 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.648 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [wakeword] START
2023.02.27 18:18:05.648 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendURL =https://layla.amazon.de/api/wake-word?_=1677518285
2023.02.27 18:18:05.648 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [wakeword] PushToCmdQueue SendData=
2023.02.27 18:18:05.648 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.648 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [listitems_task] START
2023.02.27 18:18:05.649 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=TASK&deviceSerialNumber=&deviceType=&_=1677518285
2023.02.27 18:18:05.649 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [listitems_task] PushToCmdQueue SendData=TASK
2023.02.27 18:18:05.649 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.649 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [listitems_shopping] START
2023.02.27 18:18:05.650 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendURL =https://layla.amazon.de/api/todos?size=100&startTime=&endTime=&completed=false&type=SHOPPING_ITEM&deviceSerialNumber=&deviceType=&_=1677518285
2023.02.27 18:18:05.650 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [listitems_shopping] PushToCmdQueue SendData=SHOPPING_ITEM
2023.02.27 18:18:05.650 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.650 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getdevicesettings] START
2023.02.27 18:18:05.651 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendURL =https://layla.amazon.de/api/device-preferences
2023.02.27 18:18:05.651 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getdevicesettings] PushToCmdQueue SendData=
2023.02.27 18:18:05.651 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.651 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getisonline] START
2023.02.27 18:18:05.651 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1677518285
2023.02.27 18:18:05.652 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getisonline] PushToCmdQueue SendData=
2023.02.27 18:18:05.652 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.652 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [devicesstate] START
2023.02.27 18:18:05.652 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendURL =https://layla.amazon.de/api/devices-v2/device?cached=true&_=1677518285
2023.02.27 18:18:05.653 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [devicesstate] PushToCmdQueue SendData=
2023.02.27 18:18:05.653 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.653 4: [Amazon_Echo_AccountDevice] [echodevice_SendLoginCommand] [cookielogin6]
2023.02.27 18:18:05.656 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [activities] START
2023.02.27 18:18:05.657 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [activities] PushToCmdQueue SendURL =https://layla.amazon.de/api/activities?startTime=&size=50&offset=1&_=1677518285
2023.02.27 18:18:05.657 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [activities] PushToCmdQueue SendData=
2023.02.27 18:18:05.657 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.658 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getbehavior] START
2023.02.27 18:18:05.658 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendURL =https://layla.amazon.de/api/behaviors/v2/automations?limit=100
2023.02.27 18:18:05.658 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getbehavior] PushToCmdQueue SendData=
2023.02.27 18:18:05.658 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.659 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getsettingstraffic] START
2023.02.27 18:18:05.659 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendURL =https://layla.amazon.de/api/traffic/settings
2023.02.27 18:18:05.659 4: [Amazon_Echo_AccountDevice] [echodevice_SendCommand] [getsettingstraffic] PushToCmdQueue SendData=
2023.02.27 18:18:05.659 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] RUNNING_REQUEST=1 type=getnotifications
2023.02.27 18:18:05.660 4: [Amazon_Echo_AccountDevice] [echodevice_GetSettings] Timer INTERVAL = 60
2023.02.27 18:18:05.891 4: [Amazon_Echo_AccountDevice] [echodevice_Parse] [getnotifications] [228934]
2023.02.27 18:18:05.896 4: [Amazon_Echo_AccountDevice] [echodevice_HandleCmdQueue] [getsettingstraffic] [228947] [11] send command=https://layla.amazon.de/api/traffic/settings Data=
2023.02.27 18:18:05.898 4: [Amazon_Echo_AccountDevice] [echodevice_Parse] [getnotifications] [228934] Invalid cookie
2023.02.27 18:18:05.937 4: [Amazon_Echo_AccountDevice] [echodevice_ParseAuth] [cookielogin6]
2023.02.27 18:18:05.954 4: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] clear CMD_QUEUE
2023.02.27 18:18:05.956 3: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] JSON error = no content / set loginerror to 1
2023.02.27 18:18:05.956 3: [Amazon_Echo_AccountDevice] [echodevice_setState] to connected but loginerror
2023.02.27 18:18:06.213 4: [Amazon_Echo_AccountDevice] [echodevice_Parse] [getsettingstraffic] [228947]
2023.02.27 18:18:06.216 4: [Amazon_Echo_AccountDevice] [echodevice_Parse] [getsettingstraffic] [228947] Invalid cookie
2023.02.27 18:18:19.879 4: [Amazon_Echo_AccountDevice] [echodevice_SendLoginCommand] [cookielogin6]
2023.02.27 18:18:19.881 4: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2023.02.27 18:18:20.152 4: [Amazon_Echo_AccountDevice] [echodevice_ParseAuth] [cookielogin6]
2023.02.27 18:18:20.157 4: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] clear CMD_QUEUE
2023.02.27 18:18:20.158 3: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] JSON error = no content / set loginerror to 2
2023.02.27 18:18:20.158 3: [Amazon_Echo_AccountDevice] [echodevice_setState] to connected but loginerror
2023.02.27 18:19:19.883 3: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] connected but loginerror
2023.02.27 18:19:19.883 4: [Amazon_Echo_AccountDevice] [echodevice_SendLoginCommand] [cookielogin6]
2023.02.27 18:19:19.886 4: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2023.02.27 18:19:20.195 4: [Amazon_Echo_AccountDevice] [echodevice_ParseAuth] [cookielogin6]
2023.02.27 18:19:20.201 4: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] clear CMD_QUEUE
2023.02.27 18:19:20.201 3: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] JSON error = no content / set loginerror to 3
2023.02.27 18:20:19.888 3: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] connected but loginerror
2023.02.27 18:20:19.888 4: [Amazon_Echo_AccountDevice] [echodevice_SendLoginCommand] [cookielogin6]
2023.02.27 18:20:19.890 4: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2023.02.27 18:20:20.187 4: [Amazon_Echo_AccountDevice] [echodevice_ParseAuth] [cookielogin6]
2023.02.27 18:20:20.193 4: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] clear CMD_QUEUE
2023.02.27 18:20:20.193 3: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] JSON error = no content / set loginerror to 4
2023.02.27 18:21:19.892 3: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] connected but loginerror
2023.02.27 18:21:19.892 4: [Amazon_Echo_AccountDevice] [echodevice_SendLoginCommand] [cookielogin6]
2023.02.27 18:21:19.894 4: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2023.02.27 18:21:20.175 4: [Amazon_Echo_AccountDevice] [echodevice_ParseAuth] [cookielogin6]
2023.02.27 18:21:20.180 4: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] clear CMD_QUEUE
2023.02.27 18:21:20.181 3: [Amazon_Echo_AccountDevice] [echodevice_LostConnect] JSON error = no content / set loginerror to 5
2023.02.27 18:22:19.896 3: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] connected but loginerror
2023.02.27 18:22:19.897 4: [Amazon_Echo_AccountDevice] [echodevice_SendLoginCommand] [cookielogin6]
2023.02.27 18:22:19.899 4: [Amazon_Echo_AccountDevice] [echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.


Nach einem NPM_login new funktioniert dann wieder alles für einige Zeit.

Ich nutze für meinen Amazon Account eine 2-Faktor Authentifizierung - kann das damit zusammenhängen ?

Besten Dank und VG,

ambiman

Mathias R

Hallo Ambiman,

ich habe leider genau das gleiche Problem.

@Michael Winkler
Könnte man eventuell das NPM-Login im FHEM automatisieren und dafür Amazon Zugangsdaten und OTP-Secret im FHEM eintragen?

MfG Mathias

C0mmanda

#5617
Bei mir geht seit ein paar Tagen gar nichts mehr...
Verhalten ist so als wäre alles gut, Token vorhanden, Status connected aber nichts geht. 
NPM-login refresh und auch new klappt einwandfrei.

Wenn ich aber zB ein get devices mache kommt:
Amazon_Account is not connected. Aborting
Verbose 5 vom Amazon-Device:

[echodevice_LoginStart] [enable] set next internal timer start in 60 seconds.
2023.03.28 20:52:43 4: [Amazon_Account] [echodevice_ParseAuth] [cookielogin6]
2023.03.28 20:52:43 5: [Amazon_Account] [echodevice_ParseAuth] [cookielogin6] DATA Dumper=$VAR1 = '{"authentication":{"authenticated":true,"canAccessPrimeMusicContent":true,"customerEmail":"sascha.xxxxxxx@xxxx.de","customerId":"CUSTOMER","customerName":"Sascha Xxxx"}}';

2023.03.28 20:52:43 3: [Amazon_Account] [echodevice_setState] to connected
2023.03.28 20:52:43 4: [Amazon_Account] [echodevice_ParseAuth] JSON OK = {authentication}{authenticated}
2023.03.28 20:53:27 5: [Amazon_Account] [echodevice_GetSettings] start refresh settings
2023.03.28 20:53:27 5: [Amazon_Account] [echodevice_GetSettings] unknown state / state = State: connected | Token: vorhanden
2023.03.28 20:53:42 4: [Amazon_Account] [echodevice_SendLoginCommand] [cookielogin6]
2023.03.28 20:53:42 4: [Amazon_Account

Jemand eine Idee, oder dasselbe Problem?

Vielleicht hilft auch noch ein get-status vom Amazon-Accountdevice:

Modul Infos:

Beschreibung       Bereich       Wert
STATE       Reading    connected
Version       Reading    0.2.19
NPM Cookie Version       Reading    4.1.3
COOKIE_STATE       Reading    OK
COOKIE_TYPE       Reading    NPM_Login
COOKIE_MODE       Reading    NPM
amazon_refreshtoken       Reading    vorhanden
verbose       Attribut    2
npm_bin       Attribut    /usr/bin/npm
npm_proxy_listen_ip       Attribut    192.168.1.9
npm_bin_node       Attribut    /usr/bin/node
npm_proxy_port       Attribut    3002
event-on-change-reading       Attribut    .*
stateFormat       Attribut    State: state | Token: amazon_refreshtoken
room       Attribut    Amazon
npm_proxy_ip       Attribut    192.168.1.9
DbLogExclude       Attribut    .*
         
Amazon Cookie:

Beschreibung       Bereich       Wert
.COOKIE       Reading    {"loginCookie":"at-m....
COOKIE_STATE       Reading    OK
COOKIE_TYPE       Reading    NPM_Login
amazon_refreshtoken       Reading    vorhanden
.COOKIE       Helper    session-id=261-83578....
.COMMSID       Helper    amzn1.comms.id.perso....
.CSRF       Helper    -18....
.DIRECTID       Helper    amzn1.account.AFBZ6W....
RUNLOGIN       Helper    0
RUNNING_REQUEST       Helper    0
LOGINERROR       Helper    0
FHEM_HOME       Attribut    /opt/fhem


Edit:
Account-Device löschen
FHEM-Neustart
Account-Device neu anlegen
NPM-Login new

Jetzt geht alles wieder...

derthom

hat bei mir leider nicht geholfen


 
Login Ergebnis

Das alexa-cookie Modul wurde nicht gefunden. Bitte fuehrt am Amazon Account Device einen set "NPM_install" durch

der scheitert mit
2023.03.31 20:26:24 3: [ECHO] [echodevice_NPMLoginNew] alexa-cookie modul not found

Wir gehen davon aus, dass der lokale Systemadministrator Ihnen die
Regeln erklärt hat.  Normalerweise läuft es auf drei Regeln hinaus:

    #1) Respektieren Sie die Privatsphäre anderer.
    #2) Denken Sie nach, bevor Sie tippen.
    #3) Mit großer Macht kommt große Verantwortung.

sudo: Zum Lesen des Passworts ist ein Terminal erforderlich; verwenden Sie entweder die Option -S, um aus der Standardeingabe zu lesen oder richten Sie das Askpass-Hilfsprogramm ein
sudo: Ein Passwort ist notwendig

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)

derthom

Hallo Joachim,

ja habe ich , es lief auch schon mal Monate ohne Probleme

also Echo device in FHEM gelöscht, NPM uninstall (npm uninstall --prefix /opt/fhem/cache/alexa-cookie alexa-cookie2) - verzeichniss gelöscht - reboot

ECHO neu angelegt,

root@rpi:~# sudo npm install --prefix /opt/fhem/cache/alexa-cookie alexa-cookie2
npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

added 89 packages, and audited 90 packages in 13s

10 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

- reboot

ich bekomme im device aber kein NPM login angezeigt

VG
Thom

MadMax-FHEM

#5621
Warum installierst du als root?
Warum dann zusätzlich sudo?

Tatsächlich Anleitung gelesen?

sudo chown -R fhem:  /opt/fhem/cache/alexa-cookie

ausgeführt?

Die verlinkte Anleitung erläutert doch die Lösung für dein zuvor gepostetes Problem mit sudo aus/durch fhem...

Zuerst hattest du aus fhem heraus installiert (Option 2) und Problem mit sudo...

Dann hier die Option 1, manuell per ssh...

Wie hast du das Device definiert?
Mit dem Fake-Login?

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)

derthom

Zitat von: MadMax-FHEM am 02 April 2023, 21:01:38ich hab alles per SSH installiert

Tatsächlich Anleitung gelesen?

sudo chown -R fhem:  /opt/fhem/cache/alexa-cookie

ausgeführt? - ja auch ausgeführt

Die verlinkte Anleitung erläutert doch die Lösung für dein zuvor gepostetes Problem mit sudo aus/durch fhem...

Zuerst hattest du aus fhem heraus installiert (Option 2) und Problem mit sudo...

Dann hier die Option 1, manuell per ssh...

Wie hast du das Device definiert?
Mit dem Fake-Login? - mit Fake und auch mit korrekten login Daten

Gruß, Joachim

MadMax-FHEM

Du hast zunächst doch per fhem versucht zu installieren...

Egal.

Gibt es:
/opt/fhem/cache/alexa-cookie

Mal löschen...

Echo-Devices mal löschen.

Dann nach Anleitung und nur einen Weg (also über fhem mit dem sudo Einteag in sudoers / oder per ssh) von vorne.

Device mit Fake-Login!

Wenn es dann immer noch nicht geht: get Status vom Account Device...

Oder es ist im Thread irgendwo auch eine andere Login-Methode beschrieben...

Achja: welche HW, welches OS (inkl. Version), Versionen von nodejs/npm

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)

Ryker

Hallo,

Ich hab nun das echodevice-Modul im FHEM am laufen. Es funktioniert alles wunderbar und meine Echo-Dot, Echo-Show-5, FireTV-4k und FireTV-4k-Max wurden als Geräte erzeugt.

Ich verstehe nur das Reading "online" nicht. Laut Doku sollte das doch anzeigen, ob ein Gerät mit dem Internet verbunden ist oder nicht.
Die FireTVs hängen an einer schaltbaren Steckdose und werden bei Nichtgebrauch abgeschaltet. Aber das Reading "online" bleibt weiterhin auf true.
Auch das Reading "presence" bleibt weiterhin auf "present".

Muss ich noch irgendwo irgendwas einstellen, damit ich im FHEM sehe, ob das Gerät wirklich an oder aus ist?
Hintergrund ist. Ich wollte mir ein Notify bauen, der weitere Aktionen ausführt, wenn ich über die Steckdosenleiste die FireTV ein-/aus-schalte. Es sollte dabei das FireTV-Modul im FHEM ersetzen, weil das hohe CPU-Last auf meinem FHEM-Raspi erzeugt, wenn die Geräte aus sind.

 
Gruß
Ryker