Author Topic: How to make an X10 outlet turn on for a specfic time when shut off again  (Read 913 times)

jason

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • ioBridge.com
I was recently asked in an email how to make a lamp turn on by X10 turn on for 1 hour then back off again.  Although there isn't a X10 timer widget that does this directly, it is possible to make it work with the new Pulse widget that is available with the firmware upgrade.

This is kind of complicated but if you read this a few times, it might begin to make sense.

We all know that a X10 widget can be made to turn a light on and off.  Another way to send an X10 command is by creating an Action.  A Digital Input to Output Link can be configured to send X10 on/off signals when the state on a digital input pin changes.  This feature was added so users could make a simple "digital input to X10" light switch.

Now that we have an way to make an X10 outlet turn on/off from a digital input, how do we make it turn on for specific times period?  With a Digital Output Pulse widget!  By physically connecting the digital input and digital output on a channel (see the picture) AND setting the channel to Send Message on Digital State Change, we we're created a means of controlling X10 from a digital output pin.  All that is left to do is make an hour long Digital Output Pulse widget for that channel.

Here is the chain of events:

1.  Digital output pulse widget is clicked.
2.  The digital output goes high.
3.  The signal is sent to the digital input pin by the wire.
4.  The module sees the digital input state change and sends a message to the ioBridge server
5.  The ioBridge server see that the digital input has gone high and uses the Action you've created to send the X10-ON command.
6.  The X10 smart board receives the command and turn on the light.

...  an hour later

7.  The digital output pulse goes back to low.
8.  Steps 2 - 6 occur again , except this time the server knows to send the X10 - OFF command instead.
« Last Edit: April 22, 2009, 03:53:15 PM by jason »
Jason Winters
ioBridge Developer

kdavis45

  • Newbie
  • *
  • Posts: 2
AND setting the channel to Send Message on Digital State Change,

I couldn't figure out how to set "the channel to send message on digital state change". I don't see that setting anywhere for the channels. But beyond that, from the description it seems that this whole operation fails if my internet is down an hour later OR for any number of reasons I miss the message from the server. Correct?

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 669
    • ioBridge Support
This post was before there were onboard rules and actions.

http://www.iobridge.net/wiki/onboard-actions

As a side note, we also changed the word "message" to "push" in the settings section of each channel. Message sounded like an email.
ioBridge Support
Community Team