Plugin ICO ONDILO

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • eisenkarl
    Lox Guru
    • 28.08.2015
    • 1350

    #1

    Plugin ICO ONDILO

    Hallo, ich habe das Plugin von Alexander Mulack an meinem Loxberry installiert.
    Leider kommen keine Daten am Miniserver an und ich erhalte folgende Fehlermeldung beim ausführen der ico.py

    Code:
    Number of arguments: 1 arguments.
    Argument List: ['ico.py']
    using plugin log file ico.log
    using system configuration file /opt/loxberry/config/system/general.json
    Miniserver ip address: 192.168.8.13
    Starting new HTTPS connection (1): interop.ondilo.com:443
    https://interop.ondilo.com:443 "POST /oauth2/token HTTP/1.1" 200 113
    Starting new HTTPS connection (1): interop.ondilo.com:443
    https://interop.ondilo.com:443 "POST /oauth2/token HTTP/1.1" 200 113
    Starting new HTTPS connection (1): interop.ondilo.com:443
    https://interop.ondilo.com:443 "GET /api/customer/v1/pools HTTP/1.1" 200 344
    Starting new HTTPS connection (1): interop.ondilo.com:443
    https://interop.ondilo.com:443 "GET /api/customer/v1/pools HTTP/1.1" 200 344
    
    
    --------------------------------------------------------
    Pool ID : blabla
    Refresh Token : blablablablablablabla
    (Refresh Token added to token.txt)
    --------------------------------------------------------
    
    
    Starting new HTTPS connection (1): interop.ondilo.com:443
    https://interop.ondilo.com:443 "GET /api/customer/v1/user/units HTTP/1.1" 200 235
    Starting new HTTPS connection (1): interop.ondilo.com:443
    https://interop.ondilo.com:443 "GET /api/customer/v1/user/units HTTP/1.1" 200 235
    'conductivity'
    Traceback (most recent call last):
    File "ico.py", line 574, in <module>
    main(args)
    File "ico.py", line 203, in main
    units_conductivity = OndiloAPI().get_units(access_token)['conductivity']
    KeyError: 'conductivity'
    Kann jemand, evtl der Entwickler, helfen?

    DANKE
  • eisenkarl
    Lox Guru
    • 28.08.2015
    • 1350

    #2
    Ok, ich habe mir die ico.py mal angesehen, kann es sein, dass ich keine Daten erhalte, weil das Plugin einen Pool mit Salz erwartet und ich Chlor habe?
    Wie müssten die Werte in der ico.py aussehen um Daten von einem Pool mit Chlor zu erhalten?

    Kommentar


    • stefan01220
      stefan01220 kommentierte
      Kommentar bearbeiten
      hast es gefixed ?
  • alexmuli
    Dumb Home'r
    • 23.11.2015
    • 10

    #3
    Ich schau mir das Plugin nochmal an und versuche das Problem zu fixen.

    Gruß Alex

    Kommentar

    • Gast

      #4
      Hi,

      hat in der Zwischenzeit jemand von euch das Problem gelöst? Habe genau die gleiche Fehlermeldung:

      Code:
      Traceback (most recent call last): File "ico.py", line 574, in <module> main(args) File "ico.py", line 203, in main units_conductivity = OndiloAPI().get_units(access_token)['conductivity'] KeyError: 'conductivity'
      DANKE für ne kurze Rückmeldung!

      Viele Grüße

      Thomas

      Kommentar

      • eisenkarl
        Lox Guru
        • 28.08.2015
        • 1350

        #5
        Ich habe den Fehler fixen können, in dem ich die Werte für Salz ausgeklammert habe

        Kommentar

        • stefan01220
          Smart Home'r
          • 10.02.2020
          • 36

          #6
          Die neue Session fängt wieder an - gibs hier schon einen Fix ?

          Kommentar

          • alexmuli
            Dumb Home'r
            • 23.11.2015
            • 10

            #7
            Ja sollte jetzt gefixt sein, ich hoffe es funktioniert bei euch jetzt.

            Kommentar


            • spax72210
              spax72210 kommentierte
              Kommentar bearbeiten
              HI, ich hab ejetzt einen anderen Fehler: Im Log steht folgendes:

              2022-04-17 12:10:02 root INFO using plugin log file /opt/loxberry/log/plugins/ICO/ico.log
              2022-04-17 12:10:02 root INFO using system configuration file /opt/loxberry/config/system/general.json
              2022-04-17 12:10:02 root INFO Miniserver ip address: 192.168.X.X
              2022-04-17 12:10:02 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): interop.ondilo.com:443
              2022-04-17 12:10:02 urllib3.connectionpool DEBUG https://interop.ondilo.com:443 "POST /oauth2/token HTTP/1.1" 200 113
              2022-04-17 12:10:02 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): interop.ondilo.com:443
              2022-04-17 12:10:02 urllib3.connectionpool DEBUG https://interop.ondilo.com:443 "POST /oauth2/token HTTP/1.1" 200 113
              2022-04-17 12:10:02 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): interop.ondilo.com:443
              2022-04-17 12:10:03 urllib3.connectionpool DEBUG https://interop.ondilo.com:443 "GET /api/customer/v1/pools HTTP/1.1" 200 331
              2022-04-17 12:10:03 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): interop.ondilo.com:443
              2022-04-17 12:10:03 urllib3.connectionpool DEBUG https://interop.ondilo.com:443 "GET /api/customer/v1/pools HTTP/1.1" 200 331
              2022-04-17 12:10:03 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): interop.ondilo.com:443
              2022-04-17 12:10:03 urllib3.connectionpool DEBUG https://interop.ondilo.com:443 "GET /api/customer/v1/user/units HTTP/1.1" 200 4
              2022-04-17 12:10:04 urllib3.connectionpool DEBUG Starting new HTTPS connection (1): interop.ondilo.com:443
              2022-04-17 12:10:04 urllib3.connectionpool DEBUG https://interop.ondilo.com:443 "GET /api/customer/v1/user/units HTTP/1.1" 200 4
              2022-04-17 12:10:04 root CRITICAL 'NoneType' object is not subscriptable
              Traceback (most recent call last):
              File "/opt/loxberry/data/plugins/ICO/ico.py", line 577, in
              main(args)
              File "/opt/loxberry/data/plugins/ICO/ico.py", line 205, in main
              units_orp = OndiloAPI().get_units(access_token)['orp']
              TypeError: 'NoneType' object is not subscriptable

              Versuch schon lange das Ding zum laufen zu bekommen

            • stefan01220
              stefan01220 kommentierte
              Kommentar bearbeiten
              ich bekomme den gleichen Fehler.
          • GuentherA
            Dumb Home'r
            • 22.01.2022
            • 27

            #8
            Hallo Zusammen,

            ich wollte hier mal nachfragen wie zufrieden ihr mit dem Gerät an sich seit. Bin seit einiger Zeit auf der Suche nach diesen Funktionen. Und das noch in Kombination mit diesem PlugIn!? Wäre perfekt! Nur die Rezessionen im Netz sind ja, naja sagen wir mal zum Teil eher durchwachsen....

            Wie sind Eure Erfahrungen?

            Danke und LG
            Günther

            Kommentar

            • eisenkarl
              Lox Guru
              • 28.08.2015
              • 1350

              #9
              Habe das Gerät letztes Jahr die ganze Saison im Pool gehabt. Nacht was es soll und alles hat gepasst. Bin jetzt auf das aufwachen für die neue Saison gespannt…

              Kommentar

              • alexmuli
                Dumb Home'r
                • 23.11.2015
                • 10

                #10
                @spax72210:

                Welche Variante des ICO hast du? Die Spa oder die Pool-Variante? Von Ondilo oder BWT?

                Kommentar


                • spax72210
                  spax72210 kommentierte
                  Kommentar bearbeiten
                  Hi, ich habe, glaub ich was gefunden. ich nutze die Spa Variante mit Chlor von Ondilo. Habe über die App den Namen des Spa angepasst. Hatte ein Leerzeichen im Namen. Aktuell sieht das Log nun anderes aus. hab aber in Loxone noch immer keine Daten empfangen

                  Traceback (most recent call last):
                  File "/opt/loxberry/data/plugins/ICO/ico.py", line 577, in
                  main(args)
                  File "/opt/loxberry/data/plugins/ICO/ico.py", line 249, in main
                  h = requests.post(str(MSFulluri) + '/dev/sps/io/ICO1/...')
                  File "/usr/lib/python3/dist-packages/requests/api.py", line 116, in post
                  return request('post', url, data=data, json=json, **kwargs)
                  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
                  return session.request(method=method, url=url, **kwargs)
                  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
                  resp = self.send(prep, **send_kwargs)
                  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
                  r = adapter.send(request, **kwargs)
                  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 514, in send
                  raise SSLError(e, request=request)
                  requests.exceptions.SSLError: HTTPSConnectionPool(host='192.168.x.x', port=443): Max retries exceeded with url: /dev/sps/io/ICO1/... (Caused by SSLError(SSLCertVerificationError("hostname '192.168.x.x' doesn't match '*.XXXXXXX.dyndns.loxonecloud.com'")))
                  Zuletzt geändert von spax72210; 17.04.2022, 12:23.
              • spax72210
                Azubi
                • 08.07.2020
                • 2

                #11
                Hi alexmuli, hab jetzt die Kommunikation HTTPS im Loxberry deaktiviert. Jetzt kommen die Daten im Loxone an. Es müsste wohl die Zertifikatsprüfung deaktiviert werden.
                Der 1. Fehler ist nun auch behoben. Es sollte darauf geachtet werden die Pools in der App von ICO ohne Leerzeichen zu benennen, damit sie vom Plugin gefunden werden.

                Kommentar


                • stefan01220
                  stefan01220 kommentierte
                  Kommentar bearbeiten
                  wie genau hast du das deaktiviert ?

                • spax72210
                  spax72210 kommentierte
                  Kommentar bearbeiten
                  Hi Stefan01220, ich habe im Loxberry aktuell unter Miniserver HTTPS deaktiviert (bevorzuge HTTPS Häckchen).
                  alexmuli. Man müsste diese SSL Verifizierung irgend wir deaktivieren. läuft ja eh über UDP. Wenn ich HTTPS aktiviere, schlägt die Kommunikation fehl mit ICO und ich bekomme keine Daten

                • stefan01220
                  stefan01220 kommentierte
                  Kommentar bearbeiten
                  das hab ich auch nicht angehackt!
              • alexmuli
                Dumb Home'r
                • 23.11.2015
                • 10

                #12
                Super das es jetzt funktioniert hat, ich werde den Hinweis des Namens in die Doku mit aufnehmen. Danke viel Spaß. Ein Visu-Bsp. habe ich auch im GitHub mit angehängt.

                Kommentar


                • spax72210
                  spax72210 kommentierte
                  Kommentar bearbeiten
                  funktioniert nur wenn am Loxberry HTTPS deaktiviert wird
              • stefan01220
                Smart Home'r
                • 10.02.2020
                • 36

                #13
                Hey ich bekomme leider noch keine Werte in den Miniserver.
                Loxberry und config runergeldaden.


                was kann ich prüfen ? UDP Monitor zeigt mir keine Daten an.
                Zugangsdaten passen aber.
                wie kann ich den Stream sonst noch checken ?

                THX

                Kommentar

                • alexmuli
                  Dumb Home'r
                  • 23.11.2015
                  • 10

                  #14
                  Hallo du kannst es im Detail checken, per

                  ssh loxberry@192.168.178.xxx

                  python3 /opt/loxberry/data/plugins/ICO/ico.py

                  ablaufen lassen, dann solltest du sehen wo es hängen bleibt.

                  Kommentar

                  • stefan01220
                    Smart Home'r
                    • 10.02.2020
                    • 36

                    #15
                    loxberry@loxberry:~ $ python3 /opt/loxberry/data/plugins/ICO/ico.py
                    Number of arguments: 1 arguments.
                    Argument List: ['/opt/loxberry/data/plugins/ICO/ico.py']
                    using plugin log file ico.log
                    using system configuration file /opt/loxberry/config/system/general.json
                    Miniserver ip address: 192.168.0.19
                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "POST /oauth2/token HTTP/1.1" 200 113
                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "POST /oauth2/token HTTP/1.1" 200 113
                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "GET /api/customer/v1/pools HTTP/1.1" 200 346
                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "GET /api/customer/v1/pools HTTP/1.1" 200 346


                    --------------------------------------------------------
                    Pool ID :XXXX
                    Refresh Token : XXXXXXXXXX
                    (Refresh Token added to token.txt)
                    --------------------------------------------------------


                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "GET /api/customer/v1/user/units HTTP/1.1" 200 4
                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "GET /api/customer/v1/user/units HTTP/1.1" 200 4
                    'NoneType' object is not subscriptable
                    Traceback (most recent call last):
                    File "/opt/loxberry/data/plugins/ICO/ico.py", line 577, in <module>
                    main(args)
                    File "/opt/loxberry/data/plugins/ICO/ico.py", line 205, in main
                    units_orp = OndiloAPI().get_units(access_token)['orp']
                    TypeError: 'NoneType' object is not subscriptable
                    loxberry@loxberry:~ $ python3 /opt/loxberry/data/plugins/ICO/ico.py
                    Number of arguments: 1 arguments.
                    Argument List: ['/opt/loxberry/data/plugins/ICO/ico.py']
                    using plugin log file ico.log
                    using system configuration file /opt/loxberry/config/system/general.json
                    Miniserver ip address: 192.168.0.19
                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "POST /oauth2/token HTTP/1.1" 200 113
                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "POST /oauth2/token HTTP/1.1" 200 113
                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "GET /api/customer/v1/pools HTTP/1.1" 200 346
                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "GET /api/customer/v1/pools HTTP/1.1" 200 346


                    --------------------------------------------------------
                    Pool ID : XXX
                    Refresh Token : XXXX
                    (Refresh Token added to token.txt)
                    --------------------------------------------------------


                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "GET /api/customer/v1/user/units HTTP/1.1" 200 4
                    Starting new HTTPS connection (1): interop.ondilo.com:443
                    https://interop.ondilo.com:443 "GET /api/customer/v1/user/units HTTP/1.1" 200 4
                    'NoneType' object is not subscriptable
                    Traceback (most recent call last):
                    File "/opt/loxberry/data/plugins/ICO/ico.py", line 577, in <module>
                    main(args)
                    File "/opt/loxberry/data/plugins/ICO/ico.py", line 205, in main
                    units_orp = OndiloAPI().get_units(access_token)['orp']
                    TypeError: 'NoneType' object is not subscriptable




                    Hab ich gemacht ?!

                    Kommentar


                    • stefan01220
                      stefan01220 kommentierte
                      Kommentar bearbeiten
                      genau. ich habe Pool stehen.

                      ich habe zwar sie bwt Variante aber mach alles mit der ico app.

                    • spax72210
                      spax72210 kommentierte
                      Kommentar bearbeiten
                      Nun, bei mir hat es danach funktioniert uns mein Log sah deinem gleich. Evtl dauert es bis der Name synchron ist. Starte dein Loxberry doch einmal neu oder Installiere das ganze Plugin noch einmal, um Fehler in der Abfrage oder Installationen auszuschließen.

                    • stefan01220
                      stefan01220 kommentierte
                      Kommentar bearbeiten
                      hab ich schon alles probiert.

                      sehr komisch das ganze!
                  Lädt...