HomeGenie Forum

Development => Feature request => Topic started by: nolio on February 20, 2014, 10:07:06 PM

Title: Scene Activation command class
Post by: nolio on February 20, 2014, 10:07:06 PM
Hi,
How can HG support "Scene Activation command class" ?
01 0A 00 04 00 17 04 >>2B<< 01 05 FF 32

Related to the previous discussion :
http://sourceforge.net/p/homegenie/discussion/general/thread/891d7356/

I test again with r333 and i don't see any event popup when pressing keyfob.

Bye
Title: Re: Scene Activation command class
Post by: Gene on February 20, 2014, 11:12:40 PM
Well, I worked on this, but I just noticed that I forgot to add the new command class to the handler.
Please upgrade to r336 from:

https://sourceforge.net/projects/homegenie/files/testing/

and let me know if it works now.

Cheers,
g.
Title: Re: Scene Activation command class
Post by: nolio on February 21, 2014, 09:38:18 PM
Hi,
I can't launch cleanly the MIG, each time i launch it, i got the following bug :
2014-02-21T21:36:37.0093550+01:00       HomeAutomation.HomeGenie        _loadsystemconfig()     Argument cannot be null.
Parameter name: type    Exception.StackTrace      at System.Activator.CheckType (System.Type type) [0x00000] in <filename unknown>:0
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0
  at MIG.MIGService.AddInterface (System.String intfdomain) [0x00000] in <filename unknown>:0
  at HomeGenie.Service.HomeGenieService._loadsystemconfig () [0x00000] in <filename unknown>:0


Bye
Title: Re: Scene Activation command class
Post by: Gene on February 22, 2014, 03:38:20 AM
Mmm.. that's odd... pheraps some unaligned file.
Anyway tested r336 is now available from main download section for all supported platforms.

Cheers,
g.
Title: Re: Scene Activation command class
Post by: nolio on February 22, 2014, 10:17:49 AM
Hi,
Same bug with the official r336, but r333 and r334 launch properly.
The error message doesn't help me to analyse what is the problem ...

Bye
Title: Re: Scene Activation command class
Post by: Gene on February 22, 2014, 02:16:53 PM
What do you mean with "same bug" ?
Did you try on a fresh install or did you try to manually update the files?
Please give further info about what you did, otherwise this make no sense =)

Cheers,
g.
Title: Re: Scene Activation command class
Post by: nolio on February 22, 2014, 03:10:47 PM
I update by using the tar r336.
 - Move "HomeGenie" actual (r334) directory
 - Untar the r336.
 - Launch again HG with the script (/etc/init.d/homegenie start)

Like usual. But i see on other thread that you advise to do a fresh install. So i have to try this.

bye
Title: Re: Scene Activation command class
Post by: nolio on February 23, 2014, 09:37:54 PM
Hi,
I try to use the fresh version of HG (the raspberry version r336), but i still have the same trouble with. I use the sourceforge version and restore my backup. I didn't have any information about my whole sensor.
I am the only one with this trouble ?

The log :
#Version: 1.0
#Software: HomeGenie 1.0.0.334
#Start-Date: 2014-02-23T20:26:57.2035440+00:00
#Fields: datetime       source-domain   source-id       description     property        value

2014-02-23T20:26:57.2572030+00:00       HomeAutomation.HomeGenie        _loadsystemconfig()     Argument cannot be null.
Parameter name: type    Exception.StackTrace      at System.Activator.CheckType (System.Type type) [0x00000] in <filename unknown>:0
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0
  at MIG.MIGService.AddInterface (System.String intfdomain) [0x00000] in <filename unknown>:0
  at HomeGenie.Service.HomeGenieService._loadsystemconfig () [0x00000] in <filename unknown>:0

Bye
Title: Re: Scene Activation command class
Post by: Gene on February 23, 2014, 09:55:47 PM
there must be some missing data in systemconfig.xml from your backup file. compare it with the default one included  in r366.

g.
Title: Re: Scene Activation command class
Post by: nolio on February 25, 2014, 09:08:15 PM
Hi,
I found the problem by comparing the 2 files !!
I suppress this 3 lines from restored systemconfig.xml :
      <Interface Domain="Protocols.AirPlay" IsEnabled="false">
        <Options />
      </Interface>
Now HG launch properly.

And so i finally test to presh button on my keyfob but no popup on HG. Is it normal ? Or how can use it ?
Bye
Title: Re: Scene Activation command class
Post by: Gene on February 25, 2014, 10:01:18 PM
Pheraps some events are filtered in the UI.
Try by using the condition capture button in a Wizard Script.
Title: Re: Scene Activation command class
Post by: nolio on February 26, 2014, 09:31:32 PM
Hi,
I can't "fetch" event too. But i still have "UNHANDLED message" :

SPI > 01 0A 00 04 00 17 04 2B 01 01 FF 36
SPO < 06
ZWaveLib UNHANDLED message: 01 0A 00 04 00 17 04 2B 01 01 FF 36
...............
SPI > 01 0A 00 04 00 17 04 2B 01 03 FF 34
ZWaveLib UNHANDLED message: 01 0A 00 04 00 17 04 2B 01 03 FF 34
SPO < 06
...............
SPI > 01 0A 00 04 00 17 04 2B 01 05 FF 32
ZWaveLib UNHANDLED message: 01 0A 00 04 00 17 04 2B 01 05 FF 32
SPO < 06
...............
SPI > 01 0A 00 04 00 17 04 2B 01 07 FF 30
ZWaveLib UNHANDLED message: 01 0A 00 04 00 17 04 2B 01 07 FF 30
SPO < 06

Bye
Title: Re: Scene Activation command class
Post by: Gene on February 27, 2014, 12:39:03 AM
Hi nolio,

thanks for reporting back. I just fixed this (hopefully) in r343.
I erroneously thought that the "generic type" reported by the keyfob was "switch", indeed it is "controller" as verified from pepperone database. Actually in r343 when an unhandled generic type is detectd, a generic device handler is now associated. Before no handler was associated so messages from node were just threated as unhandled.

Cheers,
g.
Title: Re: Scene Activation command class
Post by: nolio on February 27, 2014, 10:42:36 PM
Hi Gene,
It works fine !! I can now use my keyfob to arm/disarm the alarm !
Thank you !
Bye