Please login or register.

Login with username, password and session length
Advanced search  

News:

The X10Hub (PiX10Hub) is here! Created by the Community, for the Community.:)% #:)

Author Topic: Single trigger to do different actions each time it is activated? Yes, itís doable!  (Read 6813 times)

martin

  • Sr. Member
  • ****
  • Helpful Post Rating: 2
  • Posts: 125

Folks,

I know, I know, AHP has still some issues
but wanted to let you know about a cool
feature I experimented last night (something
positive for a change...).

I wanted to use a single trigger (button) on
my PalmPad remote to do multiple tasks on
each button press (sort of cycling through
the tasks on each button press). So using
Smart Macros (Else conditions) and flags I
was able to achieve the following:

-First button press = Turn lamp 1 On
-Second button press = Turn lamp 1
Off Ė Turn lamp 2 On
-Third button press = Turn lamp 1 On
(lamp 2 stays On)
-Fourth button press = Turn lamps 1 &
2 Off, back to first step

You can also expand that sequence using
additional "Else" steps and Flags. The thing
to remember is that the macro will stop as
soon as it finds a condition
(including "Else" macros) to be true. Kind
of neat. Let me know if you need more
specifics.
Logged

TakeTheActive

  • Hero Member
  • *****
  • Helpful Post Rating: 126
  • Posts: 1047
  • Old !@#$% Tinkerer!

[Overlooked / ?Ignored? "Oldie-But-Goodie"]

I know, I know, AHP has still some issues but wanted to let you know about a cool feature I experimented last night (something positive for a change...).
 
I wanted to use a single trigger (button) on my PalmPad remote to do multiple tasks on each button press (sort of cycling through the tasks on each button press). So using Smart Macros (Else conditions) and flags I was able to achieve the following:
 
  • First button press = Turn lamp 1 On
    .
  • Second button press = Turn lamp 1 Off, Turn lamp 2 On
    .
  • Third button press = Turn lamp 1 On (lamp 2 stays On)
    .
  • Fourth button press = Turn lamps 1 & 2 Off, back to first step

You can also expand that sequence using additional "Else" steps and Flags. The thing to remember is that the macro will stop as soon as it finds a condition (including "Else" macros) to be true. Kind of neat. Let me know if you need more specifics. [/size]

I recently read a post where a Member (if I find / remember his ID, I'll add it and PM him) was going to re-wire his ceiling fan lights (4 bulbs I'll assume) into 2 pairs controlled separately by X10. This idea from martin sounds like the PERFECT companion (mimicking the original action of the pullchain).
Logged
Low Post Count != Low Knowledge - High Post Count != High Knowledge ;)

ADVICE TO X-10 NEWBIES FROM AN X-10 OLD-TIMER
 

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