Please login or register.

Login with username, password and session length
Pages: [1] 2

Author Topic: Program code to arm/disarm HG security control?  (Read 6724 times)

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Program code to arm/disarm HG security control?
« on: January 13, 2020, 10:35:13 AM »

I have two programs that I would like to make one.    First simply sends security arm command to DS9000 at scheduled time(s), second separate grogram arms the internal HG security controller.

First program line is picture 1.
Second program line is picture 2.

Simple, right?  Well, it would be if I could figure out how to enter program line shown in picture 2;  both programs are set to use wizard script.

Using the wizard script in the program, I cannot figure out how to duplicate the 2 picture.   I tried RECORD MACRO but it does not see arm or disarm commands when pushed in HG screen.

I really feel dumb this morning!
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: Program code to arm/disarm HG security control?
« Reply #1 on: January 13, 2020, 04:10:00 PM »

Click add command and select corresponding path then you can type in the RF code.

Some mornings I feel the same  :-[
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Program code to arm/disarm HG security control?
« Reply #2 on: January 13, 2020, 06:27:20 PM »

morning...  ha.

My issue is not adding an RF command, it is adding a HG Automation/90 command...it does not seem to exist in the program wizard...

but hmmm...  maybe....  since there seems no way to make a NEW program that arms or disarms the built in HG security control, perhaps I should stand on my head...  not try to add THAT but instead simply add my rf command send to IT.  The add my conditions to IT that I already have on the rf send one...   that should work!

I have to arm/disarm the built in HG security console in parallel to the read DS9000 in order to get your security email if armed stuff to work on DS10's.

Thanks!
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: Program code to arm/disarm HG security control?
« Reply #3 on: January 13, 2020, 06:31:03 PM »

The #90 referes to the security program if I remember the # doesn't appear till after you select the program.
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: Program code to arm/disarm HG security control?
« Reply #4 on: January 13, 2020, 06:31:39 PM »

morning...  ha.

My issue is not adding an RF command, it is adding a HG Automation/90 command...it does not seem to exist in the program wizard...

but hmmm...  maybe....  since there seems no way to make a NEW program that arms or disarms the built in HG security control, perhaps I should stand on my head...  not try to add THAT but instead simply add my rf command send to IT.  The add my conditions to IT that I already have on the rf send one...   that should work!

I have to arm/disarm the built in HG security console in parallel to the read DS9000 in order to get your security email if armed stuff to work on DS10's.

Thanks!

When you create a new Wizard Script and exit the Program did you remember to enable the new Wizard script ie turn the little triangle to a tick by clicking on it. You'll find your new script is now available to choose from.
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Program code to arm/disarm HG security control?
« Reply #5 on: January 13, 2020, 06:37:18 PM »

The #90 referes to the security program if I remember the # doesn't appear till after you select the program.

That is the issue:  there is no way I found to select the program called security. 
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Program code to arm/disarm HG security control?
« Reply #6 on: January 13, 2020, 06:40:36 PM »


When you create a new Wizard Script and exit the Program did you remember to enable the new Wizard script ie turn the little triangle to a tick by clicking on it. You'll find your new script is now available to choose from.

Not the issue:  issue is BEFORE even turning on the program.  Any program can be RUN while building it before a final save.  Not the issue.  The issue is while in program code, click on add command.  there is no way I have found to pick Control.Arm or Control.Disarm.   period.
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: Program code to arm/disarm HG security control?
« Reply #7 on: January 13, 2020, 06:41:19 PM »

select add program then homeautomation/homegenie/program.run/ type 90
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: Program code to arm/disarm HG security control?
« Reply #8 on: January 13, 2020, 06:45:00 PM »

if I remember control.on becomes arm and control.off becomes control.disarm when using the security console.
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: Program code to arm/disarm HG security control?
« Reply #9 on: January 13, 2020, 06:48:11 PM »


When you create a new Wizard Script and exit the Program did you remember to enable the new Wizard script ie turn the little triangle to a tick by clicking on it. You'll find your new script is now available to choose from.

Not the issue:  issue is BEFORE even turning on the program.  Any program can be RUN while building it before a final save.  Not the issue.  The issue is while in program code, click on add command.  there is no way I have found to pick Control.Arm or Control.Disarm.   period.

If you create a script and wish it to be available to another script you are creating it MUST be enabled otherwise it will not show up as an available choice. To make things even simpler, make sure all your scripts are Enabled unless they are disabled for a reason. Running a script while creating/testing is NOT the same as a script being Enabled. All new scripts are Disabled by default.
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Program code to arm/disarm HG security control?
« Reply #10 on: January 13, 2020, 06:48:21 PM »

if I remember control.on becomes arm and control.off becomes control.disarm when using the security console.

tried those;  did not work.  BUT I never tried typing in /90 like you said...  will try that!  Thanks
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Program code to arm/disarm HG security control?
« Reply #11 on: January 13, 2020, 06:49:51 PM »


When you create a new Wizard Script and exit the Program did you remember to enable the new Wizard script ie turn the little triangle to a tick by clicking on it. You'll find your new script is now available to choose from.

Not the issue:  issue is BEFORE even turning on the program.  Any program can be RUN while building it before a final save.  Not the issue.  The issue is while in program code, click on add command.  there is no way I have found to pick Control.Arm or Control.Disarm.   period.

If you create a script and wish it to be available to another script you are creating it MUST be enabled otherwise it will not show up as an available choice. To make things even simpler, make sure all your scripts are Enabled unless they are disabled for a reason. Running a script while creating/testing is NOT the same as a script being Enabled. All new scripts are Disabled by default.

If I have a program that is enabled, and I want to add a single line to the program, I do not have to go enable all my other programs that I may or may not use.  My issue has nothing to do with enabling a script.
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Program code to arm/disarm HG security control?
« Reply #12 on: January 13, 2020, 06:54:57 PM »

select add program then homeautomation/homegenie/program.run/ type 90

no go.  somehow we got to get "automation/90" on first column of program line so it then sees it is 'security alarm system" so I can enter in step 4/4 "Control.Disarm"
Logged

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: Program code to arm/disarm HG security control?
« Reply #13 on: January 13, 2020, 07:19:27 PM »

Your second line should read as follows. Select Add Command from the Wizard script

Automation->90(Security Alarm System)->Custom API command and whatever you need to add to perform the function. If you can't edit the script you're working on create a new one with the two lines you need.

Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Program code to arm/disarm HG security control?
« Reply #14 on: January 13, 2020, 07:35:40 PM »

Your second line should read as follows. Select Add Command from the Wizard script

Automation->90(Security Alarm System)->Custom API command and whatever you need to add to perform the function. If you can't edit the script you're working on create a new one with the two lines you need.

Just tried that and it seems it may work.  I just spent 30 minutes adding my send x10 RF as second line to the working arm/disarm security programs & adding multiple on/off times to the already present remote security keyfobs.  So I just finished and it is working.

But it is good to see there may be a way to build a security program using the wizard after all.  Shame it is so convoluted.
Logged
Pages: [1] 2
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.