more G-Labs products

Author Topic: Scene Activation command class  (Read 3658 times)

February 20, 2014, 10:07:06 PM
Read 3658 times

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
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

February 20, 2014, 11:12:40 PM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
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.

February 21, 2014, 09:38:18 PM
Reply #2

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
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
« Last Edit: February 21, 2014, 09:42:24 PM by nolio »

February 22, 2014, 03:38:20 AM
Reply #3

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Mmm.. that's odd... pheraps some unaligned file.
Anyway tested r336 is now available from main download section for all supported platforms.

Cheers,
g.

February 22, 2014, 10:17:49 AM
Reply #4

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
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

February 22, 2014, 02:16:53 PM
Reply #5

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
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.

February 22, 2014, 03:10:47 PM
Reply #6

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
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
« Last Edit: February 22, 2014, 03:36:46 PM by nolio »

February 23, 2014, 09:37:54 PM
Reply #7

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
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

February 23, 2014, 09:55:47 PM
Reply #8

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
there must be some missing data in systemconfig.xml from your backup file. compare it with the default one included  in r366.

g.

February 25, 2014, 09:08:15 PM
Reply #9

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
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

February 25, 2014, 10:01:18 PM
Reply #10

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Pheraps some events are filtered in the UI.
Try by using the condition capture button in a Wizard Script.

February 26, 2014, 09:31:32 PM
Reply #11

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
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

February 27, 2014, 12:39:03 AM
Reply #12

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
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.

February 27, 2014, 10:42:36 PM
Reply #13

nolio

  • *****
  • Information
  • Global Moderator
  • Posts: 544
Hi Gene,
It works fine !! I can now use my keyfob to arm/disarm the alarm !
Thank you !
Bye