Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting started in Z-wave
#31
Watch the two action related videos for more on variables. Any time you invoke an action command and need to get information back, it has to return that information in something, and variables are the only way to do it. Use local variables, so that they are just thrown away when the action ends.

It would be something like:

Code:
TrigEvent::GetLockStatusInfo(LVar:State, LVar:Id, LVar:Code, LVar:Type)
If (System::Equals(%(LVar:State), locked)
   // It was locked
Else
   // It was unlocked
EndIf;
Dean Roddey
Explorans limites defectum
Reply
#32
Thanks Dean for the refresher. Would ~7 seconds to respond seem about right to turn on a light from the lock becoming unlocked? Not sure what to expect here as I'm new to z-wave.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Z-Wave PC Controller simplextech 0 1,824 01-06-2020, 05:54 AM
Last Post: simplextech
  GE Z-Wave Outdoor Switch / Garage Door / Alarm gReatAutomation 0 776 06-11-2019, 03:53 PM
Last Post: gReatAutomation
  Basic Z Wave/CQC Integration Question MikeW 6 2,582 12-05-2018, 01:12 PM
Last Post: MikeW
  Newer Leviton Z-Wave Lamp Dimmers Deane Johnson 2 2,090 11-24-2017, 08:26 AM
Last Post: Deane Johnson
  Trouble getting CQC working with ISY Z Wave Deane Johnson 47 11,684 01-14-2016, 04:43 AM
Last Post: Deane Johnson
  Z-wave client driver royalj7 6 3,316 11-02-2015, 01:56 PM
Last Post: jaydonoghue
  My woes with Z-Wave jkmonroe 89 17,683 06-25-2015, 09:20 PM
Last Post: IVB
  Z-Wave 'Poll' jkmonroe 5 2,911 06-21-2015, 09:18 AM
Last Post: Dean Roddey
  Bridging Z-Wave networks radiopaque 2 1,933 08-25-2014, 01:11 AM
Last Post: radiopaque
  Determined to finally get Z-Wave VRC0P Working Hiller 121 29,910 08-05-2014, 05:15 PM
Last Post: jkmonroe

Forum Jump:


Users browsing this thread: 1 Guest(s)