OmniLinkBridge to integrate Home Assistant, SmartThings, Node-RED

gette said:
 

Questions:
1 - Do you know if your Add-on works on HassOS (the Hass.io packaged with their OS)?
I read it needing some requirements and I also read that some add-ons might ot work on HassOS version.
As you mention Requirements which I am not sure I have and/or can add to my HassOS install:
".NET Framework 4.5.2 (or Mono equivalent)"
 
 
I haven't been following their changes, but it should work just fine. If you go to the Github link it has directions on how to add the add-on repo. I run Home Assistant and OmniLink Bridge on a CentOS VM with docker. The RPi is great for simplicity and is why I put the add-on together for those wanting a one-click install. You don't need to install any other dependencies. 
 
Thanks for the prompt reply.
 
Yes I did add the repo to my Add-ons previous, thank you. I hope it works on HassOS. 
 
I still have to install Mosquitto (or some MQTT broker) and then work on your Omni add-on integration.
 
In the meantime when do you think your next update to the add-on will be. No rush, just curious. As I believe you mentioned you still needed to add a few things on the next release.
 
Thank you sir!
Geo
 
Here installed a new ONVIF2MQTT plugin and integrated it to the currently configured on HA OmniLinkBridge plugin such that the automation card now includes the front doorbell video, motion sensor and doorbell sensor.  Works well these days.
 
rsw686 said:
For those running Home Assistant as a Hass.io install you can install OmniLink Bridge by adding the following add-on repository. Currently only the controller_, time_, webapi_, and mqtt_ settings are built out in the add-on configuration tool. I'm planning to add the verbose_, mysql_, mail_, prowl_, and pushover_ settings in the next release.
 
https://github.com/excaliburpartners/hassio-addons
 
Hi, I'm trying to use this method with the latest Home Assistant versione but I get an install error. The log goes:
 
20-05-31 11:02:43 INFO (SyncWorker_18) [supervisor.docker.addon] Start Docker add-on homeassistant/aarch64-addon-samba with version 9.2.0
20-05-31 11:04:29 INFO (SyncWorker_10) [supervisor.docker.addon] Start build dd784727/aarch64-addon-omnilink-bridge:1.1.8
20-05-31 11:04:34 ERROR (SyncWorker_10) [supervisor.docker.addon] Can't build dd784727/aarch64-addon-omnilink-bridge:1.1.8: The command '/bin/ash -o pipefail -c apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing && apk add --no-cache --virtual=.build-dependencies ca-certificates && cert-sync /etc/ssl/certs/ca-certificates.crt && apk del .build-dependencies' returned a non-zero code: 1
 
Can you provide some help? I believe that for non Linux users an in depth tutorial is much needed. If yoo provide help I could write one myself.
Thanks
 
.build-dependencies
 
I had the same issue updating the OmniLinkBridge in Docker on a Pine64 so went to an Intel CPU.
 
Baby steps now....
 
On the new RPi 4 do not use the HASSIO image for the RPi. Redo it and install Ubuntu 18.04 or newest Raspberian 64 bit version.
 
Upgrade and update.  Make sure you can SSH to the device and test that it works.
 
1 - Install Docker per documented instructions for Ubuntu 18.04
2 - Install Mosquitto Broker 
3 - install Mono per documented instructions for Ubuntu 18.04
4 - Install Home Assistant in Docker per documented instructions
5 - Install the OmniLinkBridge app stand alone where you have to run "mono OmniLinkBridge" to test it in the command line (follow the GitHub instructions).
 
This should work fine with newest RPi4 with 4 Gb or 8 Gb of RAM except for running the OmniLinkBridge in Docker with an ARM CPU.
 
OK, big thanks to Pete_C for supporting and helping me in this task. I managed to get everything to work correctly, so I'll share some brief notes that may help someone else. I'm not giving in depth guides, since they are very easy to find, just outline the main steps I took to go from zero to hero and some of the errors I made and provide info for a setup that certainly worked for me. Maybe I can make it into a tutorial if someone is interested. Just bear in mind that I had almost zero Linux experience before this so I can't be a very reliable source.
 
  • looks like the HASS.io store component in the github is broken: it tries to install mono on hass.io via a package that is no longer available; without mono there's no way the bridge could work;
  • I used a Raspberry Pi 4 with 2 Gb RAM and a 32 Gb SD card; although it's a 64 bit system I stick to the 32 bit version of Raspbian, in the Lite version, since the 64 bit is still in beta and I wanted no side issues and good support on troubleshooting;
  • since you'll probably want to use the Pi in headless mode (no monitor, no keyboard or mouse) remeber to add a file named "ssh" on the SD right after flashing is complete, before inserting it in the Pi, so you'll have direct access via ssh;
  • I used with success Putty for CLI interaction and WinSCP when I needed to copy/edit files on the Rasberry; just bear in mind that Linux requires higher level permission when performing some operations, but this is not always clear in the guides: if a command seems not to work you may need to prefix it with a "sudo" to execute it with root permissions; also by default most of the directories can't be written to, so you need to give yourself the necessary rights; there's plenty of guides to do so, just keep in mind that this WILL happen during your setup and be ready;
  • proceed with all the steps to install Home Assistant (I used the official HA guide HERE) until you have it up and running;
  • Proceed to install mosquitto: it's a standard package in the Raspbian repository so no need to do fancy things like some guide suggest just "sudo apt-get install mosquitto" should be enough;
  • then I installed mono as per the guide on their site BUT rememeber to install the "complete" version, while the guide tells you to install the "developer" version: you'll need some components later;
  • once mono is installed proceed to "install" OmniLinkBridge following the procedure in the OmniLinkBridge github page for "Installation Linux": that is to say prepare the *.ini file with the encrytpion keys of your system and the password and the MQTT credentials and then copy it in the suggested directory (/opt/OmniLinkBridge); please note that since the MQTT broker will be on the same machine you have no need to know the IP of the raspberry, just insert "localhost" as the address; also some things that are not clear in the instructions: if you already prepared the ini file before copying and you don't change the suggested install path, there's no need to launch the 2 vim commands, and if you're not a linux fanatic you don't need them anyway: it's just easier and quickier to do it via the WinSCP internal editor directly in place; also I think all the commands require "sudo" prefixation;
  • if you did everything right you should just run up Home assistant (follow some guide to get it running directly on boot so you don't have to launch it again manually) and it should detect your MQTT broker and the omnilink devices should be loaded up automatically. If it doesn't there are some things you can troubleshoot, my greatest problem was determining if OmniLinkBridge was running properly, just remember that you can use the "mono OmniLinkBridge.exe -i" command like in windows to make a verbose debug run from ssh. If it works form there it's just a problem of finding a way to be sure the service starts correctly. 
So now on with some things I noticed:
  • the main let down to this setup is that you won't have access to the official add-on store so further install and customization WILL be harder; this is the price to pay to get OmniLinkBridge running properly; there are some partial solutions like HACS add on, look for some guide because I find it very helpful if you're not a Linux expert;
there are some limitations with the bridge that maybe are due to my inexperience and they are:
  • the Auxiliary sensor zones are not handed over properly and they become 2 separate entities: a sensor that gives the temperature reading and a security zone that indicates if one of the hi low threshold is surpassed, but there's no way to set the thresholds. I use these as thermostats in my setup so this is a major letdown since I have no way to set temperature in the rooms;
  • user settings are not retrieved so you cannot see or change them (i used them to determine irrigation schedule and some predefined values to use in HAI macros); this is a minor inconvenience since they can be well replaced by HA automation, but still some more work to do;
  • the flags are passed on as binary sensors, that is they are either ON if the value is >0 or OFF if they're 0; again a minor letdown, I'll just have to use HA automation for that, but a little rethinking of my macros is necessary and I'm afraid some of the automation will have to be done in mixed mode, while I'd have preferred to move everything to HA leaving HAI to just command sensors and outputs on his expansions, slowly replacing my X-10 switches and modules with modern ones (I'm trying out Shelly, which looks very promising and well integrated in HA);
 I hope that with this post I give someone the detailed help I'd have needed when i started this. Thanks again to Pete for listening to my problems and help me tackle them.
 
Glad to help @tigers.
 
there are some partial solutions like HACS add on, look for some guide because I find it very helpful if you're not a Linux expert;
 
Here installed the HA Community store and it is working well with some other plugins I am using.  IE: Alexa Media
 
Recently helped a user in New Mexico that had installed HASSIO on his Synology NAS.  Issues that user had was installation of Mosquitto and configuration of MQTT inside of the HASSIO.  So here asked user to create an Ubuntu 18.04 server container and I remoted in to his configuration via SSH and installed HA and Mosquitto broker.
 
One great tool to watch your Mosquitto broker is MQTT Explorer which I use all of the time.
 
BUG: Unhandled Exception:, System.NullReferenceException: Object reference not set to an instance of an object
 
I'm not sure how much detail to go into here, so I'll try to keep it brief. I'm happy to provide more information.
 
I was having extensive problems this morning and eventually narrowed it down to these entries in the Omnilink Bridge Docker logs:
 
 

OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:42,550 INFO : CONTROLLER IS: OmniPro II (4.0B),
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:42,566 DEBUG: Retrieving named units,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:42,571 DEBUG: Waiting for system formats,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:42,635 DEBUG: Temperature format: Fahrenheit,
OmniLinkBridge.WebAPI.WebNotification: 2020-06-02 15:08:43,727 DEBUG: Restored subscriptions from file,
OmniLinkBridge.WebServiceModule: 2020-06-02 15:08:44,413 INFO : Listening on http://0.0.0.0:8000/,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:44,462 DEBUG: Waiting for named units Area,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:44,519 DEBUG: Waiting for named units Zone,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:45,707 DEBUG: Waiting for named units Thermostat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:45,766 DEBUG: Added thermostat to watch list Lower Tstat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:45,891 DEBUG: Added thermostat to watch list Upper Tstat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:45,998 DEBUG: Waiting for named units Unit,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:08:47,669 DEBUG: Connected,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:55,091 DEBUG: Waiting for named units Message,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:55,779 DEBUG: Waiting for named units Button,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:08:56,379 INFO : Unsolicited notifications enabled,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:08:56,390 DEBUG: Publishing areas,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:08:56,945 DEBUG: Publishing zones,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:08:57,443 DEBUG: Publishing units,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:08:58,415 DEBUG: Publishing thermostats,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:08:58,686 DEBUG: Publishing buttons,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:08:59,078 DEBUG: Publishing messages,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:08:59,174 DEBUG: Publishing controller online,
Unhandled Exception:,
System.NullReferenceException: Object reference not set to an instance of an object,
  at OmniLinkBridge.WebAPI.WebNotification.Send (System.String type, System.String body) [0x00010] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.WebServiceModule.Omnilink_OnThermostatStatus (System.Object sender, OmniLinkBridge.OmniLink.ThermostatStatusEventArgs e) [0x0002b] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at (wrapper delegate-invoke) System.EventHandler`1[OmniLinkBridge.OmniLink.ThermostatStatusEventArgs].invoke_void_object_TEventArgs(object,OmniLinkBridge.OmniLink.ThermostatStatusEventArgs),
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedExtendedStatus (System.Byte[] B) [0x00245] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedPackets (System.Byte[] B) [0x000f3] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at HAI_Shared.clsOmniLinkConnection.x1b3f2cf3fb2ff439 () [0x005af] in <d17c8ccd78cf47fab2001084bfe6ce05>:0 ,
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object,
  at OmniLinkBridge.WebAPI.WebNotification.Send (System.String type, System.String body) [0x00010] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.WebServiceModule.Omnilink_OnThermostatStatus (System.Object sender, OmniLinkBridge.OmniLink.ThermostatStatusEventArgs e) [0x0002b] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at (wrapper delegate-invoke) System.EventHandler`1[OmniLinkBridge.OmniLink.ThermostatStatusEventArgs].invoke_void_object_TEventArgs(object,OmniLinkBridge.OmniLink.ThermostatStatusEventArgs),
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedExtendedStatus (System.Byte[] B) [0x00245] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedPackets (System.Byte[] B) [0x000f3] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at HAI_Shared.clsOmniLinkConnection.x1b3f2cf3fb2ff439 () [0x005af] in <d17c8ccd78cf47fab2001084bfe6ce05>:0 ,
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
OmniLinkBridge.CoreServer: 2020-06-02 15:09:07,415 DEBUG: Starting up server 1.1.8.0,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:08,145 INFO : CONNECTION STATUS: Connecting,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:08,305 INFO : CONTROLLER IS: OmniPro II (4.0B),
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:08,315 DEBUG: Retrieving named units,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:08,317 DEBUG: Waiting for system formats,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:08,394 DEBUG: Temperature format: Fahrenheit,
OmniLinkBridge.WebAPI.WebNotification: 2020-06-02 15:09:09,588 DEBUG: Restored subscriptions from file,
OmniLinkBridge.WebServiceModule: 2020-06-02 15:09:10,095 INFO : Listening on http://0.0.0.0:8000/,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:10,395 DEBUG: Waiting for named units Area,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:10,440 DEBUG: Waiting for named units Zone,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:11,629 DEBUG: Waiting for named units Thermostat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:11,679 DEBUG: Added thermostat to watch list Lower Tstat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:11,877 DEBUG: Added thermostat to watch list Upper Tstat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:11,987 DEBUG: Waiting for named units Unit,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:09:14,924 DEBUG: Connected,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:21,029 DEBUG: Waiting for named units Message,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:21,819 DEBUG: Waiting for named units Button,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:09:22,368 INFO : Unsolicited notifications enabled,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:09:22,377 DEBUG: Publishing areas,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:09:22,792 DEBUG: Publishing zones,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:09:23,111 DEBUG: Publishing units,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:09:23,433 DEBUG: Publishing thermostats,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:09:23,529 DEBUG: Publishing buttons,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:09:23,565 DEBUG: Publishing messages,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:09:23,595 DEBUG: Publishing controller online,
,
Unhandled Exception:,
System.NullReferenceException: Object reference not set to an instance of an object,
  at OmniLinkBridge.WebAPI.WebNotification.Send (System.String type, System.String body) [0x00010] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.WebServiceModule.Omnilink_OnZoneStatus (System.Object sender, OmniLinkBridge.OmniLink.ZoneStatusEventArgs e) [0x00022] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at (wrapper delegate-invoke) System.EventHandler`1[OmniLinkBridge.OmniLink.ZoneStatusEventArgs].invoke_void_object_TEventArgs(object,OmniLinkBridge.OmniLink.ZoneStatusEventArgs),
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedExtendedStatus (System.Byte[] B) [0x00116] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedPackets (System.Byte[] B) [0x000f3] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at HAI_Shared.clsOmniLinkConnection.x1b3f2cf3fb2ff439 () [0x005af] in <d17c8ccd78cf47fab2001084bfe6ce05>:0 ,
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object,
  at OmniLinkBridge.WebAPI.WebNotification.Send (System.String type, System.String body) [0x00010] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.WebServiceModule.Omnilink_OnZoneStatus (System.Object sender, OmniLinkBridge.OmniLink.ZoneStatusEventArgs e) [0x00022] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at (wrapper delegate-invoke) System.EventHandler`1[OmniLinkBridge.OmniLink.ZoneStatusEventArgs].invoke_void_object_TEventArgs(object,OmniLinkBridge.OmniLink.ZoneStatusEventArgs),
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedExtendedStatus (System.Byte[] B) [0x00116] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedPackets (System.Byte[] B) [0x000f3] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at HAI_Shared.clsOmniLinkConnection.x1b3f2cf3fb2ff439 () [0x005af] in <d17c8ccd78cf47fab2001084bfe6ce05>:0 ,
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
 

 


Initially the problem occured with each "Publishing controller online." After rebooting the server I also saw it with each attempt for "Publishing areas."
 
 

OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:20:49,537 DEBUG: Waiting for system formats,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:20:49,595 DEBUG: Temperature format: Fahrenheit,
OmniLinkBridge.WebAPI.WebNotification: 2020-06-02 15:20:50,781 DEBUG: Restored subscriptions from file,
OmniLinkBridge.WebServiceModule: 2020-06-02 15:20:51,259 INFO : Listening on http://0.0.0.0:8000/,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:20:51,615 DEBUG: Waiting for named units Area,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:20:51,641 DEBUG: Waiting for named units Zone,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:20:52,852 DEBUG: Waiting for named units Thermostat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:20:52,970 DEBUG: Added thermostat to watch list Lower Tstat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:20:53,104 DEBUG: Added thermostat to watch list Upper Tstat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:20:53,211 DEBUG: Waiting for named units Unit,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:20:54,832 DEBUG: Connected,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:02,568 DEBUG: Waiting for named units Message,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:03,217 DEBUG: Waiting for named units Button,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:03,810 INFO : Unsolicited notifications enabled,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:21:03,818 DEBUG: Publishing areas,
,
Unhandled Exception:,
System.NullReferenceException: Object reference not set to an instance of an object,
  at OmniLinkBridge.WebAPI.WebNotification.Send (System.String type, System.String body) [0x00010] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.WebServiceModule.Omnilink_OnThermostatStatus (System.Object sender, OmniLinkBridge.OmniLink.ThermostatStatusEventArgs e) [0x0002b] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at (wrapper delegate-invoke) System.EventHandler`1[OmniLinkBridge.OmniLink.ThermostatStatusEventArgs].invoke_void_object_TEventArgs(object,OmniLinkBridge.OmniLink.ThermostatStatusEventArgs),
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedExtendedStatus (System.Byte[] B) [0x00245] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedPackets (System.Byte[] B) [0x000f3] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at HAI_Shared.clsOmniLinkConnection.x1b3f2cf3fb2ff439 () [0x005af] in <d17c8ccd78cf47fab2001084bfe6ce05>:0 ,
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object,
  at OmniLinkBridge.WebAPI.WebNotification.Send (System.String type, System.String body) [0x00010] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.WebServiceModule.Omnilink_OnThermostatStatus (System.Object sender, OmniLinkBridge.OmniLink.ThermostatStatusEventArgs e) [0x0002b] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at (wrapper delegate-invoke) System.EventHandler`1[OmniLinkBridge.OmniLink.ThermostatStatusEventArgs].invoke_void_object_TEventArgs(object,OmniLinkBridge.OmniLink.ThermostatStatusEventArgs),
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedExtendedStatus (System.Byte[] B) [0x00245] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedPackets (System.Byte[] B) [0x000f3] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at HAI_Shared.clsOmniLinkConnection.x1b3f2cf3fb2ff439 () [0x005af] in <d17c8ccd78cf47fab2001084bfe6ce05>:0 ,
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
OmniLinkBridge.CoreServer: 2020-06-02 15:21:06,339 DEBUG: Starting up server 1.1.8.0,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:07,003 INFO : CONNECTION STATUS: Connecting,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:07,183 INFO : CONTROLLER IS: OmniPro II (4.0B),
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:07,192 DEBUG: Retrieving named units,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:07,194 DEBUG: Waiting for system formats,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:07,272 DEBUG: Temperature format: Fahrenheit,
OmniLinkBridge.WebAPI.WebNotification: 2020-06-02 15:21:08,492 DEBUG: Restored subscriptions from file,
OmniLinkBridge.WebServiceModule: 2020-06-02 15:21:08,898 INFO : Listening on http://0.0.0.0:8000/,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:09,325 DEBUG: Waiting for named units Area,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:09,353 DEBUG: Waiting for named units Zone,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:10,531 DEBUG: Waiting for named units Thermostat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:10,620 DEBUG: Added thermostat to watch list Lower Tstat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:10,743 DEBUG: Added thermostat to watch list Upper Tstat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:10,853 DEBUG: Waiting for named units Unit,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:21:12,524 DEBUG: Connected,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:20,477 DEBUG: Waiting for named units Message,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:21,187 DEBUG: Waiting for named units Button,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:21,772 INFO : Unsolicited notifications enabled,
OmniLinkBridge.Modules.MQTTModule: 2020-06-02 15:21:21,781 DEBUG: Publishing areas,
,
Unhandled Exception:,
System.NullReferenceException: Object reference not set to an instance of an object,
  at OmniLinkBridge.WebAPI.WebNotification.Send (System.String type, System.String body) [0x00010] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.WebServiceModule.Omnilink_OnUnitStatus (System.Object sender, OmniLinkBridge.OmniLink.UnitStatusEventArgs e) [0x00015] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at (wrapper delegate-invoke) System.EventHandler`1[OmniLinkBridge.OmniLink.UnitStatusEventArgs].invoke_void_object_TEventArgs(object,OmniLinkBridge.OmniLink.UnitStatusEventArgs),
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedExtendedStatus (System.Byte[] B) [0x00389] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedPackets (System.Byte[] B) [0x000f3] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at HAI_Shared.clsOmniLinkConnection.x1b3f2cf3fb2ff439 () [0x005af] in <d17c8ccd78cf47fab2001084bfe6ce05>:0 ,
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object,
  at OmniLinkBridge.WebAPI.WebNotification.Send (System.String type, System.String body) [0x00010] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.WebServiceModule.Omnilink_OnUnitStatus (System.Object sender, OmniLinkBridge.OmniLink.UnitStatusEventArgs e) [0x00015] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at (wrapper delegate-invoke) System.EventHandler`1[OmniLinkBridge.OmniLink.UnitStatusEventArgs].invoke_void_object_TEventArgs(object,OmniLinkBridge.OmniLink.UnitStatusEventArgs),
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedExtendedStatus (System.Byte[] B) [0x00389] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at OmniLinkBridge.Modules.OmniLinkII.HandleUnsolicitedPackets (System.Byte[] B) [0x000f3] in <05fb13d8bb804c6fbe0c8b070eda6063>:0 ,
  at HAI_Shared.clsOmniLinkConnection.x1b3f2cf3fb2ff439 () [0x005af] in <d17c8ccd78cf47fab2001084bfe6ce05>:0 ,
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 ,
OmniLinkBridge.CoreServer: 2020-06-02 15:21:24,288 DEBUG: Starting up server 1.1.8.0,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:24,947 INFO : CONNECTION STATUS: Connecting,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:25,154 INFO : CONTROLLER IS: OmniPro II (4.0B),
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:25,163 DEBUG: Retrieving named units,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:25,165 DEBUG: Waiting for system formats,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:25,200 DEBUG: Temperature format: Fahrenheit,
OmniLinkBridge.WebAPI.WebNotification: 2020-06-02 15:21:26,447 DEBUG: Restored subscriptions from file,
OmniLinkBridge.WebServiceModule: 2020-06-02 15:21:26,860 INFO : Listening on http://0.0.0.0:8000/,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:27,278 DEBUG: Waiting for named units Area,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:27,326 DEBUG: Waiting for named units Zone,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:28,533 DEBUG: Waiting for named units Thermostat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:28,584 DEBUG: Added thermostat to watch list Lower Tstat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:28,704 DEBUG: Added thermostat to watch list Upper Tstat,
OmniLinkBridge.Modules.OmniLinkII: 2020-06-02 15:21:28,809 DEBUG: Waiting for named units Unit,
 


The result for me: no connectivity between Omni entities in HA and HA becomes unresponsive.

I eventually stopped the container, but once the problem begins, I believe it loops indefinitely.
 
Uhm... Why is the web service module active? And why with a strange IP like 0.0.0.0? Is config file OK? Also I see subscriptions are restored from a file. Not sure where this file is, but I'd try to delete it and have it rebuilt.
 
pete_c said:
Glad to help @tigers.
 
there are some partial solutions like HACS add on, look for some guide because I find it very helpful if you're not a Linux expert;
 
Here installed the HA Community store and it is working well with some other plugins I am using.  IE: Alexa Media
 
Recently helped a user in New Mexico that had installed HASSIO on his Synology NAS.  Issues that user had was installation of Mosquitto and configuration of MQTT inside of the HASSIO.  So here asked user to create an Ubuntu 18.04 server container and I remoted in to his configuration via SSH and installed HA and Mosquitto broker.
 
One great tool to watch your Mosquitto broker is MQTT Explorer which I use all of the time.
Yes, HACS works pretty good, but it's nowhere as good as the add-on repository in hass.io.
MQTT explorer is of course a great tool, I forgot to mention it, but as a not expert in MQTT it confused me a little at first, because it looked like everything was OK, while OmniLinkBridge was in fact not running. Still a must have to debug MQTT transmission.
Now I have to figure out if I can rework my heating automation to work without using the threshold in the auxiliary sensors, unless there's someone good enough to modify OmniLinkBridge.
 
Just a guesstimate and I am not an expert here.
 
try making this change:
 
verbose_thermostat_timer = no
verbose_thermostat = no
 
and
 

mqtt_discovery_ignore_zones = 16 or whatever is there?
 

There is a user here using HASSIO / OmniLinkBridge which I recalling now that I helped last year??
 
Yeah here just went with everything in Docker.
 
@grantlewis,
 
What are you running your OmniLinkBridge app on? 
 
Intel or Arm (RPi) CPU?
 
Home Assistant in Docker?
 
HASSIO on the RPi?
 
Mac Mini, Ubuntu 64 running HA in Docker. Here's info from my System Health:
 
mWA7VDY.png
 
Back
Top