Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Motion/Photocell Status Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Deano
Groupie
Groupie
Avatar

Joined: February 19 2003
Location: United States
Online Status: Offline
Posts: 75
Posted: November 28 2008 at 09:02 | IP Logged Quote Deano

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)
Back to Top View Deano's Profile Search for other posts by Deano
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: November 28 2008 at 09:20 | IP Logged Quote BeachBum

Doesn’t solve the puzzle but I cut/paste your code and changed the H/U code and I was able to turn the status on and off. I’m on 2.1

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum