Working on a widget to summarize my sensors and I can't seem to get ".Each" to work for them:
Modules.OfDeviceType("Sensor.MotionDetect").Each( (module) => {
I have had other "consistency" problems with motion sensors (as compared to door sensors). I have tried other variations of "Motion", "MotionDetect" with no luck. By contrast, these work for doors and lights:
Modules.OfDeviceType("DoorWindow").Each( (module) => {
Modules.OfDeviceType("Light,Dimmer,Switch").Each( (module) => {
Do we need a device type just for MotionDetect rather than having it be subordinate(?) to Sensors? Also for the widget if there was a standalone type and widget, then we could use Status.Level=1 for indicating motion. Currently I set Sensor.MotionDetect=1 to indicate motion in my arduino modules.
Program.RaiseEvent(module4, "Sensor.MotionDetect", motion.ToString(), "Garage Motion");
This seeems to be different than how zwave motion sensors indicate motion (Status.level).
Attached shows my zwave vs. arduino motion sensor widgets.
Also shows my new Summary widget so I can remove the individual sensor widgets from the dashboard and have all condensed into one.