Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. [neuer Adapter] smartgarden adapter for Gardena smart system

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [neuer Adapter] smartgarden adapter for Gardena smart system

    This topic has been deleted. Only users with topic management privileges can see it.
    • jpgorganizer
      jpgorganizer @muckel last edited by jpgorganizer

      @muckel

      Script steht auf github
      https://github.com/jpgorganizer/ioBroker.smartgarden/blob/master/apitestscript/apitest.py

      Darin muss man gleich in den oberen Zeilen die eigenen Daten eintragen.

      # account specific values
      USERNAME = 'myUserEmail'
      PASSWORD = 'myUserPassword'
      API_KEY =  'myApplicationApiKey'
      
      

      Aufruf des scriptes mit

      python3 apitest.py
      

      Bitte posted nirgends die vollständigen Ausgaben des Scriptes, es stehen EURE token in der Ausgabe.

      Einfach in der Ausgabe mal schauen, ob sich dort die gesuchten Daten finden.

      Zur Info bei evlt. fehlenden Modulen. Ich musste bei mir folgendes installieren:

      pi@ioBroker:~ $ sudo apt-get install python3
      ...
      
      pi@ioBroker:~ $ sudo apt-get install python3-pip
      ...
      
      pi@ioBroker:~ $ pip3 install requests
      ...
      
      pi@ioBroker:~ $ pip3 install websocket-client
      ...
      
      pi@ioBroker:~ $  python3 --version
      Python 3.7.3
      
      pi@ioBroker:~ $ pip3 --version
      pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)
      

      VG
      jpgorganizer

      1 Reply Last reply Reply Quote 0
      • jpgorganizer
        jpgorganizer @dslraser last edited by

        @dslraser
        na dann ... hau rein 🙂

        dslraser 2 Replies Last reply Reply Quote 0
        • dslraser
          dslraser Forum Testing Most Active @jpgorganizer last edited by

          @jpgorganizer
          ich muss jetzt ne Weile weg, probiere ich später.

          1 Reply Last reply Reply Quote 0
          • dslraser
            dslraser Forum Testing Most Active @jpgorganizer last edited by

            @jpgorganizer

            pi@ioBroker:~ $ sudo apt-get install python3-pip
            ...
             
            pi@ioBroker:~ $ pip3 install requests
            ...
             
            pi@ioBroker:~ $ pip3 install websocket-client
            ...
            

            Ergebnis

            root@iobroker:/opt/iobroker# sudo apt-get install python3-pip
            Paketlisten werden gelesen... Fertig
            Abhängigkeitsbaum wird aufgebaut.
            Statusinformationen werden eingelesen.... Fertig
            E: Paket python3-pip kann nicht gefunden werden.
            root@iobroker:/opt/iobroker#
            

            auch ohne sudo nicht

            jpgorganizer 1 Reply Last reply Reply Quote 0
            • jpgorganizer
              jpgorganizer @dslraser last edited by

              @dslraser

              ist pip3 evtl schon drauf? python3 war ja auch da
              pip3 --version

              1 Reply Last reply Reply Quote 0
              • M
                muckel last edited by

                ich habs zum laufen gebracht, aber folgender Fehler:

                erich@SmartHome:~$ python gardena.py
                File "gardena.py", line 55
                r = requests.post(f'{AUTHENTICATION_HOST}/v1/oauth2/token', data=payload)
                ^
                SyntaxError: invalid syntax

                jpgorganizer 1 Reply Last reply Reply Quote 0
                • jpgorganizer
                  jpgorganizer @muckel last edited by

                  @muckel

                  ist das ein Aufruf von python3 ???

                  1 Reply Last reply Reply Quote 0
                  • M
                    muckel last edited by

                    in der unix shell aufgerufen

                    jpgorganizer 1 Reply Last reply Reply Quote 0
                    • jpgorganizer
                      jpgorganizer @muckel last edited by

                      @muckel sagte in [neuer Adapter] smartgarden adapter for Gardena smart system:

                      in der unix shell aufgerufen

                      das heißt nichts

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        muckel @jpgorganizer last edited by muckel

                        @jpgorganizer

                        wie rufe ich das file richtig auf. (führe aus)?

                        jpgorganizer 1 Reply Last reply Reply Quote 0
                        • jpgorganizer
                          jpgorganizer @muckel last edited by

                          @muckel

                          siehe

                          @jpgorganizer sagte in [neuer Adapter] smartgarden adapter for Gardena smart system:

                          Aufruf des scriptes mit

                          python3 apitest.py
                          

                          hab's vor ein paar Minuten dort ergänzt

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            muckel @jpgorganizer last edited by muckel

                            @jpgorganizer

                            na super! alle daten da! Mit dem Script zumindest mal. 🙂

                            {"id":"c5a76528-97d2-4816-9c90-9589f0fac63b","type":"SENSOR","relationships":{"device":{"data":{"id":"c5a76528-97d2-4816-9c90-9589f0fac63b","type":"DEVICE"}}},"attributes":{"soilHumidity":{"value":0,"timestamp":"2020-04-01T13:48:42.888+0000"},"soilTemperature":{"value":6,"timestamp":"2020-04-01T13:47:43.515+0000"},"ambientTemperature":{"value":11,"timestamp":"2020-04-01T13:43:32.382+0000"},"lightIntensity":{"value":3536,"timestamp":"2020-04-01T13:43:32.436+0000"}}}

                            1 Reply Last reply Reply Quote 0
                            • jpgorganizer
                              jpgorganizer last edited by

                              @muckel

                              dann gibt es ein Problem im Adapter .... das lässt sich finden. ich brauche den gesamten Abschnitt aus der Ausgabe von dem Script. Schneide oben weg, aber lass mir ein paar Zeilen oberhalb und unterhalb von den Sensordaten dran.
                              Schick es am Besten per PN.

                              Danke und Gruß
                              jpgorganizer

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                muckel @jpgorganizer last edited by

                                @jpgorganizer

                                ich bin zu deppat das ich dir eine PN schicke in diesem forum.
                                ich lösche die keys und sende es dir hier. ist das o.k.?

                                1 Reply Last reply Reply Quote 0
                                • jpgorganizer
                                  jpgorganizer last edited by jpgorganizer

                                  @muckel

                                  ich habs gefunden ... stelle neue Version ein ... brauch nix mehr. Danke.

                                  M 1 Reply Last reply Reply Quote 1
                                  • M
                                    muckel @jpgorganizer last edited by muckel

                                    @jpgorganizer

                                    Super Job! Danke schön! 🙂

                                    Alle Daten werden jetzt auch vom Sensor über den Adapter angezeigt.

                                    👏

                                    1 Reply Last reply Reply Quote 0
                                    • jpgorganizer
                                      jpgorganizer last edited by

                                      @muckel Danke für deinen Support. Ich war einfach zu doof zu sehen, dass in einer Auswahl der Sensor komplett fehlt.
                                      @dslraser

                                      Sollte nun gehen. Bitte testet und bitte auch Feedback.

                                      Neue Version 0.4.2 ist auf github.

                                      Grüße
                                      jpgorganizer

                                      0.4.2

                                      • (jpgorganizer)
                                        • error missing SENSOR data fixed

                                      0.4.1

                                      • (jpgorganizer)
                                        • Dependency get's resolved now

                                      0.4.0

                                      • (jpgorganizer)
                                        • NOTE: with this version an additional dependency is necessary at runtime. If it does not get installed together with the installation of this adapter, please install seperately with npm install https://github.com/jpgorganizer/ioBroker.utils or npm i @jpgorganizer/utils
                                        • NOTE: you must delete all states of the adapter instance to install this release and please check your application carefully for necessary adjustments regarding type/role changes (see below)
                                        • data types of (nearly) all datapoints adjusted for compliance with ioBroker guidance:
                                          • states now have special ioBroker type and role instead of former string/text where applicable, e.g. number/value.battery for batteryLevel_value (Issue https://github.com/jpgorganizer/ioBroker.smartgarden/issues/3)
                                        • datapoint activity_value_i replaced by activity_mowing_i with type/role boolean/indicator.working: true means mowing, false means not mowing
                                        • possibility to pre-define states integrated, see new switch PreDefine States in adapter/instance configuration (Issue https://github.com/jpgorganizer/ioBroker.smartgarden/issues/2)
                                        • states are readonly now; except states for commands (Issue https://github.com/jpgorganizer/ioBroker.smartgarden/issues/4)
                                        • input field for useTestVariable in adapter/instance configuration switched to a checkbox (former: text); please check your settings
                                        • error in command stop_all_valves_i in VALVE_SET fixed
                                      StrathCole created this issue in jpgorganizer/ioBroker.smartgarden

                                      closed Objekte mit passendem Typ und Rolle anlegen #3

                                      StrathCole created this issue in jpgorganizer/ioBroker.smartgarden

                                      closed State für Error-Code anlegen #2

                                      StrathCole created this issue in jpgorganizer/ioBroker.smartgarden

                                      closed States dürfen nicht "writeable" sein #4

                                      M dslraser 2 Replies Last reply Reply Quote 0
                                      • M
                                        muckel @jpgorganizer last edited by

                                        @jpgorganizer

                                        Siehe oben! 👏

                                        1 Reply Last reply Reply Quote 0
                                        • dslraser
                                          dslraser Forum Testing Most Active @jpgorganizer last edited by

                                          @jpgorganizer

                                          alles da 👍

                                          Bildschirmfoto 2020-04-01 um 17.03.00.png

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            muckel @dslraser last edited by

                                            @dslraser
                                            @jpgorganizer

                                            Jetzt kann ich endlich den alten Gardena Adapter löschen.

                                            Bin schon neugierig was du noch in den Adapter einbringen wirst.

                                            Danke für dein Engagment!!! 🙂

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            994
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            gardena smart system smartgarden
                                            107
                                            1075
                                            243405
                                            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