more G-Labs products

Author Topic: Tellstick, multisensors and documentation  (Read 1534 times)

September 08, 2014, 11:47:03 PM
Read 1534 times

flossy

  • *
  • Information
  • Newbie
  • Posts: 6
Hi.

Im building a tellstick interface and it has worked smoothly so far (got switches, dimmers and tempsensors running so far). But i bumped into some issues now..

First, is there some form of developer documentation? im guessing that could answer a few of my questions.

The stuff i got stuck on:
1. The interface isn't displayed in the gui, i started it by manually adding it as enabled to systemconfig.xml, but still it doesn't show up. What is needed to get it to show up there?

2. I have sensors that report both temperature and humidity. from tellstick they have the same id. the question is, can i register them as one interfacemodule that reports both temp and humidity, or do i need to handle them as two separate modules?  In the gui it looks like the zwave multisensors is handled as one unit, but i keep reporting two values for the same module (40% followed by 23 degrees and so on).

/C

September 09, 2014, 04:06:43 AM
Reply #1

adm533

  • *
  • Information
  • Newbie
  • Posts: 4
I'm new to all of this to but hopefully I am not pointing you in the wrong direction. If you are looking to add a widget you should check out the directory location <homegenieroot>htmlpagescontrolwidgetshomegeniegeneric
These are the built-in widgets. They are json in the sense that they are javascript chunks in a json wrapper. So some JS is required. You'll need to have an html and json file. Once you have all that you can create a program within HomeGenie. If you checkout the code for the weather apps (all in C#) you should get the jist of it. Basically in the Trigger code you need to put something like
Program.Setup(()=>
{
 Program.AddControlWidget( "<put the relative path to your widget code here>" );
});
return false;

As for #2 I am having a similar issue with my multisensor. The widget only shows one measurement (luminosity I think) even though it should measure luminosity, temp,  and humidity.

September 10, 2014, 01:12:01 AM
Reply #2

flossy

  • *
  • Information
  • Newbie
  • Posts: 6
Awesome! thanks for the help.
It wasn't so bad when i snooped around in the html/json for the sensor and found the constants in ModuleParameters class, i just needed to do two InterfacePropertyChangedActioncalls with different paths to get both temperature and humidity.
I need to do some filtering in the sensors now though as im getting swamped by weird sensordata that pop up as items in my interface.
But other than that the tellstick interface is up and running and seems to work nicely.

/C