Alexa.sh v5.11 (stable) - Sprachausgabe und Fernsteuerung für Amazon Echo

Problemlösungen und Hinweise von allgemeinem Interesse zur Haussteuerung mit HomeMatic

Moderator: Co-Administratoren

Benutzeravatar
blackhole
Beiträge: 3730
Registriert: 21.07.2015, 14:03
System: CCU
Hat sich bedankt: 184 Mal
Danksagung erhalten: 587 Mal

Re: Alexa.sh v4.84 (stable) - Sprachausgabe und Fernsteuerung für Amazon Echo

Beitrag von blackhole » 08.07.2022, 19:14

Eric104 hat geschrieben:
08.07.2022, 14:17
... und möchte gern deine Alexa Fernsteuerung installieren.

Du hast Post bekommen.

kitharo
Beiträge: 2
Registriert: 14.01.2021, 12:39
System: CCU

Re: Alexa.sh v4.84 (stable) - Sprachausgabe und Fernsteuerung für Amazon Echo

Beitrag von kitharo » 13.07.2022, 11:55

Hallo blackhole,

ich möchte auch gerne das Alexa.sh Skript. Aktuell habe ich eine CCU3 mit FW 3.61.7.

Grüße,
kitharo

Benutzeravatar
blackhole
Beiträge: 3730
Registriert: 21.07.2015, 14:03
System: CCU
Hat sich bedankt: 184 Mal
Danksagung erhalten: 587 Mal

Re: Alexa.sh v4.84 (stable) - Sprachausgabe und Fernsteuerung für Amazon Echo

Beitrag von blackhole » 13.07.2022, 12:19

kitharo hat geschrieben:
13.07.2022, 11:55
... ich möchte auch gerne das Alexa.sh Skript. Aktuell habe ich eine CCU3 mit FW 3.61.7.

Du hast Post bekommen.

howy075
Beiträge: 21
Registriert: 12.05.2013, 00:07

Re: Alexa.sh v4.84 (stable) - Sprachausgabe und Fernsteuerung für Amazon Echo

Beitrag von howy075 » 14.07.2022, 12:23

Hallo Blackhole,
Könnte ich auch bitte das script haben? Benutze Raspberrymatic.

Danke Harald
658 Kanäle in 151 Geräten und 262 CUxD-Kanäle in 31 CUxD-Geräten:
5x HM-LC-Sw1-FM, 8x HMW-IO-12-Sw7-DR, 1x HM-Sec-SD-Team, 1x HM-Sec-SD-2-Team, 3x HM-PB-4Dis-WM, 3x HM-Sec-MDIR, 1x HM-Sec-MDIR-2, 4x HM-Sen-MDIR-O, 1x HM-Sec-MDIR-3, 6x HM-Sen-MDIR-WM55, 3x CUX03, 1x HM-TC-IT-WM-W-EU, 22x CUX28, 3x HM-Sec-RHS, 4x HM-Sec-SD, 3x HM-Sec-SD-2, 5x HM-LC-Sw4-DR, 1x HM-SwI-3-FM, 1x HB-UNI-RGB-LED-CTRL, 6x HM-CC-VD, 2x HM-CC-RT-DN, 2x HM-Dis-EP-WM55, 1x HM-LC-Sw4-Ba-PCB, 13x HM-PB-2-WM55, 2x HM-PBI-4-FM, 1x HM-RC-Key3-B, 2x HM-RC-Key4-3, 1x HmIP-RCV-50, 1x CUX91, 5x HM-Sec-SCo, 3x HM-LC-RGBW-WM, 3x HM-LC-Sw1PBU-FM, 4x HM-LC-Sw2-FM, 13x HMW-LC-Bl1-DR, 4x CUX13, 1x CUX40, 1x HM-WDS30-OT2-SM-2, 3x HM-ES-PMSw1-Pl, 5x HM-LC-Bl1PBU-FM, 2x HM-LC-Ja1PBU-FM, 1x RPI-RF-MOD, 3x HM-LC-Sw4-PCB, 4x HMW-Sen-SC-12-DR, 1x HM-Sec-Key-S, 1x HM-Sen-EP, 2x HM-PB-6-WM55, 1x HM-OU-LED16, 1x HM-ES-TX-WM, 1x HM-LC-Bl1-FM, 10x HM-CC-TC, 1x HM-Sec-SC-2, 1x HM-WDS100-C6-O, 1x HmIP-FWI, 1x HM-LC-Dim1T-Pl, 1x HM-Sys-sRP-Pl

Benutzeravatar
blackhole
Beiträge: 3730
Registriert: 21.07.2015, 14:03
System: CCU
Hat sich bedankt: 184 Mal
Danksagung erhalten: 587 Mal

Re: Alexa.sh v4.84 (stable) - Sprachausgabe und Fernsteuerung für Amazon Echo

Beitrag von blackhole » 14.07.2022, 12:51

howy075 hat geschrieben:
14.07.2022, 12:23
Könnte ich auch bitte das script haben?

Jupps, Du hast Post bekommen.

Hemingway
Beiträge: 2
Registriert: 15.07.2022, 10:39
System: keine Zentrale (nur Pairing, FHEM etc.)
Hat sich bedankt: 1 Mal

Re: Alexa.sh v4.84 (stable) - Sprachausgabe und Fernsteuerung für Amazon Echo

Beitrag von Hemingway » 15.07.2022, 10:46

Hallo, gerne hätte auch ich das script mit den binaries für ARM
Zuletzt geändert von Roland M. am 15.07.2022, 10:57, insgesamt 1-mal geändert.
Grund: Doppelpost gelöscht

Benutzeravatar
blackhole
Beiträge: 3730
Registriert: 21.07.2015, 14:03
System: CCU
Hat sich bedankt: 184 Mal
Danksagung erhalten: 587 Mal

Re: Alexa.sh v4.84 (stable) - Sprachausgabe und Fernsteuerung für Amazon Echo

Beitrag von blackhole » 15.07.2022, 20:03

Hemingway hat geschrieben:
15.07.2022, 10:46
Hallo, gerne hätte auch ich das script mit den binaries für ARM

Du hast Post bekommen.

Benutzeravatar
blackhole
Beiträge: 3730
Registriert: 21.07.2015, 14:03
System: CCU
Hat sich bedankt: 184 Mal
Danksagung erhalten: 587 Mal

Re: Alexa.sh v4.84 (stable) - Sprachausgabe und Fernsteuerung für Amazon Echo

Beitrag von blackhole » 24.07.2022, 19:53

Aktualisiertes CA-Cert-Bundle verfügbar

Auf curl.se wurde diese Woche ein aktualisiertes CA-Cert-Bundle veröffentlicht.
Die Aktualisierung kann mittels der entsprechenden alexa.sh-Optionen (ab v4.63) wie folgt in der Shell durchgeführt werden:

  • Prüfen des CA-Cert-Bundles auf Aktualität:

    Code: Alles auswählen

    /usr/local/addons/alexa/alexa.sh --check-cacert
  • Update des CA-Cert-Bundles:

    Code: Alles auswählen

    /usr/local/addons/alexa/alexa.sh --update-cacert

Eric104
Beiträge: 3
Registriert: 08.07.2022, 13:55
System: CCU
Danksagung erhalten: 1 Mal

Re: Alexa.sh v4.84 (stable) - Sprachausgabe und Fernsteuerung für Amazon Echo

Beitrag von Eric104 » 26.07.2022, 21:03

Hallo blackhole,
danke für die Datei.
Leider funktioniert es nicht bei mir.
Mache scheinbar irgend einen Fehler, weis nicht wo, habe alles gelöscht und neu installiert, geht trozdem nicht.
Kanst Du mir helfen?

tar xvfz alexa-4.84.tar.gz install

Start der alexa-cookie-cli

browser http://localhost:8080/

alexa_remote_contol.conf

MFA_SECRET='Atnr|EwICIMojt8GiTT..............'

Fehleranalyse

root@homematic-raspi:~# ls -la /tmp/.alexa*
-rw-r--r-- 1 root root 134785 Jul 26 19:33 /tmp/.alexa.login

root@homematic-raspi:~# ls -la /usr/local/addons/
total 1060
drwxr-xr-x 9 root root 4096 Jul 26 18:13 .
drwxr-xr-x 8 root root 4096 Jul 26 15:17 ..
drwx------ 3 root root 4096 Jul 26 18:25 alexa
-rw------- 1 root root 1046374 Jul 10 08:43 alexa-4.84.tar.gz
drwxr-xr-x 6 root root 4096 Jul 26 15:13 cuxd
drwxrwxrwx 2 root root 4096 Jun 19 2019 echo
drwxr-xr-x 5 root root 4096 Jun 17 13:40 hm_pdetect
drwxr-xr-x 6 root root 4096 Jun 15 23:54 mediola
drwxr-xr-x 6 root root 4096 Dec 30 2020 rmupdate
drwxrwxrwx 2 root root 4096 Jun 10 08:21 tmp

root@homematic-raspi:~# ls -la /usr/local/addons/
total 1060
drwxr-xr-x 9 root root 4096 Jul 26 18:13 .
drwxr-xr-x 8 root root 4096 Jul 26 15:17 ..
drwx------ 3 root root 4096 Jul 26 18:25 alexa
-rw------- 1 root root 1046374 Jul 10 08:43 alexa-4.84.tar.gz
drwxr-xr-x 6 root root 4096 Jul 26 15:13 cuxd
drwxrwxrwx 2 root root 4096 Jun 19 2019 echo
drwxr-xr-x 5 root root 4096 Jun 17 13:40 hm_pdetect
drwxr-xr-x 6 root root 4096 Jun 15 23:54 mediola
drwxr-xr-x 6 root root 4096 Dec 30 2020 rmupdate
drwxrwxrwx 2 root root 4096 Jun 10 08:21 tmp
root@homematic-raspi:~# ls -la /usr/local/addons/alexa/
total 1664
drwx------ 3 root root 4096 Jul 26 18:25 .
drwxr-xr-x 9 root root 4096 Jul 26 18:13 ..
-rw------- 1 root root 1720 May 9 16:54 alexa.conf
-rwxr-xr-x 1 root root 16651 May 4 09:40 alexa.sh
-rw-r--r-- 1 root root 346 Jul 26 18:42 alexa_remote_contol.conf
-rw------- 1 root root 3947 Oct 8 2021 alexa_remote_control.conf
-rw-r--r-- 1 root root 54152 Jul 26 18:25 alexa_remote_control.sh
-rwxr-xr-x 1 root root 34484 May 4 09:10 base64
-rw------- 1 root root 215352 May 4 10:04 cacert.pem
-rwxr-xr-x 1 root root 923164 May 23 11:18 iconv
-rwxr-xr-x 1 root root 269108 Sep 26 2021 jq
drwx------ 2 root root 4096 Jan 31 08:06 legal
-rwxr-xr-x 1 root root 149436 Sep 26 2021 oathtool

root@homematic-raspi:~# /usr/local/addons/alexa/alexa.sh --check-cookie
cookie does not exist. logging in ...
ERROR: Amazon Login was unsuccessful. Possibly you get a captcha login screen.
Try logging in to https://alexa.amazon.de with your browser. In your browser
make sure to have all Amazon related cookies deleted and Javascript disabled!

(For more information have a look at /tmp/.alexa.login)

To avoid issues with captcha, try using Multi-Factor Authentication.
To do so, first set up Two-Step Verification on your Amazon account, then
configure this script (or the environment) with your MFA secret.
Support for Multi-Factor Authentication requires 'oathtool' to be installed.

root@homematic-raspi:~# crontab -l
*/11 * * * * [ -c /dev/rtc0 ] && /sbin/hwclock --systohc --utc
1 3,9,15,21 * * * /bin/SetInterfaceClock
0 4 * * * /usr/sbin/logrotate /etc/logrotate.conf || logger -p error -t "logrotate" "logrotate aborted with error $?"
*/1 * * * * /bin/updateDCVars.tcl >/dev/null 2>/dev/null
7 0 * * * /bin/nice /bin/cronBackup.sh >/dev/null 2>/dev/null
0 4 * * 6 [ ! -e /etc/config/NoFSTRIM ] && /bin/nice /sbin/fstrim --all --quiet >/dev/null 2>/dev/null
59 1 * * * [ ! -e /etc/config/NoBadBlocksCheck ] && /bin/nice /bin/checkBadBlocks.sh >/dev/null 2>/dev/null
*/10 * * * * [ -d /media/usb0/measurement ] && /bin/nice /usr/bin/rsync -aogX --delete-after --no-whole-file --checksum /tmp/measurement/ /media/usb0/measurement/ >/dev/null 2>/dev/null
0 12 * * * sleep $((RANDOM % 900))s && /bin/checkAddonUpdates.sh >/dev/null 2>/dev/null
0 4 * * 0 [ ! -e /etc/config/NoPortForwardingCheck ] && sleep $((RANDOM % 900))s && /bin/checkPortForwarding.sh >/dev/null 2>/dev/null

*/5 * * * * /usr/local/addons/mediola/bin/watchdog
33 * * * * /usr/local/addons/alexa/alexa.sh --check-cookie.sh > /dev/null

Benutzeravatar
blackhole
Beiträge: 3730
Registriert: 21.07.2015, 14:03
System: CCU
Hat sich bedankt: 184 Mal
Danksagung erhalten: 587 Mal

Re: Alexa.sh v4.84 (stable) - Sprachausgabe und Fernsteuerung für Amazon Echo

Beitrag von blackhole » 26.07.2022, 21:39

Eric104 hat geschrieben:
26.07.2022, 21:03

Code: Alles auswählen

MFA_SECRET='Atnr|EwICIMojt8GiTT..............'

Das ist kein MFA-Secret, sondern ein Refresh-Token und gehört somit ein paar Zeilen tiefer in die Konfigurationsdatei:

Code: Alles auswählen

REFRESH_TOKEN='Atnr|...'

Bei Verwendung des Refresh-Tokens, die anderen Auth-Varianten (E-Mail/Passwort und MFA-Secret) einfach leer lassen:

Code: Alles auswählen

EMAIL=''
PASSWORD=''

Code: Alles auswählen

MFA_SECRET=''

Antworten

Zurück zu „HomeMatic Tipps & Tricks - keine Fragen!“