Announcement

Collapse
No announcement yet.

Gateway showing as 'Unauthorised'

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

    #61
    Thanks... that sounds like it might be a good solution. For now, just getting the plugin working would be great. There is also huge ire at the Ikea software, which makes HSS look cutting-edge... absolute shambles that randomly reconfigures and forgets the system, and then denies all knowledge of anything. Support from Ikea when £1000 worth of stuff stops working is ‘Oh, that’s an internet thing isn’t it? Sorry. No idea. Take it back, maybe?’

    HS4 probably won’t be happening by default after this. I’m frankly going to look at Home Assistant when I get some time. If I’m going to have to mess about with things, I may as well get my hands dirty, and it seems way more flexible. Imagine having a mobile interface that propagates across users? Madness.

    So yes. If you’d be happy to bung some DLLs over, I’d happily receive them. And pony up for the plug-in!

    Comment


      #62
      Originally posted by rahaaas View Post
      Thanks... that sounds like it might be a good solution. For now, just getting the plugin working would be great. There is also huge ire at the Ikea software, which makes HSS look cutting-edge... absolute shambles that randomly reconfigures and forgets the system, and then denies all knowledge of anything. Support from Ikea when £1000 worth of stuff stops working is ‘Oh, that’s an internet thing isn’t it? Sorry. No idea. Take it back, maybe?’
      I tried to contact Björn Block Global Business Area Manager - IKEA Home smart på Inter IKEA Group (and a few other partnership emails I found) - they simply don't reply - which I find very rude. If not interested - just say so. But I will try pushing IKEA from any way I can find.

      Regarding Home Assistant - before choosing HS I also looked at free automation software, inc. OpenHAB, Domoticz, etc. I found they take too much tinkering, and most integration created by enthusiasts, not Software Engineers. But it was a few years ago, now Home Assistant is way more popular.

      Regarding the system dlls - I need to think where to start. It looks like you have ver. 4.5 - but I'm not sure if it's Mono version or .NET version?

      Can please you check "mono --version" and "ls /usr/lib/mono/"


      Comment


        #63
        They’re obviously going through a huge reorg at the moment. Lots of promises. I guess we’ll see!

        Output from mono --version:

        Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)

        Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com

        TLS: __thread

        SIGSEGV: altstack

        Notifications: epoll

        Architecture: x86

        Disabled: none

        Misc: softdebug

        LLVM: supported, not enabled.

        GC: sgen

        Comment


          #64
          And yes. Also been through Domoticz, OpenHAB etc. A lot of tinkering. I suspect a hybrid approach will be the way. Bit of tinkering, but something solid for when I just want to turn the lights off...

          Comment


            #65
            What do you have in "ls /usr/lib/mono/"?

            Comment


              #66
              We have:

              2.0 4.0 aot-cache gac monodoc xbuild-frameworks

              3.5 4.5 compat-2.0 mono-configuration-crypto xbuild


              2.0 contains:

              Accessibility.dll PEAPI.dll

              al.exe RabbitMQ.Client.Apigen.exe

              Commons.Xml.Relaxng.dll RabbitMQ.Client.dll

              cscompmgd.dll resgen.exe

              culevel.exe System.ComponentModel.DataAnnotations.dll

              CustomMarshalers.dll System.Configuration.dll

              gacutil.exe System.Configuration.Install.dll

              genxs.exe System.Core.dll

              I18N.CJK.dll System.Data.DataSetExtensions.dll

              I18N.dll System.Data.dll

              I18N.MidEast.dll System.Data.Linq.dll

              I18N.Other.dll System.Data.OracleClient.dll

              I18N.Rare.dll System.Data.Services.Client.dll

              I18N.West.dll System.Data.Services.dll

              ICSharpCode.SharpZipLib.dll System.Design.dll

              ilasm.exe System.DirectoryServices.dll

              Microsoft.Build.Engine.dll System.DirectoryServices.Protocols.dll

              Microsoft.Build.Framework.dll System.dll

              Microsoft.Build.Tasks.dll System.Drawing.Design.dll

              Microsoft.Build.Utilities.dll System.Drawing.dll

              Microsoft.Build.xsd System.EnterpriseServices.dll

              Microsoft.Common.targets System.IdentityModel.dll

              Microsoft.Common.tasks System.IdentityModel.Selectors.dll

              Microsoft.CSharp.targets System.Json.dll

              Microsoft.VisualBasic.dll System.Management.dll

              Microsoft.VisualBasic.targets System.Messaging.dll

              Microsoft.VisualC.dll System.Net.dll

              mkbundle.exe System.Runtime.Remoting.dll

              Mono.Cairo.dll System.Runtime.Serialization.dll

              Mono.CompilerServices.SymbolWriter.dll System.Runtime.Serialization.Formatters.Soap.dll

              Mono.Data.Sqlite.dll System.Security.dll

              Mono.Data.Tds.dll System.ServiceModel.dll

              Mono.Debugger.Soft.dll System.ServiceModel.Web.dll

              Mono.Http.dll System.ServiceProcess.dll

              monolinker.exe System.Transactions.dll

              Mono.Management.dll System.Web.Abstractions.dll

              Mono.Messaging.dll System.Web.dll

              Mono.Messaging.RabbitMQ.dll System.Web.DynamicData.dll

              monop.exe System.Web.Extensions.Design.dll

              Mono.Posix.dll System.Web.Extensions.dll

              Mono.Security.dll System.Web.Mvc.dll

              mono-service.exe System.Web.Routing.dll

              Mono.Simd.dll System.Web.Services.dll

              Mono.Tasklets.dll System.Windows.Forms.dll

              Mono.WebBrowser.dll System.Xml.dll

              Mono.Web.dll System.Xml.Linq.dll

              Mono.XBuild.Tasks.dll WindowsBase.dll

              MSBuild wsdl.exe

              mscorlib.dll xbuild.exe

              Novell.Directory.Ldap.dll xbuild.exe.config

              Npgsql.dll xbuild.rsp

              OpenSystem.C.dll xsd.exe



              3.5 contains:

              Microsoft.Build.Engine.dll Microsoft.Common.targets MSBuild

              Microsoft.Build.Framework.dll Microsoft.Common.tasks xbuild.exe

              Microsoft.Build.Tasks.v3.5.dll Microsoft.CSharp.targets xbuild.exe.config

              Microsoft.Build.Utilities.v3.5.dll Microsoft.VisualBasic.targets xbuild.rsp

              Microsoft.Build.xsd Mono.XBuild.Tasks.dll

              homeseer@hometrollerSEL:~$

              homeseer@hometrollerSEL:~$ ls /usr/lib/mono/3.5

              Microsoft.Build.Engine.dll Microsoft.Common.targets MSBuild

              Microsoft.Build.Framework.dll Microsoft.Common.tasks xbuild.exe

              Microsoft.Build.Tasks.v3.5.dll Microsoft.CSharp.targets xbuild.exe.config

              Microsoft.Build.Utilities.v3.5.dll Microsoft.VisualBasic.targets xbuild.rsp

              Microsoft.Build.xsd Mono.XBuild.Tasks.dll

              Comment


                #67
                Thank you.

                BTW, just FYI you can use "ls -R" for recursive

                Comment


                  #68
                  I suspected there’d be a switch for that! Thanks.

                  Comment


                    #69
                    Please try vet 3.0.0.27 (BETA)

                    Comment


                      #70
                      Code:
                       [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#FF0000]Apr-26 14:59:16[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#FF0000]AK Ikea ERROR[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#FF0000][163]: Request failed() : /15004[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#FF0000]Apr-26 14:59:16[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#FF0000]AK Ikea ERROR[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#FF0000][163]: ERROR MakeRequest(/15001): System.ArgumentNullException: Argument cannot be null. Parameter name: s
                      			at System.Text.Encoding.GetBytes (System.String s) [0x00000] in :0
                      			at Tradfri.TradfriController.MakeDTLSClientEndPoint (System.String Octet_k, System.String KeyIdentifier) [0x00000] in :0
                      			at Tradfri.TradfriController.ConnectAppKey (System.String appKey, System.String appName) [0x00000] in :0
                      			at Tradfri.TradfriController.ConnectAppKey () [0x00000] in :0
                      			at Tradfri.TradfriController+d__41.MoveNext () [0x00000] in :0
                      			-- End of stack trace from previous location where exception was thrown ---
                      			at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0
                      			at System.Runtime.CompilerServices.TaskAwaiter`1[System.String].GetResult () [0x00000] in :0
                      			at Tradfri.TradfriController+d__39.MoveNext () [0x00000] in :0
                      			--- End of stack trace from previous location where exception was thrown ---
                      			at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0
                      			at System.Runtime.CompilerServices.TaskAwaiter`1[System.String].GetResult () [0x00000] in :0
                      			at Tradfri.TradfriController+d__37`1[System.Collections.Generic.List`1[System.Int64]].MoveNext () [0x00000] in :0 [/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#FF0000]Apr-26 14:59:16[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#FF0000]AK Ikea ERROR[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#FF0000][163]: Request failed() : /15001[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#FF0000]Apr-26 14:59:15[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#FF0000]AK Ikea ERROR[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#FF0000][163]: ConnectGateway: System.MissingMethodException: Method not found: 'System.Array.Empty'.
                      			at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.S erializeConvertable (Newtonsoft.Json.JsonWriter writer, Newtonsoft.Json.JsonConverter converter, System.Object value, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in :0
                      			at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.S erializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in :0
                      			at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.S erializeObject (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in :0 [/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#D58000]Apr-26 14:59:10[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#D58000]AK Ikea Warning[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#D58000][163]: [newIkea] New Receiver (127.0.0.1): Setting new IP address: 192.168.1.97:80[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#000000]Apr-26 14:58:46[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#000000]AK Ikea[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#000000][0]: * Set Ikea [newIkea] New Receiver (127.0.0.1) (HSPI_AKIkea.DeviceIkeaBridge) Same: False[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#000000]Apr-26 14:58:46[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#000000]AK Ikea[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#000000]Saved device: newIkea (newIkea), id: Unknown, url: 127.0.0.1:80[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#D58000]Apr-26 14:58:42[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#D58000]AK Ikea Warning[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#D58000]Running on 'linux' - using Locator.MonoZeroconf.DeviceLocator[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#FF0000]Apr-26 14:58:42[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#FF0000]AK Ikea ERROR[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#FF0000]Locator.MonoZeroconf.DeviceLocator: FATAL CreateListener: No Zeroconf providers could be found or initialized. Necessary daemon may not be running.[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#000000]Apr-26 14:58:42[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#000000]Plug-In[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#000000]Finished initializing plug-in AK Ikea[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#000000]Apr-26 14:58:42[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#000000]Starting Plug-In[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#000000]AK Ikea loaded in 2821 milliseconds[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#000000]Apr-26 14:58:42[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#000000]Starting Plug-In[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#000000]Plugin AK Ikea started successfully in 875 milliseconds[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#000000]Apr-26 14:58:42[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#000000]AK Ikea[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#000000]UpdateConfiguration: scheduled[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#000000]Apr-26 14:58:41[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#000000]Starting Plug-In[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#000000]Initializing plugin AK Ikea ...[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]
                      [TABLE="cellspacing: 0"]
                      [TR]
                      [TD="align: left"][COLOR=#000000]Apr-26 14:58:41[/COLOR][/TD]
                       			[TD="align: left"] [/TD]
                       			[TD="colspan: 3, align: left"][COLOR=#000000]Info[/COLOR][/TD]
                       			[TD="colspan: 8, align: left"][COLOR=#000000]Plugin AK Ikea has connected. IP:127.0.0.1:51122[/COLOR][/TD]
                       		[/TR]
                      [/TABLE]

                      Comment


                        #71
                        Still the same Method not found: 'System.Array.Empty' - meaning that you have .NET 4.5 (max) - but minimum required 4.6 - not sure what I can do here... need to think

                        Regarding No Zeroconf providers could be found - did you check if you have avahi-daemon installed and started?

                        Comment


                          #72
                          ver 3.0.0.28 - Build Newtonsoft.Json.dll from source to target .NET 4.5

                          Comment


                            #73
                            Right. So. Took a look at the HSS script. Had some typos and insufficient permissions. Ran each stage manually... and it worked. Now on 5.20.1.19.

                            The install was still whinging about an incomplete XSP4 install, but plug-in runs without error and, this time, Events seem to have re-imported correctly.

                            Seems to have broken the Sonos integration... but that’s a struggle for another day...

                            While it would be nice to get something working for people who can’t get upgraded (and who knows whether other things will now be broken and cause me to roll-back again), I’m minded to just wait it out for the HS4 apocalypse.

                            Thanks again for all your work in trying to figure it out. Really highlights some of the fundamental problems with the platform, and particularly the relationship with Linux.

                            Comment


                              #74
                              Originally posted by rahaaas View Post
                              Thanks again for all your work in trying to figure it out. Really highlights some of the fundamental problems with the platform, and particularly the relationship with Linux.
                              I think it mostly highlights HST lack of attitude and customer service.

                              Comment


                                #75
                                So I guess you didn't have a chance to test ver 3.0.0.28?

                                Comment

                                Working...
                                X