Version 1.1.15 released


#41

Yup, that found 2 errors. The second is the fatal one though.

2018-02-08 07:02:38.2004 Debug Adding Gateway WebServiceGateway
2018-02-08 07:02:38.2043 Debug Setting Gateway options
2018-02-08 07:02:38.2065 Debug WebServiceGateway: BaseUrl=/hg/html
2018-02-08 07:02:38.2097 Debug WebServiceGateway: HomePath=html
2018-02-08 07:02:38.2100 Debug WebServiceGateway: Host=+
2018-02-08 07:02:38.2100 Debug WebServiceGateway: Port=80
2018-02-08 07:02:38.2100 Debug WebServiceGateway: Username=admin
2018-02-08 07:02:38.2100 Debug WebServiceGateway: Password=
2018-02-08 07:02:38.2100 Debug WebServiceGateway: HttpCacheIgnore.1=^.*\/pages\/control\/widgets\/.*\.(js|html)$
2018-02-08 07:02:38.2114 Debug WebServiceGateway: HttpCacheIgnore.2=^.*\/html\/index.html
2018-02-08 07:02:38.2114 Debug WebServiceGateway: UrlAlias.1=api/HomeAutomation.HomeGenie/Logging/RealTime.EventStream:events
2018-02-08 07:02:38.2123 Debug WebServiceGateway: UrlAlias.2=hg/html/pages/control/widgets/homegenie/generic/images/socket_on.png:hg/html/pages/control/widgets/homegenie/generic/images/switch_on.png
2018-02-08 07:02:38.2123 Debug WebServiceGateway: UrlAlias.3=hg/html/pages/control/widgets/homegenie/generic/images/socket_off.png:hg/html/pages/control/widgets/homegenie/generic/images/switch_off.png
2018-02-08 07:02:38.2123 Debug WebServiceGateway: UrlAlias.4=hg/html/pages/control/widgets/homegenie/generic/images/siren.png:hg/html/pages/control/widgets/homegenie/generic/images/siren_on.png
2018-02-08 07:02:38.2123 Debug WebServiceGateway: EnableFileCaching=false
2018-02-08 07:02:38.2236 Debug Adding Interface Protocols.UPnP Version: 1.0.5800.25495
2018-02-08 07:02:38.2263 Debug Setting Interface options
2018-02-08 07:02:38.2841 Debug Adding Interface HomeAutomation.ZWave Version: 1.0.6439.27471
2018-02-08 07:02:38.2855 Debug Setting Interface options
2018-02-08 07:02:38.2877 Trace HomeAutomation.ZWave: Port=
2018-02-08 07:02:38.3289 Debug Adding Interface HomeAutomation.X10 Version: 1.0.6439.27471
2018-02-08 07:02:38.3301 Debug Setting Interface options
2018-02-08 07:02:38.3388 Trace HomeAutomation.X10: Port=
2018-02-08 07:02:38.3395 Trace HomeAutomation.X10: HouseCodes=A
2018-02-08 07:02:39.0614 Info HomeAutomation.HomeGenie.Automation       6       Automation Program      Program.StatusAdded
2018-02-08 07:02:39.0975 Info HomeAutomation.HomeGenie.Automation       7       Automation Program      Program.StatusAdded
2018-02-08 07:02:39.0993 Info HomeAutomation.HomeGenie.Automation       16      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1011 Info HomeAutomation.HomeGenie.Automation       26      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1031 Info HomeAutomation.HomeGenie.Automation       34      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1064 Info HomeAutomation.HomeGenie.Automation       73      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1084 Info HomeAutomation.HomeGenie.Automation       74      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1104 Info HomeAutomation.HomeGenie.Automation       75      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1123 Info HomeAutomation.HomeGenie.Automation       82      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1140 Info HomeAutomation.HomeGenie.Automation       84      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1163 Error HomeAutomation.HomeGenie Service.Utility.RunAsyncTask    Object reference not set to an instance of an object.  Exception.StackTrace      at HomeGenie.Automation.ProgramManager.RoutePropertyBeforeChangeEvent (System.Object eventData) [0x0003c] in <8d43297479e340b0bc2b2a967fada7ef>:0
  at HomeGenie.Automation.ProgramManager.SignalPropertyChange (System.Object sender, HomeGenie.Data.Module module, MIG.MigEvent eventData) [0x00029] in <8d43297479e340b0bc2b2a967fada7ef>:0
  at HomeGenie.Service.HomeGenieService+<>c__DisplayClass65_0.<migService_InterfacePropertyChanged>b__1 () [0x00001] in <8d43297479e340b0bc2b2a967fada7ef>:0
  at HomeGenie.Service.Utility+<>c__DisplayClass23_0.<RunAsyncTask>b__0 () [0x00002] in <8d43297479e340b0bc2b2a967fada7ef>:0
2018-02-08 07:02:39.1172 Info HomeAutomation.HomeGenie.Automation       90      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1187 Info HomeAutomation.HomeGenie.Automation       91      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1206 Info HomeAutomation.HomeGenie.Automation       112     Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1222 Info HomeAutomation.HomeGenie.Automation       142     Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1238 Info HomeAutomation.HomeGenie.Automation       180     Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1257 Info HomeAutomation.HomeGenie.Automation       200     Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1274 Info HomeAutomation.HomeGenie.Automation       81      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1290 Info HomeAutomation.HomeGenie.Automation       93      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1308 Info HomeAutomation.HomeGenie.Automation       76      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1334 Info HomeAutomation.HomeGenie.Automation       145     Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1353 Info HomeAutomation.HomeGenie.Automation       77      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1369 Info HomeAutomation.HomeGenie.Automation       8       Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1385 Info HomeAutomation.HomeGenie.Automation       78      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1417 Info HomeAutomation.HomeGenie.Automation       505     Automation Program      Program.StatusAdded
2018-02-08 07:02:39.1433 Info HomeAutomation.HomeGenie.Automation       29      Automation Program      Program.StatusAdded
2018-02-08 07:02:39.3613 Info HomeAutomation.HomeGenie.Automation       400     Automation Program      Program.StatusAdded
2018-02-08 07:02:39.3644 Info HomeAutomation.HomeGenie.Automation       401     Automation Program      Program.StatusAdded
2018-02-08 07:02:39.3744 Info HomeAutomation.HomeGenie.Automation       402     Automation Program      Program.StatusAdded
2018-02-08 07:02:39.3776 Info HomeAutomation.HomeGenie.Automation       403     Automation Program      Program.StatusAdded
2018-02-08 07:02:39.3806 Info HomeAutomation.HomeGenie.Automation       404     Automation Program      Program.StatusAdded
2018-02-08 07:02:39.4765 Info HomeAutomation.HomeGenie.Automation       6       Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4779 Info HomeAutomation.HomeGenie.Automation       7       Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4794 Info HomeAutomation.HomeGenie.Automation       16      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4809 Info HomeAutomation.HomeGenie.Automation       26      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4822 Info HomeAutomation.HomeGenie.Automation       34      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4838 Info HomeAutomation.HomeGenie.Automation       82      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4853 Info HomeAutomation.HomeGenie.Automation       84      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4867 Info HomeAutomation.HomeGenie.Automation       90      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4881 Info HomeAutomation.HomeGenie.Automation       91      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4895 Info HomeAutomation.HomeGenie.Automation       142     Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4910 Info HomeAutomation.HomeGenie.Automation       180     Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4923 Info HomeAutomation.HomeGenie.Automation       81      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.4936 Info HomeAutomation.HomeGenie.Automation       93      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.5081 Info HomeAutomation.HomeGenie.Automation       34      Automation Program      Program.StatusSetup
2018-02-08 07:02:39.5105 Info HomeAutomation.HomeGenie.Automation       145     Automation Program      Program.StatusIdle
2018-02-08 07:02:39.5188 Info HomeAutomation.HomeGenie.Automation       93      Automation Program      Program.StatusRunning
2018-02-08 07:02:39.5232 Info HomeAutomation.HomeGenie.Automation       84      Automation Program      Program.StatusRunning
2018-02-08 07:02:39.5291 Info HomeAutomation.HomeGenie.Automation       16      Automation Program      Program.StatusRunning
2018-02-08 07:02:39.5316 Info HomeAutomation.HomeGenie.Automation       82      Automation Program      Program.StatusRunning
2018-02-08 07:02:39.5350 Info HomeAutomation.HomeGenie.Automation       180     Automation Program      Program.StatusSetup
2018-02-08 07:02:39.5373 Info HomeAutomation.HomeGenie.Automation       91      Automation Program      Program.StatusRunning
2018-02-08 07:02:39.5383 Info HomeAutomation.HomeGenie.Automation       7       Automation Program      Program.StatusSetup
2018-02-08 07:02:39.5383 Info HomeAutomation.HomeGenie.Automation       145     Automation Program      Program.StatusRunning
2018-02-08 07:02:39.5394 Info HomeAutomation.HomeGenie.Automation       8       Automation Program      Program.StatusIdle
2018-02-08 07:02:39.5493 Info HomeAutomation.HomeGenie.Automation       16      Automation Program      Program.StatusBackground
2018-02-08 07:02:39.5518 Info HomeAutomation.HomeGenie.Automation       82      Automation Program      Program.StatusBackground
2018-02-08 07:02:39.5529 Info HomeAutomation.HomeGenie.Automation       84      Automation Program      Program.StatusBackground
2018-02-08 07:02:39.5652 Info HomeAutomation.HomeGenie.Automation       78      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.5667 Info HomeAutomation.HomeGenie.Automation       505     Automation Program      Program.StatusIdle
2018-02-08 07:02:39.5694 Info HomeAutomation.HomeGenie.Automation       29      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.5725 Info HomeAutomation.HomeGenie.Automation       400     Automation Program      Program.StatusIdle
2018-02-08 07:02:39.5772 Info HomeAutomation.HomeGenie.Automation       401     Automation Program      Program.StatusIdle
2018-02-08 07:02:39.5813 Info HomeAutomation.HomeGenie.Automation       91      Automation Program      Program.StatusBackground
2018-02-08 07:02:39.5864 Info HomeAutomation.HomeGenie.Automation       93      Automation Program      Program.StatusBackground
2018-02-08 07:02:39.5909 Info HomeAutomation.HomeGenie.Automation       402     Automation Program      Program.StatusIdle
2018-02-08 07:02:39.5930 Info HomeAutomation.HomeGenie.Automation       403     Automation Program      Program.StatusIdle
2018-02-08 07:02:39.5945 Info HomeAutomation.HomeGenie.Automation       404     Automation Program      Program.StatusIdle
2018-02-08 07:02:39.6087 Debug Starting Gateway WebServiceGateway
2018-02-08 07:02:39.6328 Info HomeAutomation.HomeGenie.Automation       26      Automation Program      Program.StatusRunning
2018-02-08 07:02:39.6347 Info HomeAutomation.HomeGenie.Automation       6       Automation Program      Program.StatusSetup
2018-02-08 07:02:39.6494 Info HomeAutomation.HomeGenie.Automation       26      Automation Program      Program.StatusBackground
2018-02-08 07:02:39.6750 Info HomeAutomation.HomeGenie.Automation       29      Automation Program      Program.StatusRunning
2018-02-08 07:02:39.6773 Info HomeAutomation.HomeGenie.Automation       505     Automation Program      Program.StatusRunning
2018-02-08 07:02:39.6797 Info HomeAutomation.HomeGenie.Automation       8       Automation Program      Program.StatusSetup
2018-02-08 07:02:39.6823 Info HomeAutomation.HomeGenie.Automation       78      Automation Program      Program.StatusRunning
2018-02-08 07:02:39.6886 Info HomeAutomation.HomeGenie.Automation       505     Automation Program      Program.StatusBackground
2018-02-08 07:02:39.7792 Info HomeAutomation.HomeGenie.Automation       34      Automation Program      Program.StatusIdle
2018-02-08 07:02:39.7806 Info HomeAutomation.HomeGenie.Automation       34      Automation Program      Program.StatusRunning
2018-02-08 07:02:39.7815 Info HomeAutomation.HomeGenie.Automation       142     Automation Program      Program.StatusRunning
2018-02-08 07:02:39.8433 Info HomeAutomation.HomeGenie.Automation       90      Automation Program      Program.StatusRunning
2018-02-08 07:02:39.8469 Info HomeAutomation.HomeGenie.Automation       7       Automation Program      Program.StatusIdle
2018-02-08 07:02:39.8508 Info HomeAutomation.HomeGenie.Automation       6       Automation Program      Program.StatusIdle
2018-02-08 07:02:39.8703 Debug Disabling Interface Protocols.UPnP
2018-02-08 07:02:39.8809 Debug Disabling Interface HomeAutomation.ZWave
2018-02-08 07:02:39.8864 Debug Disabling Interface HomeAutomation.X10
2018-02-08 07:02:39.8976 Info HomeAutomation.HomeGenie.Automation       90      Security System HomeGenie.SecurityArmedDisarmed
2018-02-08 07:02:39.8992 Info HomeAutomation.HomeGenie  0       HomeGenie service ready SystemInfo.HttpAddress  +:80
2018-02-08 07:02:39.9023 Info HomeAutomation.HomeGenie.Automation       81      Automation Program      Program.StatusRunning
2018-02-08 07:02:39.9374 Info HomeAutomation.HomeGenie.Automation       8       Automation Program      Program.StatusIdle
2018-02-08 07:02:39.9457 Info HomeAutomation.HomeGenie.Automation       180     Automation Program      Program.StatusIdle
2018-02-08 07:02:39.9543 Error HomeAutomation.HomeGenie Service.StatisticsLogger        Database Error  Exception.StackTrace   SQLite.Interop.dll:   at (wrapper managed-to-native) System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(System.Data.SQLite.SQLiteConfigOpsEnum)
  at System.Data.SQLite.SQLite3.StaticIsInitialized () [0x0001d] in <9ce7d8410bcd4d7f88eed4557d443345>:0
  at System.Data.SQLite.SQLiteLog.Initialize () [0x00000] in <9ce7d8410bcd4d7f88eed4557d443345>:0
  at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString, System.Boolean parseViaFramework) [0x00013] in <9ce7d8410bcd4d7f88eed4557d443345>:0
  at System.Data.SQLite.SQLiteConnection..ctor (System.String connectionString) [0x00000] in <9ce7d8410bcd4d7f88eed4557d443345>:0
  at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteConnection..ctor(string)
  at HomeGenie.Service.Logging.StatisticsLogger.OpenStatisticsDatabase () [0x00023] in <8d43297479e340b0bc2b2a967fada7ef>:0
2018-02-08 07:02:39.9923 Info HomeAutomation.HomeGenie.Automation       29      Automation Program      Program.StatusBackground
2018-02-08 07:02:40.2390 Info HomeAutomation.HomeGenie.Automation       400     Automation Program      Program.StatusRunning
2018-02-08 07:02:40.2504 Error HomeAutomation.HomeGenie Trapper Unhandled Exception     Error.Exception System.BadImageFormatException: Could not resolve field token 0x04000047, due to: Could not load type of field 'HomeGenie.Service.Updates.UpdateChecker:HttpClient' (5) due to: Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type:<unknown type> member:<none> assembly:/usr/local/bin/homegenie/HomeGenie.exe type:UpdateChecker member:<none>
File name: 'HomeGenie'
  at HomeGenie.Service.HomeGenieService..ctor () [0x0009b] in <8d43297479e340b0bc2b2a967fada7ef>:0
  at HomeGenie.Program.Main (System.String[] args) [0x0003f] in <8d43297479e340b0bc2b2a967fada7ef>:0

#42

Looks to me like the database error mentioned earlier.


#43

I’m going through all the steps again and it looks like the mono installation and/or HG installation steps are the issue. I’m going to try one more time from scratch in case I missed something, but it looks like stretch is complaining that mono isn’t installed and/or some other dependency isn’t properly addressed.

EDIT: Well, I’m still stumped. I tried a few things and they still produce an unstable system that can’t run HG. I’m tempted to throw in the towel and go back to Jessie since I know it works for me. I’d rather use Stretch since it’s current, but if I can’t get mono or HG installed and running, I’m not sure what to do.


#44

I installed mono-complete in the past but was trying the version posted here to this point. I’ve done some looking and it appears others are still using it, so tomorrow’s attempt will be that.

sudo apt-get install mono-complete -y


#45

I wouldnt have thought its your mono install… but it looks like there are two issues,

firstly It cant open the statistics database:

If you copy the db file off the machine can you open it on say a windows machine with tools for opening sqllite databases? - just to prove its not corrupt?

it also then fails to find System.Net.Http - which will stop it dead as the web server wont launch…

daft as it is, if there is a system.net.http file in the install folder… try renaming /deleting it.


#46

@bkenobi the installation steps I posted above are similar to the ones you posted on the old forum with the exception of using Stretch Lite and the latest Mono release repository.

HG is booting fine here.

As I mentioned in an earlier post, HG was not fully tested on Jessie and not at all on Stretch. I’ve a funny feeling that most of the remaining users of HG on the Raspberry Pi are still running on Wheezy without bothering with updates or possibly a few on Jessie. So much for HG being a finished product.

Did you do anything different to the steps I posted above.


#47

“. So much for HG being a finished product.”

This sort of thing isn’t really helping… as it depends on what you define as finished? - find a version that you like on an OS that works and stick with it… Upgrade only when you need a bug fix or a specific version… if you are bothered…

I run a seperate dev/test box for exactly these purposes - and keep meaning to forward events from my live system to this one to prove that it works as expected (I dont use zWave)

Anyway…

I’ve been running on jessie for ages and posted instructions on the old forum.

I am testing it on Stretch and not had many issues yet… Given this is a new fork with a new automated / build release all I can do is urge you to be a little bit more patient… if your not patient, then dont run it on an as yet ‘untested’ OS ?

but the new installer and debian packages may take a little time in tweaking them… which your welcome to submit PR’s for :slight_smile:


#48

I tried running the posted instructions twice with the same result. I tried with a modified version of my instructions last night, too. I’m thinking the issue is mono related as i get same issue with 526. I should try 525 with my restore though as I have that working on my RPi1.


#49

do you get the issue without doing a restore?


#50

This won’t help, problem is because of missing SQLite native libraries for Linux which weren’t packed during AppVeyor build of Windows solution.

Right now I think it’s better not to hurry with releases of this separate fork or use it only on Windows.


#51

Well that’s me out Bounz. I don’t use Windows.

Why are people trying to do separate forks on the project. This is just causing further confusion.

I have your version of HG running on a Raspberry Pi 3 under Debian Stretch and Mono 5.4. I’ve no issues with it other than not being able to get the Raspberry Pi camera module working. I’ve already posted this issue elsewhere but as of yet have not resolved this issue.

My gut instinct is that Gene used the old v4l-1.1 driver when originally developing this feature and never modified it to work with v4l2. There’s some historical postings on the old forum on this matter but Gene never addressed the issue.


#52

@bkenobi I just completed a fresh install of Raspbian Stretch Lite, installed Mono 5.4 complete as per my instruction above and all is working fine. What does the mono —version command report from your system.

I’m assuming you installed dirmngr prior to trying the mono key ring and did the sudo apt-get update before you attempted to install Mono complete


#53

I’ll try another fresh install tonight. From memory, after installing mono and prior to insralling HG, mono is not present. I assumed the mono install steps would add the dependency or something. I’m a novice at Linux admin, so this is new territory.


#54

If memory serves me correctly Mono 4 or possibly Mono 3 is the standard version in the Raspbian repository. Always a little behind when it comes to Debian

The main thing to do is after you’ve installed Raspbian Stretch Lite and done the usual sudo apt update and upgrade is install dirmngr, add the key ring from the Mono project for Stretch then do the sudo apt update BEFORE you attempt to install Mono complete otherwise you end up with the Raspbian repository version of Mono.

Hopefully this will get you up running.


#55

I’ll check again, but I believe 5.4.x is installed. My RPi1 is running 3.2.8 on Jessie.


#56

Do you have a Pi2 on hand you can try as well.

I’ve a Pi2 which I’ve tested with Wheezy, Jessie and Stretch running HG. Wheezy is EOL so it’s not really relevant now. Jessie and Stretch are running fine on it and the Pi3

I’m thinking of reverting back to the v526 to ensure all of the relevant packages were picked up for Linux.

To be honest I parked up HG a few months back owing to the old forum ceasing operation. I’ve tried it again with Stretch just to see if it was still operational. I’ll give it a bit more time to see how things develop.


#57

Hello
I am using the new fork on Ubuntu. After realising I had to install mono first, it seams to be working well.

(Just changed from windows, and the instructions https://bounz.github.io/HomeGenie-BE/#/get_started could be improved but do work)

IanR


#58

I have an RPi1 running Jessie and 525 which works fine. I bought a RPi3 because people here said the extra power makes the interface much faster. I figured if I install from scratch anyway, I might as well use the most up to date software. If that doesn’t work out, I’ll try Jessie with 525 or 526.

I’m also planning on checking out Domoticz among others. I have a lot onvested in HG and plan on using it going forward, but that doesn’t mean I shouldn’t know the alternatives.


#59

Great minds think alike lol. I’ve just set up Domoticz and it’s running X10 via the CM11 controller. I haven’t tried anything else on it but it’s looking promising with a solid community behind it. Like yourself I’m keeping an eye to HG to see where it might be going.


#60

I looked at Domoticz before HG but when I tried it at that time it didn’t work smoothly. I think it was related to the installation on the RPi. HG had a ready-built image that could be extracted to a SD card and I was up and running. I suspect I’d have a much easier time getting up and running on any RPi HA software today.