Deano Groupie 
          
  
  Joined: February 19 2003 Location: United States
 Online Status: Offline Posts: 75
          | 
        
         
          
           | Posted: November 28 2008 at 09:02 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Yesterday when the dogs went out in the evening, the lights  didn't go on and I thought DAMN I've broken those motion macros again, but when I looked at the Device status screen I noticed that both outdoor photocells were indicating "LIGHT" even thought even though it was dark outside.
 
 The problem was PH was sleeping yesterday when my outdoor photocells detected dark so PH didn't know.  So I thought, I can fix that.  I'll just set the status of my photocells with ph_x10setstat to 2 for dark when I update my GV {DARK} around dusk with a timed event.
 
 Well by now you know that didn't work or I wouldn't be writing this.  I did get a clue because the first parameter in ph_x10setstat is "COMMAND".  I tried changing the status of several other x10 devices like lamp modules and wall switches and I was unable to change anything.  I obviously don't understand this function.  
 
 Here is the syntax I used:  ph_x10setstat(2,"E",10,0,0)
         |