From: David N. <jud...@ad...> - 2003-10-26 22:05:10
|
You might want to take a look at triggers. You can use the trigger web = to change timings on your x10 objects. David=20 ----- Original Message -----=20 From: Peter (Starcastle)=20 To: MH Mail List=20 Sent: Sunday, October 26, 2003 1:23 PM Subject: Fw: [misterhouse-users] Reading an X10 Object name from a = File What I am trying to do is to create the equivalent of the alarm = function for X10 objects. For example I would enter the name of the X10 = object along with the time and action I want to perform into a text file = which would be read and the applicable command executed. Right now if I want to change the timing on my X10 objects I have to = reprogram. Peter ----- Original Message -----=20 From: vi...@ho...=20 To: pe...@st...=20 Sent: Sunday, October 26, 2003 10:17 Subject: FW: [misterhouse-users] Reading an X10 Object name from a = File =20 =20 -----Original Message----- From: vi...@ho... [mailto:vi...@ho...]=20 Sent: Sunday, October 26, 2003 10:17 AM To: mis...@li... Subject: RE: [misterhouse-users] Reading an X10 Object name from a = File =20 =20 The object should already be defined in your MHT, so unless I'm = reading this wrong, doing a "set $attic_fan ON ;" should work. Unless = for some reason you're trying to tie the fan to the variable = ($x10_object) ? =20 I'm sure someone will correct me if I'm wrong. J =20 -----Original Message----- From: mis...@li... = [mailto:mis...@li...] On Behalf Of = Peter (Starcastle) Sent: Saturday, October 25, 2003 11:32 PM To: MH Mail List Subject: [misterhouse-users] Reading an X10 Object name from a File =20 This is a newbie Perl Question, but here it is using an example: =20 I have an object name (for example $attic_fan) which is an X10 object = that was defined in an items.mht. I have this name stored in a text = file which I want to read in from a file and then be able to use it in a = SET command to turn the $attic_fan device on and off based upon logic = found in the alarm.pl module. =20 Right now I read it into a variable called $x10_object, then try: =20 SET $x10_object ON; =20 Which does not work, but I'm not sure why (once I learn more about = Perl it will become obvious but not right now). =20 Would appreciate some help on this =20 Peter Woodall =20 =20 |