more G-Labs products

Author Topic: Status.Level confusion  (Read 921 times)

June 15, 2015, 09:28:39 PM
Read 921 times

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330

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....



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