more G-Labs products

Author Topic: FGBS-001 Support  (Read 804 times)

August 04, 2015, 06:15:51 AM
Read 804 times

BrendanL

  • *
  • Information
  • Newbie
  • Posts: 2
Hi guys

I'm new here and keen on staying/contributing etc. I've been playing around with HG just in software for the last couple of weeks to try and simulate what I want to achieve. Initially a gate sensor with some sort of monitoring reminder past the point of the initial event.

I received my first bits of hardware this morning: a Gen5 Z-stick, a FGBS-001 Universal Sensor and a compact, outdoor reed switch. Trouble is, like some other folks, I've now discovered the universal sensor doesn't seem to be fully supported yet. Interesting that ftsikogi managed to see IN1 & IN2 as events (http://www.homegenie.it/forum/index.php?topic=900.msg5439#msg5439). I'm yet to see this, though I have done a 'Get' on the node and obtained the Support Classes information.

So I'm interested in finding out if anyone is actively working on the configuration to support the FGBS-001? Or if anyone has got it working, are they able to share some information on how?

I'm happy to take a look at home to develop support for the FGBS-001, but the learning curve will likely be steep and slow.

Also, does the C# Iteration example in the Documentation section seem correct?
Code: [Select]
var selection = Modules.InGroup("Living Room").SelectedModules;
foreach(var module in selection)
{
    module.On();
}

I get told this if I drop that into a program and compile: 'HomeGenie.Data.Module' does not contain a definition for 'On'...

I've had a bit of trouble understanding Module/ModuleHelper/ModulesManager etc. The only way I managed to iterate over the modules in my group and call the On() or obtain Parameter information was like this:
Code: [Select]
Modules.InGroup("test").Each( (module) => {
  module.On();
  Program.Notify("Reporting", "Module: " + module.Instance.Name + ", Level: " + module.Parameter("Status.Level").DecimalValue);
    return false; // continue iterating
 });

The latter callback approach is probably better form anyway, but keen on understanding if the first approach should have worked.

Thanks guys


There are no comments for this topic. Do you want to be the first?