Announcement

Collapse
No announcement yet.

Worx Plugin not working on Rpi

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Worx Plugin not working on Rpi

    Hi,

    Thanks for this great plugin, much more useful than the Android application provided by Worx ;-)
    It works fine with my WG796E.1 on Windows 7 Pro, but I can't install it on Rpi3 : I get the following error, the same I got in Windows before installing .NET Framework 4.7.1 :
    "Examining properties on plugin (2) HSPI_Worx.exe: Object reference not set to an instance of an object"

    The plugin seems to be installed but can't be shown in plugin manage list and the error come regularly in logs.
    As I'm not familiar with Linux, I don't know if it's possible to install a .NET like and how to do it.

    Thanks for your help.

    Yves



  • #2
    Hi Yves,

    Let me look into this. I am using Windows as well, but the plugin has been tested with Linux and worked fine before.

    I'll get back to you soon. Thanks!

    stefxx
    stefxx

    Comment


    • #3
      Hi,

      I believe this is caused by an incomplete mono installation. Can you do "apt-get install mono-complete" and see if that helps?

      Thanks!
      stefxx

      Comment


      • #4
        Thanks for your quick answer.

        I've tried unsuccessfully to install mono-complete. It seems, it's not allowed by HomeTrollerZeeS2V2.
        I've also tried to apt-get update, upgrade... to see if it was the issue.
        Not better.

        If I install the plugin, it's green in log with a successful installation message but I can see the following message on the console :
        Invalid type MQTTnet.Client.IMqttClient for instance filed HSPI_Worx.HSPI:mqttClient

        And the plugin still isn't in the plugin list.

        Comment


        • #5
          What error do you get when trying to install mono-complete?

          Also, what is the output of "mono --version"?

          I have zero experience with the Zee, but I guess it is just another Linux box running HomeSeer HS3, so I don't see why this isn't working...
          stefxx

          Comment


          • #6
            Please find below the commands and returns :

            running command apt-get install mono-complete

            Lecture des listes de paquets…
            Construction de l'arbre des dépendances…
            Lecture des informations d'état…
            Certains paquets ne peuvent être installés. Ceci peut signifier
            que vous avez demandé l'impossible, ou bien, si vous utilisez
            la distribution unstable, que certains paquets n'ont pas encore
            été créés ou ne sont pas sortis d'Incoming.
            L'information suivante devrait vous aider à résoudre la situation :

            Les paquets suivants contiennent des dépendances non satisfaites :
            mono-complete : Dépend: mono-runtime (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: mono-runtime-sgen (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: libmono-2.0-1 (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: libmono-profiler (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: mono-utils (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: mono-jay (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: mono-devel (= 3.2.8+dfsg-10+deb8u1) mais ne sera pas installé
            Dépend: mono-mcs (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: mono-csharp-shell (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: mono-2.0-gac (= 3.2.8+dfsg-10+deb8u1) mais ne sera pas installé
            Dépend: mono-4.0-gac (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: mono-2.0-service (= 3.2.8+dfsg-10+deb8u1) mais ne sera pas installé
            Dépend: mono-4.0-service (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: monodoc-base (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: monodoc-manual (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé
            Dépend: libmono-cil-dev (= 3.2.8+dfsg-10+deb8u1) mais 4.0.2.5+dfsg-2~rpi1 devra être installé



            running command mono --version

            Mono JIT compiler version 4.5.1 (master/9db20c4 Fri May 13 15:41:42 EDT 2016)
            Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
            TLS: __thread
            SIGSEGV: normal
            Notifications: epoll
            Architecture: armel,vfp+hard
            Disabled: none
            Misc: softdebug
            LLVM: supported, not enabled.
            GC: sgen


            And the log when installing the plugin :

            avr.-03 23:08:18 Error Examining properties on plugin (2) HSPI_Worx.exe: Object reference not set to an instance of an object
            avr.-03 23:08:07 Updater Install/Update of package Worx Landroid Robot Mowers was successful.
            avr.-03 23:08:07 Updater Extraction Complete.
            avr.-03 23:08:06 Updater Extracting files from zip file: images.zip
            avr.-03 23:08:06 Updater Copying file: /usr/local/HomeSeer/bin/Worx/MQTTnet.dll
            avr.-03 23:08:06 Updater Copying file: /usr/local/HomeSeer/bin/Worx/Newtonsoft.Json.dll
            avr.-03 23:08:06 Updater Copying file: /usr/local/HomeSeer/HSPI_Worx.exe.config
            avr.-03 23:08:06 Updater Copying file: /usr/local/HomeSeer/HSPI_Worx.exe
            avr.-03 23:08:06 Updater Installing package Worx Landroid Robot Mowers
            avr.-03 23:08:06 Updater Update hspi_worx.exe downloaded successfully
            avr.-03 23:08:04 Updater Downloading update: Worx Landroid Robot Mowers
            avr.-03 23:08:04 Updater Starting download of updates

            Comment


            • #7
              try this

              sudo apt-get -f install
              stefxx

              Comment


              • #8
                running command sudo apt-get -f install

                Lecture des listes de paquets…
                Construction de l'arbre des dépendances…
                Lecture des informations d'état…
                Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
                geoclue-2.0 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
                libasn1-8-heimdal libglade2-0 libglade2.0-cil libglib2.0-cil
                libgssapi3-heimdal libgtk2.0-cil libhcrypto4-heimdal libheimbase1-heimdal
                libheimntlm0-heimdal libhx509-5-heimdal libjavascriptcoregtk-1.0-0
                libjim0.75 libkrb5-26-heimdal liblua5.1-0 libmbim-glib4 libmbim-proxy
                libmm-glib0 libmono-2.0-1 libmono-2.0-dev libmono-c5-1.1-cil
                libmono-cairo4.0-cil libmono-cecil-private-cil libmono-cecil-vb0.9-cil
                libmono-cil-dev libmono-codecontracts4.0-cil
                libmono-compilerservices-symbolwriter4.0-cil libmono-cscompmgd0.0-cil
                libmono-csharp4.0c-cil libmono-custommarshalers4.0-cil libmono-db2-1.0-cil
                libmono-debugger-soft4.0a-cil libmono-entityframework-sqlserver6.0-cil
                libmono-entityframework6.0-cil libmono-http4.0-cil libmono-ldap4.0-cil
                libmono-management4.0-cil libmono-messaging-rabbitmq4.0-cil
                libmono-messaging4.0-cil libmono-microsoft-build-engine4.0-cil
                libmono-microsoft-build-framework4.0-cil
                libmono-microsoft-build-tasks-v4.0-4.0-cil
                libmono-microsoft-build-utilities-v4.0-4.0-cil
                libmono-microsoft-build4.0-cil libmono-microsoft-csharp4.0-cil
                libmono-microsoft-visualbasic11.0-cil libmono-microsoft-visualc10.0-cil
                libmono-microsoft-web-infrastructure1.0-cil libmono-npgsql4.0-cil
                libmono-opensystem-c4.0-cil libmono-oracle4.0-cil libmono-parallel4.0-cil
                libmono-peapi4.0a-cil libmono-profiler libmono-rabbitmq4.0-cil
                libmono-relaxng4.0-cil libmono-sharpzip4.84-cil libmono-simd4.0-cil
                libmono-sqlite4.0-cil libmono-system-componentmodel-composition4.0-cil
                libmono-system-componentmodel-dataannotations4.0-cil
                libmono-system-configuration-install4.0-cil libmono-system-core4.0-cil
                libmono-system-data-datasetextensions4.0-cil
                libmono-system-data-entity4.0-cil libmono-system-data-linq4.0-cil
                libmono-system-data-services-client4.0-cil
                libmono-system-data-services4.0-cil libmono-system-design4.0-cil
                libmono-system-drawing-design4.0-cil libmono-system-dynamic4.0-cil
                libmono-system-identitymodel-selectors4.0-cil
                libmono-system-identitymodel4.0-cil
                libmono-system-io-compression-filesystem4.0-cil
                libmono-system-io-compression4.0-cil libmono-system-json-microsoft4.0-cil
                libmono-system-json4.0-cil libmono-system-ldap-protocols4.0-cil
                libmono-system-ldap4.0-cil libmono-system-management4.0-cil
                libmono-system-messaging4.0-cil libmono-system-net-http-formatting4.0-cil
                libmono-system-net-http-webrequest4.0-cil libmono-system-net-http4.0-cil
                libmono-system-net4.0-cil libmono-system-numerics4.0-cil
                libmono-system-reactive-core2.2-cil libmono-system-reactive-debugger2.2-cil
                libmono-system-reactive-experimental2.2-cil
                libmono-system-reactive-interfaces2.2-cil
                libmono-system-reactive-linq2.2-cil
                libmono-system-reactive-observable-aliases0.0-cil
                libmono-system-reactive-platformservices2.2-cil
                libmono-system-reactive-providers2.2-cil
                libmono-system-reactive-runtime-remoting2.2-cil
                libmono-system-reactive-windows-forms2.2-cil
                libmono-system-reactive-windows-threading2.2-cil
                libmono-system-runtime-caching4.0-cil
                libmono-system-runtime-durableinstancing4.0-cil
                libmono-system-runtime-serialization4.0-cil libmono-system-runtime4.0-cil
                libmono-system-servicemodel-activation4.0-cil
                libmono-system-servicemodel-discovery4.0-cil
                libmono-system-servicemodel-routing4.0-cil
                libmono-system-servicemodel-web4.0-cil libmono-system-servicemodel4.0a-cil
                libmono-system-serviceprocess4.0-cil
                libmono-system-threading-tasks-dataflow4.0-cil
                libmono-system-web-abstractions4.0-cil
                libmono-system-web-applicationservices4.0-cil
                libmono-system-web-dynamicdata4.0-cil
                libmono-system-web-extensions-design4.0-cil
                libmono-system-web-extensions4.0-cil libmono-system-web-http-selfhost4.0-cil
                libmono-system-web-http-webhost4.0-cil libmono-system-web-http4.0-cil
                libmono-system-web-mvc3.0-cil libmono-system-web-razor2.0-cil
                libmono-system-web-routing4.0-cil libmono-system-web-services4.0-cil
                libmono-system-web-webpages-deployment2.0-cil
                libmono-system-web-webpages-razor2.0-cil libmono-system-web-webpages2.0-cil
                libmono-system-web4.0-cil
                libmono-system-windows-forms-datavisualization4.0a-cil
                libmono-system-windows4.0-cil libmono-system-xaml4.0-cil
                libmono-system-xml-linq4.0-cil libmono-system-xml-serialization4.0-cil
                libmono-tasklets4.0-cil libmono-web4.0-cil libmono-webmatrix-data4.0-cil
                libmono-windowsbase4.0-cil libmono-xbuild-tasks4.0-cil libmonoboehm-2.0-1
                libmonoboehm-2.0-dev libmonosgen-2.0-1 libnunit-cil-dev
                libnunit-console-runner2.6.3-cil libnunit-core-interfaces2.6.3-cil
                libnunit-core2.6.3-cil libnunit-framework2.6.3-cil libnunit-mocks2.6.3-cil
                libnunit-util2.6.3-cil libqmi-glib1 libroken18-heimdal libwebkit1.1-cil
                libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libwind0-heimdal libxfce4ui-1-0
                modemmanager mono-4.0-service mono-csharp-shell mono-jay mono-mcs mono-utils
                mono-xbuild monodoc-base monodoc-browser monodoc-manual ssl-cert
                usb-modeswitch usb-modeswitch-data xfce-keyboard-shortcuts
                Veuillez utiliser « apt-get autoremove » pour les supprimer.
                0 mis à jour, 0 nouvellement installés, 0 à enlever et 17 non mis à jour.

                I've also tried apt-get autoremove but can't validate Y/N as I'm not at home and HS console doesn't allow this. I'll give a try this evening.

                Comment


                • #9
                  I've tried "sudo apt-get autoremove" and then the other commands you sent. I've also tried the new version of the plugin.
                  Same error

                  Comment


                  • #10
                    Thanks. Did the "apt-get install mono-complete" run successfully this time?

                    I'll try to investigate further as well.
                    stefxx

                    Comment


                    • #11
                      Ok, I think I found the issue. I just build a new, clean Linux machine to test and it turns out the plugin requires mono 5.10 or higher, due to the MQTTnet library. The Zee is running 4.5.1 (based on your output from mono --version).
                      stefxx

                      Comment


                      • #12
                        Good news because the install mono-complete didn't work better.
                        Here's the version I use on the Rpi : https://shop.homeseer.com/collection...raspberry-pi-3

                        Comment


                        • #13
                          So.. would you like to upgrade to Mono 5.10? I also send you a PM with an alternate solution you can try (adding some DLLs to the bin/Worx directory).

                          Let me know!
                          stefxx

                          Comment


                          • #14
                            Very much better !!
                            After restarting the Pi, the plugin is now in the list and can be configurated.
                            I've entered my email and password for Worx. After restarting the plugin, it automatically found the model and I was abled to created all the devices.
                            But that's all : I get the following error in log every 10s and the devices never updates.
                            avr.-06 23:13:37 Worx Failed to connect: The authentication or decryption has failed.
                            avr.-06 23:13:37 Worx Worx Landroid Cloud disconnected
                            avr.-06 23:13:27 Worx Failed to connect: The authentication or decryption has failed.
                            avr.-06 23:13:27 Worx Worx Landroid Cloud disconnected
                            avr.-06 23:13:17 Worx Failed to connect: The authentication or decryption has failed.
                            avr.-06 23:13:17 Worx Worx Landroid Cloud disconnected
                            I've tried to disable the Worx plugin running on my Windows HS3 server, thinking 2 plugins couldn't address the same account at the same time : didn't solve
                            Sure my Landroid is connected because I can reach it from my Android cellular and from my Windows HS3.
                            Another difference is that the plugin on Rpi is 3.0.0.2 and on the Windows is 3.0.0.1. In case of it's the reason, I don't want to upgrade the Windows plugin for the moment.

                            Comment


                            • #15
                              So what solution did you use? Upgrade to 5.10 or adding the libraries that I send you in the PM? So I know what situation I have to reproduce.

                              Multiple plugins can run at the same time without problems, even using the same account. Also, version 3.0.0.2 only contains a very small fix for parent/child device relations, required for HomeSeer build higher then 500. It cannot be the reason for any of the issues you are experiencing.

                              Thanks for your persistence in solving this issue. We will get it to work!
                              stefxx

                              Comment

                              Working...
                              X