Smart #1 API / Smart Home Integration

  • OK Leute, ich habe das jetzt einige Tage selbst getestet und stelle es jetzt hier zur Verfügung an alle Testwilligen. Zunächst mal die kleine Version des Widgets (small). Die größere folgt später.


    Das initiale Setup ist etwas aufwendiger, da für die Berechnung der Signatur noch externe Abhängigkeiten einmalig geladen werden müssen (hashes.js).


    Hier geht's zum Skript und der Anleitung: Github


    Tipp: Es könnte sinnvoll sein, für dieses Skript (genau wie bei ioBroker) einen eigenen User zu erstellen, der über den digitalen Schlüssel Zugriff auf das Auto bekommt.


    Für die leichtere Ersteinrichtung baue ich demnächst noch einen Siri Kurzbefehl.


    Feedback willkommen!


    ( chriscat Bienvenue! Le manuel d'installation est en anglais. ;) Je suis aussi développeur/DevOps engineer.)


    Wichtig: Falls ihr im Skript eure sensiblen Daten hinterlegt, bitte gebt es niemals weiter an Dritte!


    Disclaimer: Nutzung auf eigenes Risiko.


    smart-one-info-small.jpg

  • Hallo an alle, habe mir gerade die 16 Seiten durchgezogen ( manchmal sehr schwierig wenn man(n) nicht vom Fach ist) aber im groß und ganz verstanden dass nicht so einfach ist sowas auf die Beine zu stellen also chapeau !!! jetzt die blöde Frage , findet sich jemand der sich mit Android auskennt und so was dafür übersetzen kann damit wir Samsung und co. benutzer auch in den Genuß ein solchen Juwel kommen können?

    Noch Fahrzeug : Renault Twingo 3 Cosmic ( Ultraviolett ) Verkauft

    Nächste Fahrzeug Jetzigen Farzeug: Smart #1 ( Atom Grey-Matte ) Quantum Blue Metallic

    Andere Fahrzeug : Yamaha Tracer 900 GT ( Phantom Blu )

    Wer Fehler findet kann sie gerne behalten

  • Erstmal auch von mir ein großes Dankeschön für Deine Arbeit.

    Ich bekomme die Fehlermeldung No file to import at modules/hashes.

    Was mache ich da falsch. Ich habe alles auf. IDrive kopiert, auch schon lokal probiert, aber ohne Erfolg. Hab ich da im scriptables was vergessen?

    Die Datei kann nicht gefunden werden. Hast du das auf dem Rechner/Mac gemacht?
    Öffne mal die "Dateien" App auf dem iPhone, navigiere zu iCloud Drive → Scriptable → modules und schau, ob dort die Datei namens "hashes.js" liegt. Eventuell hat sie eine Wolke rechts daneben als Icon (mit Download-Pfeil), dann wurde sie noch nicht synchronisiert vom Rechner zum Telefon. Einfach einmal auf die Wolke drücken, dann wird die Datei geladen.

  • Ich habe es auf dem iPhone probiert. Sieht eigentlich genauso aus wie bei dir

    Nur auf den ersten Blick. Deine Datei ist 657 KB groß, während die tatsächliche nur 60 KB groß ist. Versuch sie mal auf der Github Seite über den Download Button runter zu laden.

  • Danke. it worked.


    I created "modules" folder without upper case and at first I had the same error as above. but I noticed the first letter got upper case automatically and changed it to lower case again, this time it worked.IMG_1825.jpg

    Thanks for your feedback. I realized in your screnshot that the current position of your car seems to be unavailable. As far as I know, this happens if the user didn't accept the terms and conditions checkboxes - or when the car forgot about it and logged you out (which happens occasionally for reasons unknown).
    Could you please double check if you can see the position of your car in the official Hello Smart App when logging in with the same user you used for the script?

    I will add a more pleasing output in case this happens (instead of undefined). :)

  • Neee.. das Problem mit dem Standort haben immer noch viele - ich bei meinem auch, obwohl jegliches Datenabschöpfen erlaubt ist.


    Nur wenn die Karre an ist bekomme ich in der App sicher den Standort angezeigt.

    #1 Premium in Laser Red - Eclipse Black, Smart OS v1.3.0 / 20.33.10.23423.40436 / Hello Smart App 1.4.14 / Hello # App 1.0 (44)

    Navi-SW 0.05.12.15.24.03.1a.10 Navi-DB N.J.A2.24.00.01.00 Hidden Features des Smart #1 - klick / Smart #1 FAQ-Thread -> klick

    früher: Mercedes C118 CLA 250e Coupé, Mercedes W211 E 420 CDI, BMW E38 750iA-V12, BMW E32 740iA-V8, BMW E32 730iA-V8, Opel Omega B 2.2i 16V, Opel Omega A 2.0i, BMW E23 730R6, BMW E21 320R6, Opel Manta B GT/E, BMW E10 2002tii

  • Thanks for your feedback. I realized in your screnshot that the current position of your car seems to be unavailable. As far as I know, this happens if the user didn't accept the terms and conditions checkboxes - or when the car forgot about it and logged you out.
    Could you please double check if you can see the position of your car in the official Hello Smart App when logging in with the same user you used for the script?

    I will add a more pleasing output in case this happens (instead of undefined). :)

    do you mean you can generally see the position of your cars in Germany?


    It's a big complain in France, we rarely can see the location of our smart #1. It worked well in July, the first month, then stopped one day for everyone. We see it from time to time, particularly if we are driving it.


    Next time we can see the location of the car for a few minutes I will let you know if the widget is not showing it.




    Would you be able to point me at the line to change in order to target my 2nd and 3rd car? I will try to have 2 widgets showing at the same time. one for each car.

    I'm not seeing any obvious place in your Javascript with a position.


    Edit: was obvious, I just had to use a different VIN