Skip to content

v1.4-alpha.9

Pre-release
Pre-release
Compare
Choose a tag to compare
@genemars genemars released this 02 May 13:54

Alpha preview for the new upcoming HomeGenie (going beta soon!).

  • Automation program editor (wip)

Notes on installing and testing netcore version

Beside the standard HG distribution files that can be installed following the usual instructions from the documentation site, there is a netcore release (homegenie-netcore-all-1.4-alpha.7.zip) that can be installed as described below.

Uncompress the netcore app to a new folder (eg. homegenie).

Install netcore runtime version 3.1 or later:

https://docs.microsoft.com/it-it/dotnet/core/install/linux-debian

Then a couple of netcore fixes are required to get the app running:

  • fix libusb driver not found issue (affects CM15 or CM19 for X10)
sudo ln -s /lib/x86_64-linux-gnu/libusb-1.0.so.0 /usr/share/dotnet/shared/Microsoft.NETCore.App/3.1.13/libusb-1.0.dll

The above paths might be different depending on the target platform. For RPi the paths are different for sure but I didn't looked for them yet.

  • fix 'libnserial.so.1' issue (affects ZWaveLib and SerialPortLib)
apt install cmake
git clone https://github.com/jcurl/serialportstream.git
cd serialportstream/
cd dll/serialunix/
./build.sh

Then copy generated files libnserial.so* to the app folder and lauch the app with LD_LIBRARY_PATH set to the current directory:

cp ./serialportstream/dll/serialunix/build/libnserial/libnserial.so* ./path_to/homegenie_folder/
cd ./path_to/homegenie_folder/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. ./HomeGenie

IMPORTANT:

HG does not run as root by default anymore and the new .deb package (not released at this time) will automatically create a standard homegenie user and it will use that for running the service. In order to make this possible, special permission must be granted to the user that runs HG in order to access serial ports and other devices such as USB. This is done automatically by the install script, but can be also done manually.
On most debian system this can be done by:

  • adding the user (homegenie) to the dialout group (gives access to serial and usb)
  • fixing GPIO permissions by granting access to the dialout group
sudo chgrp -R dialout /sys/class/gpio
sudo chmod -R g+rw /sys/class/gpio

If this is too much bother, it is still possible to run HG as root manually and skip these permissions fix steps.

New UI address

Same address for the old UI http://<hg_address>/, while the new one is:

http://<hg_address>/app/