We have moved at community.getvera.com

Author Topic: Code or Plugin to recognize HandlePollUpdate in LuaUPnP.log?  (Read 261 times)

Offline zfwjs

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Code or Plugin to recognize HandlePollUpdate in LuaUPnP.log?
« on: September 16, 2018, 01:41:32 am »
Ultimately I'm looking for a way to use a GE Z-Wave Plus Smart Switch (14291) to trigger other GE Smart Switches. For example, press On->On->-On and it will trigger another light switch to turn on, and press Off->Off->Off to turn the same switch off.

I've already got it working with PLEG and Reactor using the Off->On->Off sequence, but ideally I'd like to make it a little more intuitive. In other words, an 'On' sequence for On, and an 'Off' sequence for Off.

Looking in the LuaUPnP.log file it registers all of the presses on the switch (Light was Off, I pressed On 10 times with about a 1s interval):

   Line 20188: 24   09/15/18 15:34:56.128   ZWaveNode::HandlePollUpdate node 12 device 32 class 0x25 command 0x3 m_iFrameID 245/19022840 data 0xff (#) 0x76a84520>
   Line 20189: 24   09/15/18 15:34:56.129   ZWaveNode::HandlePollUpdate_Basic_Report node 12 device 32 now is 255 was 0/-99999 <0x76a84520>
   Line 20251: 24   09/15/18 15:34:57.356   ZWaveNode::HandlePollUpdate node 12 device 32 class 0x25 command 0x3 m_iFrameID 246/19346824 data 0xff (#) 0x76a84520>
   Line 20252: 24   09/15/18 15:34:57.357   ZWaveNode::HandlePollUpdate_Basic_Report node 12 device 32 now is 255 was 1/-99999 <0x76a84520>
   Line 20273: 24   09/15/18 15:34:58.593   ZWaveNode::HandlePollUpdate node 12 device 32 class 0x25 command 0x3 m_iFrameID 247/19706160 data 0xff (#) 0x76a84520>
   Line 20274: 24   09/15/18 15:34:58.593   ZWaveNode::HandlePollUpdate_Basic_Report node 12 device 32 now is 255 was 1/-99999 <0x76a84520>
   Line 20288: 24   09/15/18 15:34:59.644   ZWaveNode::HandlePollUpdate node 12 device 32 class 0x25 command 0x3 m_iFrameID 248/16472528 data 0xff (#) 0x76a84520>
   Line 20289: 24   09/15/18 15:34:59.645   ZWaveNode::HandlePollUpdate_Basic_Report node 12 device 32 now is 255 was 1/-99999 <0x76a84520>
   Line 20309: 24   09/15/18 15:35:00.881   ZWaveNode::HandlePollUpdate node 12 device 32 class 0x25 command 0x3 m_iFrameID 249/15272560 data 0xff (#) 0x76a84520>
   Line 20310: 24   09/15/18 15:35:00.881   ZWaveNode::HandlePollUpdate_Basic_Report node 12 device 32 now is 255 was 1/-99999 <0x76a84520>
   Line 20330: 24   09/15/18 15:35:02.000   ZWaveNode::HandlePollUpdate node 12 device 32 class 0x25 command 0x3 m_iFrameID 250/12785080 data 0xff (#) 0x76a84520>
   Line 20331: 24   09/15/18 15:35:02.001   ZWaveNode::HandlePollUpdate_Basic_Report node 12 device 32 now is 255 was 1/-99999 <0x76a84520>
   Line 20358: 24   09/15/18 15:35:03.125   ZWaveNode::HandlePollUpdate node 12 device 32 class 0x25 command 0x3 m_iFrameID 251/15243976 data 0xff (#) 0x76a84520>
   Line 20359: 24   09/15/18 15:35:03.125   ZWaveNode::HandlePollUpdate_Basic_Report node 12 device 32 now is 255 was 1/-99999 <0x76a84520>
   Line 20373: 24   09/15/18 15:35:04.316   ZWaveNode::HandlePollUpdate node 12 device 32 class 0x25 command 0x3 m_iFrameID 252/18190384 data 0xff (#) 0x76a84520>
   Line 20374: 24   09/15/18 15:35:04.317   ZWaveNode::HandlePollUpdate_Basic_Report node 12 device 32 now is 255 was 1/-99999 <0x76a84520>
   Line 20388: 24   09/15/18 15:35:05.456   ZWaveNode::HandlePollUpdate node 12 device 32 class 0x25 command 0x3 m_iFrameID 253/15176568 data 0xff (#) 0x76a84520>
   Line 20389: 24   09/15/18 15:35:05.457   ZWaveNode::HandlePollUpdate_Basic_Report node 12 device 32 now is 255 was 1/-99999 <0x76a84520>
   Line 20403: 24   09/15/18 15:35:06.656   ZWaveNode::HandlePollUpdate node 12 device 32 class 0x25 command 0x3 m_iFrameID 254/14776224 data 0xff (#) 0x76a84520>
   Line 20404: 24   09/15/18 15:35:06.657   ZWaveNode::HandlePollUpdate_Basic_Report node 12 device 32 now is 255 was 1/-99999 <0x76a84520>

So, can I use this info to trigger a scene or a device change another way? It didn't seem like pleg would work since there's only one status change. I thought maybe python and the API, but it doesn't appear python is installed on my Vera Plus.

I'd greatly appreciate if someone could point me in the right direction.

Offline zedrally

  • Hero Member
  • *****
  • Posts: 1224
  • Karma: +15/-5
  • Black Cat Control Systems
Re: Code or Plugin to recognize HandlePollUpdate in LuaUPnP.log?
« Reply #1 on: September 16, 2018, 03:05:02 am »
Use the count function in PLEG.
Living in the Land of Oz, give me a vegemite sandwich. Home Seer, Vera Lite & Edge, Popp, Black Cat Smart Hub & Vera G, Black Cat Lite 1 & 2's a Black Cat Dimmer or 2, Fantem Tec and then some  Black Cat Cat's Eye PIR's & Door-Window Sensors, RFXComm, Broadlink RMPro & Mini plus a Z-UNO or 2.

Offline zfwjs

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Code or Plugin to recognize HandlePollUpdate in LuaUPnP.log?
« Reply #2 on: September 16, 2018, 10:32:37 am »
Thank you for the response. I'll check it out.

Sent from my SM-G965U using Tapatalk