Please login or register.

Login with username, password and session length

Author Topic: Getting Smart Macros functionality in ActiveHome  (Read 2304 times)

smatofu

  • Full Member
  • ***
  • Helpful Post Rating: 3
  • Posts: 53
Getting Smart Macros functionality in ActiveHome
« on: December 12, 2020, 11:25:42 AM »

ActiveHome AHX file is an XML file that can be edited with any text editor. If people would be nice to put chunks of their XML that were used by Smart Macros, then we could reverse-engineer the code and manually recreate that functionality.

PLEASE REVIEW YOUR AHX FILE AND IF YOU FIND ANY CONDITIONS, POST THEM HERE!


Important part is the section: <conditions> </conditions>
You can copy that section, paste into your AHX file, and modify.

Here are my chunks:

Execute macro if
Functionality: Execute when flag#3 is off
      <macro name="Your Macro Name" ...>
         <el cmd="8" area="1" target="-1" delay="2" />
         <el cmd="1" area="1" target="2000031" />
         <el cmd="8" area="1" target="-1" delay="2" />
         <el cmd="1" area="1" target="2000031" />
         <el cmd="8" area="1" target="-1" delay="2" />
         <conditions>
            <el condition="6" operand="0" operation="0" datamask="4"  />
         </conditions>
      </macro>

Functionality: Execute when nighttime
      <macro name="Your Macron Name" ...>
         <el cmd="8" area="1" target="-1" delay="2" />
         <el cmd="2" area="1" target="2000031" />
         <el cmd="8" area="1" target="-1" delay="2" />
         <conditions>
            <el condition="13" operand="4" operation="0" timehour="1" timemin="0" timerelation="2" offsettimebeforespecification="1" offsethour="0" offsetminute="0" condition2="0" operand2="5" timehour2="1" timemin2="0" timerelation2="1" offsettimebeforespecification2="1" offsethour2="0" offsetminute2="0"  />
         </conditions>
      </macro>

Functionality: Execute when time between 7AM and 8PM

         <conditions>
            <el condition="8" operand="4" operation="0" timehour="7" timemin="0" condition2="0" operand2="5" timehour2="20" timemin2="0"  />
         </conditions>
« Last Edit: December 12, 2020, 11:46:29 AM by smatofu »
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: Getting Smart Macros functionality in ActiveHome
« Reply #1 on: December 12, 2020, 12:07:29 PM »

Smartmacros are included in AHP the software plugin just needs to be unlocked to see the options. Using AHP-Lifejacket unlocks AHP and several plugins I had including Smartmacros. This displays all smartmaco options right in the AHP no need to edit the xml file.
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

smatofu

  • Full Member
  • ***
  • Helpful Post Rating: 3
  • Posts: 53
Re: Getting Smart Macros functionality in ActiveHome
« Reply #2 on: December 12, 2020, 01:24:11 PM »

Tuicemen,
BIG THANKS for all you do for X10. I have managed to reactivate Smart Macros using your LifeJacket.

In case someone wants to edit the AHX file or cannot reactivate Smart Macros, here are all Smart Macros conditions:

Before time:
         <conditions>
            <el condition="0" operand="3" operation="0" timehour="1" timemin="0"  />
         </conditions>

After time:
         <conditions>
            <el condition="0" operand="2" operation="0" timehour="1" timemin="0"  />
         </conditions>

Between times 1:00 and 14:00:
         <conditions>
            <el condition="8" operand="4" operation="0" timehour="1" timemin="0" condition2="0" operand2="5" timehour2="14" timemin2="0"  />
         </conditions>

Before dawn:
         <conditions>
            <el condition="0" operand="3" operation="0" timehour="1" timemin="0" timerelation="1" offsettimebeforespecification="1" offsethour="0" offsetminute="0"  />
         </conditions>

After dawn:
         <conditions>
            <el condition="0" operand="2" operation="0" timehour="1" timemin="0" timerelation="1" offsettimebeforespecification="1" offsethour="0" offsetminute="0"  />
         </conditions>

Before dusk:
         <conditions>
            <el condition="0" operand="3" operation="0" timehour="1" timemin="0" timerelation="2" offsettimebeforespecification="1" offsethour="0" offsetminute="0"  />
         </conditions>

After dusk:
         <conditions>
            <el condition="0" operand="2" operation="0" timehour="1" timemin="0" timerelation="2" offsettimebeforespecification="1" offsethour="0" offsetminute="0"  />
         </conditions>

Daytime:
         <conditions>
            <el condition="12" operand="4" operation="0" timehour="1" timemin="0" timerelation="1" offsettimebeforespecification="1" offsethour="0" offsetminute="0" condition2="0" operand2="5" timehour2="14" timemin2="0" timerelation2="2" offsettimebeforespecification2="1" offsethour2="0" offsetminute2="0"  />
         </conditions>

Nighttime:
         <conditions>
            <el condition="13" operand="4" operation="0" timehour="1" timemin="0" timerelation="2" offsettimebeforespecification="1" offsethour="0" offsetminute="0" condition2="0" operand2="5" timehour2="14" timemin2="0" timerelation2="1" offsettimebeforespecification2="1" offsethour2="0" offsetminute2="0"  />
         </conditions>

Day of week: SUN SAT
         <conditions>
            <el condition="2" operand="0" operation="0" datamask="65"  />
         </conditions>

Weekdays:
         <conditions>
            <el condition="10" operand="0" operation="0" datamask="62"  />
         </conditions>

Weekends:
         <conditions>
            <el condition="9" operand="0" operation="0" datamask="65"  />
         </conditions>

Before Feb 25th:
         <conditions>
            <el condition="1" operand="3" operation="0" datemonth="2" dateday="25" datamask="511"  />
         </conditions>

After March 26th:
         <conditions>
            <el condition="1" operand="2" operation="0" datemonth="3" dateday="26" datamask="511"  />
         </conditions>

Between Feb 25th and Mar 26th after 1:00:
         <conditions>
            <el condition="7" operand="0" operation="0" datemonth="2" dateday="25" datamask="511" condition2="1" operand2="4" datemonth2="3" dateday2="26"  />
            <el condition="0" operand="2" operation="1" timehour="1" timemin="0"  />
         </conditions>         
Logged
 

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