Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Tesla-Motors v1.0.0

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Tesla-Motors v1.0.0

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tombox @darkbrain85 last edited by

      @darkbrain85 Ist noch "absicht" muss noch nach gereicht werden

      1 Reply Last reply Reply Quote 0
      • T
        tombox @darkbrain85 last edited by

        @darkbrain85 Kannst du mal den adapter in debug setzen umzu schauen was er genaut sendet. Über die app gehen die funktionen alle?
        In der aktuellen github version wird remote ladelimit aktualisiert

        D 1 Reply Last reply Reply Quote 0
        • D
          darkbrain85 @tombox last edited by darkbrain85

          @tombox Ich erhalte im log folgendes:

          
          tesla-motors.0
          2021-10-13 07:38:06.363	info	{"response":{"reason":"invalid_value","result":false}}
          
          tesla-motors.0
          2021-10-13 07:38:05.984	debug	{}
          
          tesla-motors.0
          2021-10-13 07:38:05.984	debug	https://owner-api.teslamotors.com/api/1/vehicles/1689093781xxxxxx/command/actuate_trunk
          

          Über die App geht natürlich alles wie vorgesehen.

          T 1 Reply Last reply Reply Quote 0
          • T
            tombox @darkbrain85 last edited by

            @darkbrain85 hast du wirklich die letzte Version von GitHub installiert?

            D 1 Reply Last reply Reply Quote 0
            • D
              darkbrain85 @tombox last edited by

              @tombox Kurz vor dem Test nochmal gemacht...

              Ich lösche den Adapter mal und installiere neu.

              1 Reply Last reply Reply Quote 0
              • D
                darkbrain85 last edited by

                @tombox

                Es gibt wieder

                
                tesla-motors.0
                2021-10-13 08:00:05.652	debug	WS received:{"msg_type":"data:error","tag":"224171617237","value":"disconnected","error_type":"vehicle_disconnected"}
                
                tesla-motors.0
                2021-10-13 07:59:56.944	info	{"response":{"reason":"invalid_value","result":false}}
                
                tesla-motors.0
                2021-10-13 07:59:56.497	debug	{}
                
                tesla-motors.0
                2021-10-13 07:59:56.497	debug	https://owner-api.teslamotors.com/api/1/vehicles/1689093781xxxxxx/command/actuate_trunk
                

                Jetzt allerdings mit der Disconnect Meldung ganz oben. Woher kommt das?
                Das passiert z.B. beim öffnen der Ladeklappe auch, nur dass da die Rückmeldung positiv ist:

                
                tesla-motors.0
                2021-10-13 08:00:51.312	debug	WS received:{"msg_type":"data:error","tag":"224171617237","value":"disconnected","error_type":"vehicle_disconnected"}
                
                tesla-motors.0
                2021-10-13 08:00:50.649	info	{"response":{"reason":"","result":true}}
                
                tesla-motors.0
                2021-10-13 08:00:50.282	debug	{}
                
                tesla-motors.0
                2021-10-13 08:00:50.282	debug	https://owner-api.teslamotors.com/api/1/vehicles/1689093781xxxxxx/command/charge_port_door_open
                
                T 1 Reply Last reply Reply Quote 0
                • S
                  StefanRied @darkbrain85 last edited by

                  @darkbrain85 said in Test Tesla-Motors v1.0.0:

                  Bei dem "alten" Adapter war es so, dass die änderbaren States direkt auch beschrieben werden konnten. Nun habe ich ja einen State für den Status, einen anderen für das setzen. Z.b. beim Ladelimit ist das relativ schlecht mit einem Slider in VIS umsetzbar. Ist das Absicht, oder sehe ich den Wald vor lauter Bäumen gerade nicht?

                  Im Sinne eines Digitalen Zwillings ist das so eigentlich viel besser wie es jetzt ist. Ein Remote Command ist eigentlich ein State-Charge-Request auf dem Device, erst der Response von vehicle_data, dass die Änderung tatsächlich angekommen ist, ist der eigentliche remote-state-change und stellt sicher, dass es auch auch geändert wurde.

                  Bei einigen Dinge wie dem Ladestrom kann das ja deutlich unterschiedlich. Du kannst also 16Amp wünschen, wenn Du aber nur an einer schwachen Leitung (Schuko Steckdose) hängst bietet die EVSE (hoffentlich) nur 13 Amp an, das Auto sagt dann korrekt, dass es auf 13 geht und nicht auf 16.

                  Also bin ich dafür es nicht zu vermischen wie beim alten Adapter.
                  Denkt auch an die Autos die nicht zuhause im Wifi stehen. Bei schlechter Connectivity kann es schon sein, dass Minuten vergehen zwischen dem Change-Request und der Delivery ans Fahrzeug und dann der Response. Wenn Du die States direkt überschreiben würdest, wäre das ganze Battery&Lade Logging nicht mehr korrekt.

                  1 Reply Last reply Reply Quote 1
                  • T
                    tombox @darkbrain85 last edited by

                    @darkbrain85 Problem ist behoben

                    1 Reply Last reply Reply Quote 0
                    • K
                      Kasi-m3 last edited by

                      Eigentlich lief der Adapter relativ stabil. Jetzt, nachdem ich über GitHub gerade die neueste Version installiert habe vergisst er wieder den "http://auth.tesla.com........." Eintrag in den Settings, und der Adapter wird nicht grün. Das passiert jedesmal, wenn ich iobroker neu starte, z.B. wenn ich Node.js upgedatet habe. Kann man das noch verbessern?

                      Grüße
                      Kasi

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        tombox @Kasi-m3 last edited by

                        @kasi-m3 sollte nie passieren brauch dazu den Fehler im log

                        1 Reply Last reply Reply Quote 0
                        • K
                          Kasi-m3 last edited by

                          ioBroker neu gestartet:

                          2021-10-13 15:39:58.787 - error: tesla-motors.0 (2223) tesla-motors.0 already running
                          2021-10-13 15:39:58.788 - warn: tesla-motors.0 (2223) Terminated (ADAPTER_ALREADY_RUNNING): Without reason
                          .
                          .
                          2021-10-13 15:40:30.004 - error: tesla-motors.0 (2340) Error: Request failed with status code 403
                          2021-10-13 15:40:30.004 - error: tesla-motors.0 (2340) {"error":"invalid_grant","error_description":"Internal server error","error_uri":"https://auth.tesla.com/error/reference/3e65011a-2aaf-4e98-8f97-9bee3b297675-1634132429920"}
                          2021-10-13 15:40:30.005 - error: tesla-motors.0 (2340) Please relogin in the settings and copy a new codeURL

                          Adapter bleibt bei gelbem Warndreieck hängen. Dann muss ich wieder login u.s.w..........

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            tombox @Kasi-m3 last edited by

                            @kasi-m3
                            tesla-motors.0 already running
                            hast du eine idee warum die instanz zweimal läuft

                            Gibt es noch mehr log einträge. du kannst es auch per privat nachricht schicken

                            1 Reply Last reply Reply Quote 0
                            • K
                              Kasi-m3 last edited by

                              Hm, ich habe aber nur die eine Instanz. Mehr Log-Einträge gibt es gerade nicht. Ich habe noch keinen weiteren login gemacht.

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                tombox @Kasi-m3 last edited by

                                @kasi-m3 ok vielleicht kannst du es ja nochmal nachstellen

                                1 Reply Last reply Reply Quote 0
                                • K
                                  Kasi-m3 last edited by

                                  Habe gerade die Instanz gelöscht und neu installiert. Dann den login gemacht. Jetzt ist der Adapter erstmal grün.

                                  tesla-motors.0
                                  2021-10-13 16:09:46.921 info Login successful
                                  tesla-motors.0
                                  2021-10-13 16:09:46.921 error Start relogin in 1min
                                  tesla-motors.0
                                  2021-10-13 16:09:46.921 error {"response":null,"error":"https://mobilesvc.teslamotors.com:443/users/100405034/vehicles => operation_timedout with 10s timeout","error_description":""}
                                  tesla-motors.0
                                  2021-10-13 16:09:46.921 error Error: Request failed with status code 408
                                  tesla-motors.0
                                  2021-10-13 16:09:46.921 error own token failed
                                  tesla-motors.0
                                  2021-10-13 16:09:36.301 info Start own Token Refresh
                                  tesla-motors.0
                                  2021-10-13 16:09:35.978 info starting. Version 1.0.5 in /opt/iobroker/node_modules/iobroker.tesla-motors, node: v14.18.1, js-controller: 3.3.18
                                  tesla-motors.0
                                  2021-10-13 16:09:32.485 info Got terminate signal TERMINATE_YOURSELF
                                  tesla-motors.0
                                  2021-10-13 16:09:32.471 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                                  tesla-motors.0
                                  2021-10-13 16:09:32.470 info terminating
                                  tesla-motors.0
                                  2021-10-13 16:09:32.470 info Got terminate signal TERMINATE_YOURSELF
                                  tesla-motors.0
                                  2021-10-13 16:08:14.937 info Waiting for codeURL please visit instance settings and copy url after login
                                  tesla-motors.0
                                  2021-10-13 16:08:14.914 info starting. Version 1.0.5 in /opt/iobroker/node_modules/iobroker.tesla-motors, node: v14.18.1, js-controller: 3.3.18
                                  tesla-motors.0
                                  2021-10-13 15:40:30.005 error Please relogin in the settings and copy a new codeURL
                                  tesla-motors.0
                                  2021-10-13 15:40:30.004 error {"error":"invalid_grant","error_description":"Internal server error","error_uri":"https://auth.tesla.com/error/reference/3e65011a-2aaf-4e98-8f97-9bee3b297675-1634132429920"}
                                  tesla-motors.0
                                  2021-10-13 15:40:30.004 error Error: Request failed with status code 403
                                  tesla-motors.0
                                  2021-10-13 15:39:58.788 warn Terminated (ADAPTER_ALREADY_RUNNING): Without reason
                                  tesla-motors.0
                                  2021-10-13 15:39:58.787 error tesla-motors.0 already running

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    Kasi-m3 last edited by

                                    ....hoppla, jetzt ohne mein Zutun wieder nur noch Dreieck:

                                    tesla-motors.0
                                    2021-10-13 16:16:02.418 info Waiting for codeURL please visit instance settings and copy url after login
                                    tesla-motors.0
                                    2021-10-13 16:16:02.395 info starting. Version 1.0.5 in /opt/iobroker/node_modules/iobroker.tesla-motors, node: v14.18.1, js-controller: 3.3.18
                                    tesla-motors.0
                                    2021-10-13 16:15:59.122 error Cannot read property 'val' of null
                                    tesla-motors.0
                                    2021-10-13 16:15:59.122 error TypeError: Cannot read property 'val' of null at Teslamotors.onStateChange (/opt/iobroker/node_modules/iobroker.tesla-motors/main.js:914:48)
                                    tesla-motors.0
                                    2021-10-13 16:15:59.121 error unhandled promise rejection: Cannot read property 'val' of null
                                    tesla-motors.0
                                    2021-10-13 16:15:59.121 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                    tesla-motors.0
                                    2021-10-13 16:15:58.948 info Got terminate signal TERMINATE_YOURSELF
                                    tesla-motors.0
                                    2021-10-13 16:15:58.930 warn Terminated (UNCAUGHT_EXCEPTION): Without reason
                                    tesla-motors.0
                                    2021-10-13 16:15:58.930 info terminating
                                    tesla-motors.0
                                    2021-10-13 16:15:58.927 error Cannot read property 'val' of null
                                    tesla-motors.0
                                    2021-10-13 16:15:58.927 error TypeError: Cannot read property 'val' of null at Teslamotors.onStateChange (/opt/iobroker/node_modules/iobroker.tesla-motors/main.js:914:48)
                                    tesla-motors.0
                                    2021-10-13 16:15:58.926 error unhandled promise rejection: Cannot read property 'val' of null
                                    tesla-motors.0
                                    2021-10-13 16:15:58.926 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                    tesla-motors.0
                                    2021-10-13 16:10:50.717 info Waiting for codeURL please visit instance settings and copy url after login
                                    tesla-motors.0
                                    2021-10-13 16:10:50.696 info starting. Version 1.0.5 in /opt/iobroker/node_modules/iobroker.tesla-motors, node: v14.18.1, js-controller: 3.3.18
                                    tesla-motors.0
                                    2021-10-13 16:10:47.211 info Got terminate signal TERMINATE_YOURSELF
                                    tesla-motors.0
                                    2021-10-13 16:10:47.195 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                                    tesla-motors.0
                                    2021-10-13 16:10:47.195 info terminating
                                    tesla-motors.0
                                    2021-10-13 16:10:47.194 info Got terminate signal TERMINATE_YOURSELF
                                    tesla-motors.0
                                    2021-10-13 16:10:47.171 error Please relogin in the settings and copy a new codeURL
                                    tesla-motors.0
                                    2021-10-13 16:10:47.171 error {"error":"invalid_grant","error_description":"Internal server error","error_uri":"https://auth.tesla.com/error/reference/697a5f19-0d3f-49e9-9464-d1f05f07dbb5-1634134247102"}
                                    tesla-motors.0
                                    2021-10-13 16:10:47.170 error Error: Request failed with status code 403
                                    tesla-motors.0
                                    2021-10-13 16:09:46.921 info Login successful

                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      tombox @Kasi-m3 last edited by

                                      @kasi-m3 Danke für den Hinweis das passiert wenn tesla nicht erreichbar ist. Installier nochmal und probiere nochmal

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        marlan99 @tombox last edited by

                                        @tombox ich habe auch wieder mal updated.
                                        Bei mir weiterhin alles ok, inkl. login nach dem restart

                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          Kasi-m3 last edited by

                                          OK, danke. Jetzt scheint der Adapter erstmal zu laufen. Ich beobachte das weiter.
                                          Grüße
                                          Kasi

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            StefanRied @Kasi-m3 last edited by

                                            Hallo,

                                            ich habe immer wieder komische Fehler, dass State-Changes des Adapters nicht im Web Admin-Object-Baum angezeigt werden, sehr wohl aber auf anderen Wegen (Vis oder Node-Red oder eigene Scripts) korrekt lesbar sind. (Kenne ioBroker seit Jahren und bin da kein Neuling 🙂

                                            Danke an @tombox für den privaten Austausch und die Klasse Arbeit.
                                            Die State Changes kommen aus dem Adapter, aber die Admin zeigt sie nicht.

                                            Jetzt habe ich gesehen dass die Admin diesen Fahler jede Minute oder öfter geschrieben hat:

                                            admin.0 2021-10-13 21:05:52.527 info Subscribe on all states again
                                            admin.0 2021-10-13 21:04:51.578 info Unsubscribe from all states, except system's, because over 3 seconds the number of events is over 200 (in last second 0)

                                            Dann ist es nicht verwunderlich, das State-Updates willkürlich verloren gehen.
                                            Wird der Tesla Adapter gestoppt, ist es weg.
                                            Ein Blick auf den Tesla Adapter zeigt, dass er bei weitem die größten Event Traffic auf meinem iobroker hat:
                                            ⇥27590/↦27592

                                            Dabei steht die Polling Zeit auf 600 Sekunden und das Stream Beta ist aus.
                                            Er sollte also nur alle 10 Minuten einmal die vehicle_data stats neu schreiben.

                                            Trotzdem scheint es so viel Traffic zu sein, dass die Web-Admin regelmäßig aussteigt. Das erklärt wohl all meine Probleme.

                                            Vielleicht ist im Adapter Code irgendwo ein setState loop entstanden, der das erzeugt.
                                            Mein iobroker rennt auf einem RPI4 mit 8 GB und hat eigentlich reichlich Ressourcen.
                                            Vielleicht haben ja noch mehr Leute das Problem und merken es nicht.

                                            Ich hoffe das Feedback hilft & schönen Abend

                                            Grüße
                                            Stefan

                                            M 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            990
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            99
                                            927
                                            221435
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo