Version 1.1.15 released

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

Looks to me like the database error mentioned earlier.

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.

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

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.

@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.

ā€œ. 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:

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.

do you get the issue without doing a restore?

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.

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.

@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

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.

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.

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

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.

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

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.

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.

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.