Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: What am I missing? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Neptuni
Newbie
Newbie
Avatar

Joined: August 29 2007
Location: Sweden
Online Status: Offline
Posts: 7
Posted: January 22 2008 at 16:38 | IP Logged Quote Neptuni

Hello,

I' trying to have PH knowledge of my PC's status (online or not), so I tried this:

1) Create an Virtual X-10 type "Computer" with status only and Online/offline values.
2) Created an device X1 of the type "Computer" with my CM11 as controller (can it be blank?)
3) Created an macro with the follwing formula:

if ( ph_ping( "192.168.2.2", 5) >= 0, ph_x10btn( "X1",2,0 ), ph_x10btn( "X1",3,0 ) )

But when try to verify it tells me that there is an error trying to retrieve data from X10 devices and types in the table...!

What have I done wrong!?

Thanks for your help

/Mikael
Back to Top View Neptuni's Profile Search for other posts by Neptuni
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: January 22 2008 at 16:57 | IP Logged Quote BeachBum

Is "X1" the unit and house code or is it the ID in the X10 Devices which points to X1..

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

Joined: August 29 2007
Location: Sweden
Online Status: Offline
Posts: 7
Posted: January 22 2008 at 17:03 | IP Logged Quote Neptuni

Thanks!

It's was the unit/housecode for the virtual device. now I change it the the ID and it works perfect!

Best Regards,

Mikael
Back to Top View Neptuni's Profile Search for other posts by Neptuni
 

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