Ankündigung

Einklappen
Keine Ankündigung bisher.

Support Thread zum husky Plugin - Steuerung von Husqvarna Automowern

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Support Thread zum husky Plugin - Steuerung von Husqvarna Automowern

    Support Anfragen zum husky Plugin für die Steuerung von Husqvarna Automowern mit SmartHomeNG hier posten.

    Als Referenz kommt dieser Anfangs-Thread in Frage.


    #2
    Hallo zusammen,

    das husky-Plugin funktioniert bei mir seit ein paar Tagen nicht mehr. Hat noch jemand das Problem? Habe mal das Log angehängt.

    Vielen Dank im Voraus
    Angehängte Dateien

    Kommentar


      #3
      Ich habe keinen Husqvarna im Einsatz aber mir sieht das nach einem Softwareupdate seitens des Mähers aus wo nun bestimmte Annahmen nicht mehr passen wie z.B. das es laut Plugin einen Eintrag für model in den gelieferten JSON Daten geben soll. Das Plugin sollte sowas eigentlich abfangen können und melden was das Problem ist. Muss aber auch jemand implementieren :-)

      Kommentar


        #4
        Hi,
        der Mäher hat kein Softwareupdate bekommen...evtl. hat sich an der API-Anbindung bei Husquarna etwas geändert.

        Kommentar


          #5
          Hallo Scaramangas ,

          ich habe eben das Plugin um entsprechende Fehlernachrichten und ein sauberes Abfangen ergänzt. Einfach das plugin aus dem Develop Zweig laden, ausprobieren und das Ergebnis hier nochmal posten.

          https://github.com/smarthomeNG/plugi.../develop/husky

          Viel Erfolg!

          Kommentar


            #6
            Hallo aschwith,

            erstmal danke für deinen Einsatz. Habe die Files ausgetauscht, leider geht es noch nicht.


            Code:
            2021-09-24 09:10:43 WARNING lib.smarthome.main -------------------- Init SmartHomeNG 1.8.2.master (0f462a1e) --------------------
            2021-09-24 09:10:43 WARNING lib.smarthome.main Running in Python interpreter 'v3.7.3 final', from directory /usr/local/smarthome
            2021-09-24 09:10:43 WARNING lib.smarthome.main - on Linux-5.4.140-1-pve-x86_64-with-debian-10.10 (pid=330)
            2021-09-24 09:10:43 WARNING lib.smarthome.main - Nutze Feiertage für Land 'DE', Provinz 'None', 1 benutzerdefinierte(r) Feiertag(e) definiert
            2021-09-24 09:10:47 WARNING lib.metadata Item 'automower.state.errormessage', attribute 'telegram_message': Attribute is undefined and has value 'MOWER ERROR: [VALUE]'
            2021-09-24 09:10:47 WARNING lib.metadata Item 'automower.state.message', attribute 'telegram_info': Attribute is undefined and has value 'mower'
            2021-09-24 11:10:47 WARNING lib.smarthome.main -------------------- SmartHomeNG initialization finished --------------------
            2021-09-24 11:10:48 ERROR lib.plugin Plugin 'husky' exception in run() method: 'Mower' object has no attribute 'logger'
            > Traceback (most recent call last):
            > File "/usr/local/smarthome/lib/plugin.py", line 675, in run
            > self.plugin.run()
            > File "/usr/local/smarthome/plugins/husky/__init__.py", line 174, in run
            > self._select_mower()
            > File "/usr/local/smarthome/plugins/husky/__init__.py", line 440, in _select_mower
            > self.mymower.parse_mower_from_json(selected_mower)
            > File "/usr/local/smarthome/plugins/husky/__init__.py", line 931, in parse_mower_from_json
            > self.logger.error("Model attribute not found in json: {0}".format(json))
            > AttributeError: 'Mower' object has no attribute 'logger'
            2021-09-24 11:11:28 ERROR cherrypy.error.140459118144368 [24/Sep/2021:11:11:28] HTTP
            > Traceback (most recent call last):
            > File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 638, in respond
            > self._do_respond(path_info)
            > File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 697, in _do_respond
            > response.body = self.handler()
            > File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
            > self.body = self.oldhandler(*args, **kwargs)
            > File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
            > return self.callable(*self.args, **self.kwargs)
            > File "/usr/local/smarthome/plugins/husky/__init__.py", line 611, in index
            > return tmpl.render(p=self.plugin, device_count=device_count, items_control=self.plugin._items_control, items_state=self.plugin._items_state, items_opdata=self.plugin._items_opdata)
            > File "/home/smarthome/.local/lib/python3.7/site-packages/jinja2/environment.py", line 1090, in render
            > self.environment.handle_exception()
            > File "/home/smarthome/.local/lib/python3.7/site-packages/jinja2/environment.py", line 832, in handle_exception
            > reraise(*rewrite_traceback_stack(source=source))
            > File "/home/smarthome/.local/lib/python3.7/site-packages/jinja2/_compat.py", line 28, in reraise
            > raise value.with_traceback(tb)
            > File "/usr/local/smarthome/plugins/husky/webif/templates/index.html", line 263, in top-level template code
            > {% set tab2title = "<strong>" ~ p.get_shortname() ~ " Items</strong> (" ~ items_count ~ ")" %}
            > File "/usr/local/smarthome/modules/http/webif/gtemplates/base_plugin.html", line 183, in top-level template code
            > {% if scroll_heading is not defined %}
            > File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 1, in top-level template code
            > {% block doc -%}
            > File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 4, in block "doc"
            > {%- block html %}
            > File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 76, in block "html"
            > {% block body -%}
            > File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 79, in block "body"
            > {% block content -%}
            > File "/usr/local/smarthome/modules/http/webif/gtemplates/base_plugin.html", line 150, in block "content"
            > {% block bodytab1 %}
            > File "/usr/local/smarthome/plugins/husky/webif/templates/index.html", line 141, in block "bodytab1"
            > {{ p.mymower.last_status().get_status_message() }}
            > File "/usr/local/smarthome/plugins/husky/__init__.py", line 1119, in get_status_message
            > starttime_YMDHMS = self.get_next_start_time()
            > File "/usr/local/smarthome/plugins/husky/__init__.py", line 1105, in get_next_start_time
            > return datetime.utcfromtimestamp(self._nextStartTimestamp ).strftime('%Y-%m-%d %H:%M:%S')
            > TypeError: an integer is required (got type NoneType)

            Kommentar


              #7
              Ich kann das Plugin nicht testen und bin daher im Blindflug unterwegs. Ich habe den fehlenden Logger ergänzt, bitte versuche es nochmal. VG

              Kommentar


                #8
                Hallo,
                funktioniert soweit fast schon wieder. Ein Fehlereintrag ist noch im Log...

                2021-09-24 15:58:09 WARNING lib.smarthome.main -------------------- Init SmartHomeNG 1.8.2.master (0f462a1e) --------------------
                2021-09-24 15:58:09 WARNING lib.smarthome.main Running in Python interpreter 'v3.7.3 final', from directory /usr/local/smarthome
                2021-09-24 15:58:09 WARNING lib.smarthome.main - on Linux-5.4.140-1-pve-x86_64-with-debian-10.10 (pid=330)
                2021-09-24 15:58:09 WARNING lib.smarthome.main - Nutze Feiertage für Land 'DE', Provinz 'None', 1 benutzerdefinierte(r) Feiertag(e) definiert
                2021-09-24 15:58:13 WARNING lib.metadata Item 'automower.state.errormessage', attribute 'telegram_message': Attribute is undefined and has value 'MOWER ERROR: [VALUE]'
                2021-09-24 15:58:13 WARNING lib.metadata Item 'automower.state.message', attribute 'telegram_info': Attribute is undefined and has value 'mower'
                2021-09-24 17:58:13 WARNING lib.smarthome.main -------------------- SmartHomeNG initialization finished --------------------
                2021-09-24 17:58:14 ERROR plugins.husky Model attribute not found in json: {'id': '731f4130821', 'name': 'Hektor ', 'valueFound': True, 'status': {'batteryPercent': 100, 'connected': True, 'lastErrorCode': 0, 'lastErrorCodeTimestamp': 0, 'mowerStatus': 'OFF_HATCH_CLOSED_DISABLED', 'nextStartSource': 'COMPLETED_CUTTING_TODAY_AUTO', 'nextStartTimestamp': 1632560400, 'operatingMode': 'AUTO', 'storedTimestamp': 1632498655772, 'showAsDisconnected': False, 'valueFound': True}}
                jedenfalls schon mal besten Dank im Voraus

                Kommentar


                  #9
                  Das neue Husquvarna Interface sendet anscheinend keinen Modelltyp mehr (zumindest bei Dir). Ich habe die obige Fehlermeldung jetzt zur Debugmeldung degradiert. Update liegt im Develop. Ob das Plugin weiterhin ohne ausgelesenen Modeltyp funktionert, müsstest Du hier nochmal berichten. Idealerweise schaut sich das zusätzlich nochmal der Pluginauthor an.

                  Kommentar

                  Lädt...
                  X