Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: insteon control Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ibengal
Newbie
Newbie


Joined: March 24 2007
Online Status: Offline
Posts: 7
Posted: March 28 2007 at 16:29 | IP Logged Quote ibengal

I managed to get the insteon switch and usb controller working where now I can do simple control from the pc which is the first test.

I would like to send a message (from another PC) that tells the switch to turn on to a specific level (80% for example). I was looking at the varaibles but got a little lost.

any help is greatly appreaciated. So far I really like the application.

Itai
Back to Top View ibengal's Profile Search for other posts by ibengal
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: March 28 2007 at 16:35 | IP Logged Quote TonyNo

What kind of message? You could use email, the web server in PH and the built-in web pages, or you could set up TCP sockets and use that.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
ibengal
Newbie
Newbie


Joined: March 24 2007
Online Status: Offline
Posts: 7
Posted: March 28 2007 at 17:28 | IP Logged Quote ibengal

I will be using xlobby as my main interface so I will use some of Manny's tips to get the communication. I am just not sure what the formula should read (Manny's example used x10).

I also can use girder in case it helps.

Itai
Back to Top View ibengal's Profile Search for other posts by ibengal
 
cmhardwick
Senior Member
Senior Member
Avatar

Joined: July 08 2006
Location: United States
Online Status: Offline
Posts: 290
Posted: March 28 2007 at 18:32 | IP Logged Quote cmhardwick

I use this setup. When I get home (hopefully not in the wee hours this time) an example of what I'm using. You want to go FROM xLobby TO PowerHome, correct?

__________________
Cicero, Enjoying automation!
Back to Top View cmhardwick's Profile Search for other posts by cmhardwick Visit cmhardwick's Homepage
 
cmhardwick
Senior Member
Senior Member
Avatar

Joined: July 08 2006
Location: United States
Online Status: Offline
Posts: 290
Posted: March 28 2007 at 20:32 | IP Logged Quote cmhardwick

Ok, in XLobby, create an event for what you want to do, of course and link it to a button. Mine happen to be lightbulbs (you can see a screenshot of my automation page on the XLobby forum here http://www.xlobby.com/forum/viewtopic.php?t=4733

The event (in my case AntBdrmOn) turns the overhead light in one of my bedrooms on, full (I have another that turns it off, the only difference being ioff and 0 in the parameters below)
Under the event, I have a command .. execute file (under OS)

download and install the phsscmd.exe to your XLobby PC.
Make sure SocketServer is running in PH. Edit the phsscmd.ini file to match the parameters of you PH machine (IP Address, Port, UserID and Password you set in PH)

The Execute File parameters are,
File - C:\Program Files\PHSSCMD\phsscmd.exe (this may vary on your PC)
Arguments - ph_insteon("Antique Bedroom",ion,255) where "Antique Bedroom" is the device name in PH (Case sensitive, I believe), ion is the ON command and 255 is the level, in this case full. To set it to 80%, you'd multiply 255*.8 getting 204 for the level.

If you want to use a specific ramprate other than "instant", you'll need to create groups in your PLC with the rates and control the group. The command for that is ph_insteonrawgroup("INSTEON",212,ion,255) where "INSTEON" is the PLC name, 212 is the group, ion and 255 are the same as the ph_insteon above.

I hope this helps you!

Edited by cmhardwick - March 28 2007 at 20:40


__________________
Cicero, Enjoying automation!
Back to Top View cmhardwick's Profile Search for other posts by cmhardwick Visit cmhardwick's Homepage
 

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