more G-Labs products

Author Topic: Monoprice Motion Detector with Temperture Sensor  (Read 1820 times)

January 19, 2016, 08:07:48 PM
Read 1820 times

jmcgee

  • **
  • Information
  • Jr. Member
  • Posts: 26

January 19, 2016, 08:43:15 PM
Reply #1

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
I can't say 100% for sure because I don't have it, I think it will work.  I can tell you...

-it looks like the GoControl/Linear/Nortek WAPIRZ-1 model I have (works, shows temp too, can't get rid of tamper alarm)
-some info on similarity here... https://community.smartthings.com/t/linear-wapirz-1/15930/32
-you can get the gocontrol motion and 2 door sensors for US $50
http://amzn.com/B00XUXYSWU
-it looks like http://www.pepper1.net/zwavedb/device/197

I don't know if that helps...
« Last Edit: January 19, 2016, 09:00:34 PM by kevin1 »

February 04, 2016, 06:50:21 AM
Reply #2

hjohn06

  • *
  • Information
  • Newbie
  • Posts: 2
Looks like it is the one kevin1 mentioned, since the tamper alarm is always on.  I got motion and temperature information.  The wake up interval is stuck at 3600s.  I tried to lower it. but it doesn't seem to like it (the red light comes on).  I'm not actually sure it is 3600s for wake up, since it triggers right away sometimes.  The instructions that comes with it has very little info and is out of date.  It says to hold the button to pair, but you actually have to tap the button twice. 
I wanted to use it as an occupancy sensor for a light, but that doesn't work well if it doesn't trigger right away.  If anyone has any additional information about to configure it, it would be much appreciated. 

March 22, 2016, 03:45:16 PM
Reply #3

lorenzanaj

  • *
  • Information
  • Newbie
  • Posts: 9
I just got one of these and seems to do something. It reports temperature and detects tamper (if I open the lid). I know these battery devices are difficult because they goto sleep a lot (3600s wakeup).

I'm having problems programming it. It's my Node 10 and have created a few programs already like: siren for 2 seconds then open/close the garage door, flash all lights 10x, etc. I couldn't find Node 10 in the list of Zwave devices when trying to program it. The program/wizard listed all my other nodes just fine, not this one. But the pop-ups do display, and I have a (Node 10) widget on the dashboard.

Any suggestions? Thanks.
« Last Edit: March 22, 2016, 04:43:02 PM by lorenzanaj »

March 23, 2016, 05:44:04 PM
Reply #4

lorenzanaj

  • *
  • Information
  • Newbie
  • Posts: 9
Ok I'm getting the hang of this program. Nice so far BTW, little buggy. I might be able to help some, my background is EE/CS.

For anyone that hasn't figure it out is the device, a sensor, doesn't really belong in the "Program Code", instead I found it in "Trigger Code".

So the Program would get Triggered by the sensor and in my case HomeAutomation.ZWave/10, Sensor.Alarm=255 (think it's 255) is motion.

Then the Program Code I presume should execute but for some reason it's not. Something else I need to figure out.
« Last Edit: March 23, 2016, 05:47:41 PM by lorenzanaj »

March 24, 2016, 03:43:41 PM
Reply #5

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
You can use the trigger code to start your script or you can use logic in your program code that checks the same thing.  If you do that, you need to tell the program to run in the trigger code (Program.Run I believe).  Gene has indicated that he may remove the trigger section at some point since it's apparently redundant.  I use it for all my code, so if it goes away, I'll have to make a few changes.

The Sensor.Alarm value is either off or on (0 or 255 apparently).  You could probably check for the value being equal to zero or not (if not, then it's on).

There are a few small bugs in the current release that will hopefully be fixed in the near future.  One is related to creating a new program, so you may run into difficulties if you try to do that.

March 26, 2016, 05:56:13 PM
Reply #6

lorenzanaj

  • *
  • Information
  • Newbie
  • Posts: 9
I can't get it to work. I see the motion detector detecting events and the pop up display (and log) tells me so.

I am using the Wizard so:
Trigger Code: #0001 says if HomeAutomation.ZWave/11, ZWaveNode.Basic=255.
Program Code: #0001 HomeAutomation.Zwave/2, Control.On (turn on a light)
                         #0002 HomeAutomation.HomeGenie/Automation, Program.Pause, 120
                         #0003 HomeAutomation.Zwave/2, Control.Off (turn offa light)

It works just once after I save the program (seems like it run by itself which might b a bug), but during normal operation, after i'm back on the Dashboard, when motion is detected it doesn't run. I've experimented w/ different things like ZWaveNode.Alarm and ZWaveNode.Tamper and the Program Code never executes. Any suggestions?

For fun I tried the same thing on Indigo and it worked great. I've used Indigo before but it's an OSX based $99 or $199 offering. I just don't want to stand up an OSX machine that runs 24x7, already have my Linux box consuming power.



March 28, 2016, 05:19:06 PM
Reply #7

lorenzanaj

  • *
  • Information
  • Newbie
  • Posts: 9
Ok take back what I said, or maybe it's working because I toggled between "C# Program" mode then back to the "Wizard Script", or that I restarted the box since I posted, but it seems like it's working now!

For anyone interested you can view the log and see what's going on (linux it's /usr/local/bin/homegenie/log/*log). One thing that was interesting is that this devices send multiple messages fairly rapidly (3 in about a tenth of a second). Here it sensed motion and got 3 messages: Level=1, Basic=255, and Alarm=255. The document that came w/ this device said to use Basic=255 as an motion indicator, then after no motion detected it sends Basic=0.

Cool, on w/ HomeGenie!! Now just need to have it turn on the lights for a few minutes between 7pm and before 2am. Would this Trigger Code be close?:

#0001 HomeAutomation.ZWave/11, ZWaveNode.Basic=255
#0002 HomeGenie/Scheduler, Schedule.DateHour > 18
#0003 Or
#0004 HomeAutomation.ZWave/11, ZWaveNode.Basic=255
#0005 HomeGenie/Scheduler, Schedule.DateHour < 2

=== snip from /usr/local/bin/homegenie/homegenie.log ==
2016-03-28 02:09:06.7532 Info HomeAutomation.ZWave   11   ZWave Node   Status.Level   1
2016-03-28 02:09:06.7532 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.Basic   255
2016-03-28 02:09:06.8543 Info HomeAutomation.ZWave   11   ZWave Node   Sensor.Alarm   255
« Last Edit: March 29, 2016, 04:42:09 PM by lorenzanaj »

March 28, 2016, 05:27:25 PM
Reply #8

lorenzanaj

  • *
  • Information
  • Newbie
  • Posts: 9
hjohn06: Seems like 3600 is correct (and default). I haven't tried changing it yet. Tamper and motion is a different type message that comes right away.

Here you see it's about 3600 sec (1hr) and sends: Battery, Level, and Basic info:

$ grep "ZWave Node" *log|grep -A4 WakeUp
2016-03-28 06:47:29.6357 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.WakeUpNotify   1
2016-03-28 06:47:30.0372 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.Battery   100
2016-03-28 06:47:30.0372 Info HomeAutomation.ZWave   11   ZWave Node   Status.Battery   100
2016-03-28 06:47:30.8392 Info HomeAutomation.ZWave   11   ZWave Node   Status.Level   0
2016-03-28 06:47:30.8392 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.Basic   0

2016-03-28 07:46:12.9452 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.WakeUpNotify   1
2016-03-28 07:46:13.5473 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.Battery   100
2016-03-28 07:46:13.5473 Info HomeAutomation.ZWave   11   ZWave Node   Status.Battery   100
2016-03-28 07:46:14.3492 Info HomeAutomation.ZWave   11   ZWave Node   Status.Level   0
2016-03-28 07:46:14.3492 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.Basic   0

2016-03-28 08:44:55.3944 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.WakeUpNotify   1
2016-03-28 08:44:56.1068 Info HomeAutomation.ZWave   11   ZWave Node   Status.Battery   100
2016-03-28 08:44:56.1068 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.Battery   100
2016-03-28 08:44:56.8982 Info HomeAutomation.ZWave   11   ZWave Node   Status.Level   0
2016-03-28 08:44:56.8994 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.Basic   0

2016-03-28 09:43:37.1682 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.WakeUpNotify   1
2016-03-28 09:43:37.6697 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.Battery   100
2016-03-28 09:43:37.6703 Info HomeAutomation.ZWave   11   ZWave Node   Status.Battery   100
2016-03-28 09:43:38.4723 Info HomeAutomation.ZWave   11   ZWave Node   Status.Level   0
2016-03-28 09:43:38.4723 Info HomeAutomation.ZWave   11   ZWave Node   ZWaveNode.Basic   0
« Last Edit: March 28, 2016, 05:29:00 PM by lorenzanaj »