HomeGenie Forum

Automation Program Plugins and Wizard Scripting => Help => Topic started by: kevin1 on June 15, 2015, 09:28:39 PM

Title: Status.Level confusion
Post by: kevin1 on June 15, 2015, 09:28:39 PM

When is Status.Level supposed to be used?  I see this in the Security code and the naming is confusing me:

Code: [Select]
             (   parameter.Name == "Status.Level"
              || parameter.Name == "Sensor.Generic"
                || parameter.Name == "Sensor.Tamper"
                || parameter.Name == "Sensor.MotionDetect"


Part of the confusion probably is coming from "multi-sensor modules".  I am thinking the each widget/module  in HG really wants to have a single parameter / value / Status.Level.  When we assign multiple parameters to a module (temp/humidity/motion/etc...), the naming convention does not work so well.  Or is it just me, please help me understand :-)

So if I have a temp, humidity, motion detector and DoorWindow reed switches in one arduino module, should I create 5 virtual modules with just one parameter each: Status.Level? 

Or should I have one module with no Status.Level, instead multiple sensors: Sensor.Temperature, Sensor.Humidity, Sensor.DorWindow1, Sensor.DoorWindow2, etc....