Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: ph_sendup() - Help Needed Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: April 02 2015 at 20:14 | IP Logged Quote smarty

I am trying to integrate my color changing LED lights with PowerHome. The LED lights are below.

See here: (Link 1)
and here: (Link 2)


I am trying to send this command(all on):

ph_sendudp("192.168.0.60",8899,"0x42 0x00 0x55")

as per the documentation/links above.

PowerHome DOESN'T give me an error, but my lights don't respond either (they do work with my hand held remote and also my iPhone app remote).

I know the port (8899) is correct.   I believe the IP address is correct (because I can log into the bridge device at this address and see all of its settings).

I suspect my problem lies in the formation of the UPD string. I have tried to format it the same way as shown in the example links.

Other ideas/suggestions??

I was hoping to use the UDP Listener plugin to see what message format came across on the TEMP variables, but the plugin seems to give me an error (see bug reports area).



__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: April 02 2015 at 23:33 | IP Logged Quote dhoward

Steve,

The problem is the data you're attempting to send. The
ph_sendudp function does not have any mechanism for
escaping hex data and so is sending exactly what you
typed (a 0 followed by an x followed by a 4 etc). It
currently doesnt have the ability to non-typeable
data.

Ive added to the to-do list to create a new
ph_sendudp1 function which will allow a flags
parameter and the escaping of binary data so these
types of strings can be sent.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: June 07 2016 at 09:20 | IP Logged Quote smarty

Any new news here?

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: June 14 2016 at 19:07 | IP Logged Quote dhoward

Steve,

Since I still don't seem to be close to getting the
next version out, I was thinking of putting together a
plugin that includes some of the functionality that is
upcoming but realized that the plugin framework in the
current version is also one of the major problems.

Still, I could probably whip together a little command
line utility that can be called by PowerHome if you're
interested.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: June 15 2016 at 07:31 | IP Logged Quote smarty

Dave,
    No worries...While I would eventually love to see direct PH send/receive UDP integration via a plugin or otherwise; presently I am investigating sending command lines to this little piece of software to control my Limitless brand LED RGB+W lights Link

When I want to control the lights, I launch the software, and send command lines to the application (or at least that is how its supposed to work)...it is still a work in progress.

Neat thing about it is that it can make your lights "dance to the music" from most any computer based music source.

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 

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