more G-Labs products

Author Topic: After restart everytime i have to setup ZWave Interface  (Read 1862 times)

October 16, 2014, 09:27:32 AM
Read 1862 times

genieman

  • *
  • Information
  • Newbie
  • Posts: 3
Hello. After each restart i see that  ZWave Interface is removed.
Where could be problem?

October 20, 2014, 04:13:19 PM
Reply #1

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
I have similar issue (I think) with my X10 PLM interface.  Earlier releases of HG would remember that my X10 CM11 is on COM5.  Now I have to go into interfaces and select COM5 each time I have to restart (Win7).

October 27, 2014, 04:53:25 PM
Reply #2

DutchHans

  • **
  • Information
  • Jr. Member
  • Posts: 39
Good evening,

I have the same here with X10 and DLNA (the only two I have set up) on Windows XP. Every time HG starts I have to switch on X10 and DLNA.

Regards and cheers

October 30, 2014, 11:00:19 AM
Reply #3

BarryP

  • *
  • Information
  • Newbie
  • Posts: 6
Hi,
same thing on raspberry.
need to select com port for x10 after restart.

October 30, 2014, 01:04:43 PM
Reply #4

James

  • *
  • Information
  • Newbie
  • Posts: 14
I had the same issue for a while, this response was from Gene and it helped me.

You can check if port settings are saved by opening the text file:

/usr/local/bin/homegenie/systemconfig.xml

look nearby the end of the file


Code: [Select]
....
<Interface Domain="HomeAutomation.ZWave" IsEnabled="false">
        <Options>
          <Option Name="Port" Value="/dev/ttyUSB0" />
        </Options>
</Interface>
...

if settings are saved, then probably it means that, by the time hg starts, the serial port is not available yet.
So putting a delay before hg startup might solve the issue.

/usr/local/bin/homegenie/startup.sh

Code: [Select]
#!/bin/sh
sleep 10
if [ -f /usr/bin/mono ]
then
        MONO=/usr/bin/mono
else
        MONO=/usr/local/bin/mono
fi
cd $1 && sudo $MONO HomeGenie.exe >/dev/null  2>&1

the sleep 10 will delay the startup by 10 seconds. You will probably have to tune up this value.


For a Windows 7 64 Bit Machine your looking for:
C:Program FilesHomeGeniesystemconfig.xml

-<Interface IsEnabled="true" Domain="HomeAutomation.ZWave">
  -<Options>
     <Option Value="COM3" Name="Port"/>
   </Options>
</Interface>

October 30, 2014, 10:13:12 PM
Reply #5

BarryP

  • *
  • Information
  • Newbie
  • Posts: 6
Thanks James ,
The delay solved my X10 port problem on the RaspPi