Success controlling TCP Connected lights

classic Classic list List threaded Threaded
26 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Success controlling TCP Connected lights

Jeff Siddall
Good news: I now have my TCP Connected
(http://www.tcpi.com/connected-by-tcp) wireless lights controllable from
Misterhouse.  The gateway simply needs an appropriate HTTP POST to
control the lights.

There is certainly a better way to do this inside MH directly but I so
far just have a quick and dirty solution using the perl system function
and command line utilities.  If anyone knows how and wants to build this
in native to MH that would be great!

For most people the hardest part of setting these up is finding the DID
of the lamps themselves.  The way I did it was by sniffing the HTTP POST
packets while manually controlling things from the browser interface and
grabbing the XML body of the POST.  Somewhere in there is a <did> tag
with the value for the light being controlled.  I thought the JS in the
browser might reveal this information also but no luck so far finding it
there.

Anyway, once you have the DIDs the only other thing you need is the IP
address of the gateway.

The decoded commands (with encoded versions < > and / characters
converted to plain ASCII) look like this:

ON/OFF:
> cmd=DeviceSendCommand&data=<gip><version>1</version><token>1234567890</token><did>YOURDID</did><value>VALUE</value></gip>&fmt=xml

where YOURDID is the DID of the light you want to control and VALUE is
either 0 (for off) or 1 (for on)

Brightness:
> cmd=DeviceSendCommand&data=<gip><version>1</version><token>1234567890</token><did>YOURDID</did><value>DIMVALUE</value><type>level</type></gip>&fmt=xml

where YOURDID is the DID of the light you want to control and DIMVALUE
is the brightness in percent (don't use a % sigh on the end).

You can send them to the light with a command like this (properly
encoded and thus a bit harder to read) to turn on a light:

> echo -n "cmd=DeviceSendCommand&data=%3Cgip%3E%3Cversion%3E1%3C%2Fversion%3E%3Ctoken%3E1234567890%3C%2Ftoken%3E%3Cdid%3EYOURDID%3C%2Fdid%3E%3Cvalue%3E1%3C%2Fvalue%3E%3C%2Fgip%3E&fmt=xml" | POST -P "http://YOURGWIP/gwr/gop.php"

Jeff

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

Larry Roudebush
Thanks for the info.  I will need to look into it more, just have not had a free moment.  I did check the hub and it will respond on port 22.


On Tue, Jan 14, 2014 at 12:55 PM, Jeff Siddall <[hidden email]> wrote:
Good news: I now have my TCP Connected
(http://www.tcpi.com/connected-by-tcp) wireless lights controllable from
Misterhouse.  The gateway simply needs an appropriate HTTP POST to
control the lights.

There is certainly a better way to do this inside MH directly but I so
far just have a quick and dirty solution using the perl system function
and command line utilities.  If anyone knows how and wants to build this
in native to MH that would be great!

For most people the hardest part of setting these up is finding the DID
of the lamps themselves.  The way I did it was by sniffing the HTTP POST
packets while manually controlling things from the browser interface and
grabbing the XML body of the POST.  Somewhere in there is a <did> tag
with the value for the light being controlled.  I thought the JS in the
browser might reveal this information also but no luck so far finding it
there.

Anyway, once you have the DIDs the only other thing you need is the IP
address of the gateway.

The decoded commands (with encoded versions < > and / characters
converted to plain ASCII) look like this:

ON/OFF:
> cmd=DeviceSendCommand&data=<gip><version>1</version><token>1234567890</token><did>YOURDID</did><value>VALUE</value></gip>&fmt=xml

where YOURDID is the DID of the light you want to control and VALUE is
either 0 (for off) or 1 (for on)

Brightness:
> cmd=DeviceSendCommand&data=<gip><version>1</version><token>1234567890</token><did>YOURDID</did><value>DIMVALUE</value><type>level</type></gip>&fmt=xml

where YOURDID is the DID of the light you want to control and DIMVALUE
is the brightness in percent (don't use a % sigh on the end).

You can send them to the light with a command like this (properly
encoded and thus a bit harder to read) to turn on a light:

> echo -n "cmd=DeviceSendCommand&data=%3Cgip%3E%3Cversion%3E1%3C%2Fversion%3E%3Ctoken%3E1234567890%3C%2Ftoken%3E%3Cdid%3EYOURDID%3C%2Fdid%3E%3Cvalue%3E1%3C%2Fvalue%3E%3C%2Fgip%3E&fmt=xml" | POST -P "http://YOURGWIP/gwr/gop.php"

Jeff

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365



------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

Neil Cherry-3
On 01/14/2014 06:39 PM, Larry Roudebush wrote:
> Thanks for the info.  I will need to look into it more, just have not had a free moment.
>   I did check the hub and it will respond on port 22.

It supports 4 ports I can find with nmap:

Not shown: 996 closed ports
PORT     STATE SERVICE         VERSION
22/tcp   open  ssh             OpenSSH 5.9 (protocol 2.0)
|
|_
80/tcp   open  http?
|_ html-title: TCP
8888/tcp open  sun-answerbook?
9998/tcp open  unknown

22 is obvious, it has SSH, I didn't see a serial port on the main
board but it does have what looks like a JTAG interface. The processor
is an embedded Power PC but I didn't find any details (it's BGA so
that probably won't help).

I've also downloaded the default.js file from the web server and it
has a few interesting bits but I haven't done a lot of digging yet.
I have managed to reformat the Javascript (and ugly language) and
it's roughly 10K of code.

I'm hoping ot do a bit more digging and try to figure out how to get
the device table from it. If I've read the code correctly they've
done a nice bit of work and this thing actually could control quite
a bit (it has support for Z-Wave and other devices).

One thing to note, the first time you login to the device (at least
with mine) it seems to hang for a minute then commands are quick to
respond after that. It may be trying to contact the mother ship but
I have that blocked at the moment.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:     Linux Smart Homes For Dummies

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

Neil Cherry-3
In reply to this post by Jeff Siddall
On 01/14/2014 12:55 PM, Jeff Siddall wrote:
 > Good news: I now have my TCP Connected
 > (http://www.tcpi.com/connected-by-tcp) wireless lights controllable from
 > Misterhouse.  The gateway simply needs an appropriate HTTP POST to
 > control the lights.

 > For most people the hardest part of setting these up is finding the DID
 > of the lamps themselves.

Here's a bit more (the did or device ids):

# Commands needed (Linux):
$ echo -n
'cmd=GWRBatch&data=%3Cgwrcmds%3E%3Cgwrcmd%3E%3Cgcmd%3ERoomGetCarousel%3C%2Fgcmd%3E%3Cgdata%3E%3Cgip%3E%3Cversion%3E1%3C%2Fversion%3E%3Ctoken%3E1234567890%3C%2Ftoken%3E%3Cfields%3Ename%2Cimage%2Cimageurl%2Ccontrol%2Cpower%2Cproduct%2Cclass%2Crealtype%2Cstatus%3C%2Ffields%3E%3C%2Fgip%3E%3C%2Fgdata%3E%3C%2Fgwrcmd%3E%3C%2Fgwrcmds%3E&fmt=xml'
| POST -c 'application/x-www-form-urlencoded; charset=UTF-8' http://tcp.uucp/gwr/gop.php

Quasi XML Results (I added the line breaks to emphasize the sections of interest):

<gwrcmds><gwrcmd><gcmd>RoomGetCarousel</gcmd><gdata><gip><version>1</version><rc>200</rc>

<room><rid>2</rid><name>CR</name><desc></desc><known>1</known><type>0</type><color>004fd9</color><colorid>2</colorid><img>img/room/blue.png</img><power>0</power><poweravg>0</poweravg><energy>0</energy><device>

<did>36014...</did>

<known>1</known><lock>0</lock><state>1</state><level>5</level><node>0</node><port>0</port><nodetype>61440</nodetype><name>Fixture</name><desc></desc><colorid>2</colorid><imgs>products/device/GENERIC.png</imgs><imgm>products/device/GENERIC.png</imgm><imgb>products/device/GENERIC.png</imgb><imgs_s>products/device/GENERIC.png</imgs_s><imgm_s>products/device/GENERIC.png</imgm_s><imgb_s>products/device/GENERIC.png</imgb_s><type>multilevel</type><rangemin>0</rangemin><rangemax>99</rangemax><power>0.000425</power><poweravg>0</poweravg><energy>0</energy><score>0</score><productid>1</productid><prodbrand></prodbrand><prodmodel></prodmodel><prodtype>Light
Fixture</prodtype><prodtypeid>159</prodtypeid><classid>0</classid><class></class><subclassid>0</subclassid><subclass></subclass><other><rcgroup>1,4</rcgroup><manufacturer></manufacturer></other>
</device>
</room>

<room><rid>8</rid><name>Den</name><desc></desc><known>1</known><type>0</type><color>ff59b7</color><colorid>8</colorid><img>img/room/pink.png</img><power>0</power><poweravg>0</poweravg><energy>0</energy><device>

<did>21656...</did>

<known>1</known><lock>0</lock><state>1</state><level>5</level><node>129</node><port>0</port><nodetype>16386</nodetype><name>LED</name><desc>LED</desc><colorid>8</colorid><imgs>products/device/TCP-A19.png</imgs><imgm>products/device/TCP-A19.png</imgm><imgb>products/device/TCP-A19.png</imgb><imgs_s>products/device/TCP-A19.png</imgs_s><imgm_s>products/device/TCP-A19.png</imgm_s><imgb_s>products/device/TCP-A19.png</imgb_s><type>multilevel</type><rangemin>0</rangemin><rangemax>99</rangemax><power>0.000425</power><poweravg>0</poweravg><energy>0</energy><score>0</score><productid>1</productid><prodbrand>TCP</prodbrand><prodmodel>Leedarson
LED A19
8.5W</prodmodel><prodtype>LED</prodtype><prodtypeid>78</prodtypeid><classid>2</classid><class></class><subclassid>1</subclassid><subclass></subclass><other><rcgroup>2,4</rcgroup><manufacturer>TCP</manufacturer><bulbpower>8.5</bulbpower></other>

</device>
</room>

</gip></gdata></gwrcmd></gwrcmds>

I've replaced the actual did values  with an abreviated value. The
numbers are 18 digits long.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:     Linux Smart Homes For Dummies

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

Jeff Siddall
On 01/15/2014 02:27 AM, Neil Cherry wrote:
> # Commands needed (Linux):
> $ echo -n
> 'cmd=GWRBatch&data=%3Cgwrcmds%3E%3Cgwrcmd%3E%3Cgcmd%3ERoomGetCarousel%3C%2Fgcmd%3E%3Cgdata%3E%3Cgip%3E%3Cversion%3E1%3C%2Fversion%3E%3Ctoken%3E1234567890%3C%2Ftoken%3E%3Cfields%3Ename%2Cimage%2Cimageurl%2Ccontrol%2Cpower%2Cproduct%2Cclass%2Crealtype%2Cstatus%3C%2Ffields%3E%3C%2Fgip%3E%3C%2Fgdata%3E%3C%2Fgwrcmd%3E%3C%2Fgwrcmds%3E&fmt=xml'
> | POST -c 'application/x-www-form-urlencoded; charset=UTF-8' http://tcp.uucp/gwr/gop.php

Thanks Neil!

Here's some perl that will parse out the DIDs and names from that mess:

> my $data = `echo -n 'cmd=GWRBatch&data=%3Cgwrcmds%3E%3Cgwrcmd%3E%3Cgcmd%3ERoomGetCarousel%3C%2Fgcmd%3E%3Cgdata%3E%3Cgip%3E%3Cversion%3E1%3C%2Fversion%3E%3Ctoken%3E1234567890%3C%2Ftoken%3E%3Cfields%3Ename%2Cimage%2Cimageurl%2Ccontrol%2Cpower%2Cproduct%2Cclass%2Crealtype%2Cstatus%3C%2Ffields%3E%3C%2Fgip%3E%3C%2Fgdata%3E%3C%2Fgwrcmd%3E%3C%2Fgwrcmds%3E&fmt=xml' | POST http://GWIP/gwr/gop.php`;
>
> my @matches = ($data =~ /<device>.*?<did>(.*?)<\/did>.*?<name>(.*?)<\/name>/g);
>
> print ("Devices:\n");
>
> while (@matches) {
>     my $did = shift @matches;
>     my $name = shift @matches;
>     print "DID: $did Name: $name\n";
> }

Simply replace GWIP in the URL at the end of the top line with your
gateways IP address and it should give you a nice list with the DIDs and
names of each device.

BTW: the gateway doesn't seem picky about the charset so I left it out
of my code.

Jeff

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

Jeff Siddall
In reply to this post by Neil Cherry-3
On 01/14/2014 08:50 PM, Neil Cherry wrote:
> I'm hoping ot do a bit more digging and try to figure out how to get
> the device table from it. If I've read the code correctly they've
> done a nice bit of work and this thing actually could control quite
> a bit (it has support for Z-Wave and other devices).

Hmmm... I have never looked into Z-Wave but if I now have a gateway
setup maybe I should!

> One thing to note, the first time you login to the device (at least
> with mine) it seems to hang for a minute then commands are quick to
> respond after that. It may be trying to contact the mother ship but
> I have that blocked at the moment.

I have noticed that also.  I block HTTP in favor of an authenticated
proxy, but to the GW it's effectively the same thing.  Annoying because
the delay is rather long (30 seconds?) though it is less often than just
the first connection.  I notice the delay on perhaps 20% of calls.

If it is waiting for something from the internet maybe I should redirect
it to a local server and provide an immediate 404 or something that
might unblock it.  This will take some testing but I think for this
thing to be truly useful I will need to solve it.

BTW: range seems decent.  I have a light that is probably 40 ft from the
gateway and through a few walls and it appears to work reliably.  Nice!

Jeff

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

Steve Switzer
In reply to this post by Neil Cherry-3
I Absolutely agree with blocking this devices access to the internet.
Any time a company says, "You'll have secure plug-and-play access to
your device/home/whatever for only $9.95/month", I get leery. If THEY
give ME secure access to MY stuff, then that means THEY have full access
to MY stuff first, before then can give it to me. I did the same thing
with the SmartLinc - not outbound Internet for you! LOL

I set up a VPN on my phone, so I can VPN in, then use the Insteon app
with a direct IP connection to control items. I'd suggest that anyone
using this device considers the ramification of some other company
having access to your house lights, then deny it access to the Internet
with your router or firewall, and configure it yourself.

Best regards,
Steve Switzer

---
Get world-class business I.T. services and a phone system with awesome features that won't challenge your budget!
http://www.SwitzerBusinessSolutions.com

On 01/14/2014 08:50 PM, Neil Cherry wrote:
> It may be trying to contact the mother ship but I have that blocked at
> the moment.


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

ctguess
This post has NOT been accepted by the mailing list yet.
Gentlemen,

First...great work on this.  Seeing your success prompted me to go buy a starter kit at Home Depot today.  I'm having trouble, however, getting the device ids.  I've followed your code exactly and am running it on mac os x in terminal by invoking >perl contcp.pl.  

The contents of that script file are:

my $data = `echo -n 'cmd=GWRBatch&data=%3Cgwrcmds%3E%3Cgwrcmd%3E%3Cgcmd%3ERoomGetCarousel%3C%2Fgcmd%3E%3Cgdata%3E%3Cgip%3E%3Cversion%3E1%3C%2Fversion%3E%3Ctoken%3E1234567890%3C%2Ftoken%3E%3Cfields%3Ename%2Cimage%2Cimageurl%2Ccontrol%2Cpower%2Cproduct%2Cclass%2Crealtype%2Cstatus%3C%2Ffields%3E%3C%2Fgip%3E%3C%2Fgdata%3E%3C%2Fgwrcmd%3E%3C%2Fgwrcmds%3E&fmt=xml' | POST http://192.168.1.228/gwr/gop.php`;

my @matches = ($data =~ /<device>.*?<did>(.*?)<\/did>.*?<name>(.*?)<\/name>/g);

print ("Devices:\n");

while (@matches){
my $did = shift @matches;
my $name = shift @matches;
print "DID: $did Name: $name\n";
}

Which is an exact copy of your perl script, except for my ip address.  When I run it I get the following error:
sh: http://192.168.1.228/gwr/gop.php: No such file or directory
Devices:


I was wondering if you could provide some advice on what I might be doing wrong, or what I might try differently to get the device ids.  I have the mobile app downloaded and I've been able to create and control one bulb, so I know that everything from a network perspective is correct.  

I'm just learning Perl, but excited to get this working as my first small success.

Thanks,
Chris
Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

Jeff Siddall
In reply to this post by Steve Switzer
On 01/15/2014 01:28 PM, Steve Switzer wrote:
> I Absolutely agree with blocking this devices access to the internet.
> Any time a company says, "You'll have secure plug-and-play access to
> your device/home/whatever for only $9.95/month", I get leery. If THEY
> give ME secure access to MY stuff, then that means THEY have full access
> to MY stuff first, before then can give it to me. I did the same thing
> with the SmartLinc - not outbound Internet for you! LOL

It appears my gateway is looking for tcp.greenwavereality.com every two
seconds on TCP 49494.  I have stopped simply ignoring those requests and
have instead started replying with an ICMP 106 Destination unreachable
(Port unreachable).

Hasn't stopped the thing from trying but I am hoping the immediate
response will prevent it from blocking.

I'll watch it for a bit and see how it behaves.

Jeff

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

mmcginty
In reply to this post by Jeff Siddall
Greets,

Interesting thread. Just a one thing to note...

The gateway accepts GET requests as well as POST, just tack the XML command block onto the URL and your browser will do all the encoding/decoding for you, plus it formats the returned XML for easier reading. e.g.,

<a href="http://192.168.###.###/gwr/gop.php?cmd=RoomSendCommand&data=">http://192.168.###.###/gwr/gop.php?cmd=RoomSendCommand&data=<gip><version>1</version><token<1234567890</token><rid>1</rid><value>0</value></gip>&fmt=xml
Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

Jeff Siddall
On 01/22/2014 11:51 AM, mmcginty wrote:

> Greets,
>
> Interesting thread. Just a one thing to note...
>
> The gateway accepts GET requests as well as POST, just tack the XML
> command block onto the URL and your browser will do all the
> encoding/decoding for you, plus it formats the returned XML for easier
> reading. e.g.,
>
> <a
> href="<a href="http://192.168.###.###/gwr/gop.php?cmd=RoomSendCommand&data=">http://192.168.###.###/gwr/gop.php?cmd=RoomSendCommand&data="><a href="http://192.168.###.###/gwr/gop.php?cmd=RoomSendCommand&data=">http://192.168.###.###/gwr/gop.php?cmd=RoomSendCommand&data=<gip><version>1</version><token<1234567890</token><rid>1</rid><value>0</value></gip>&fmt=xml

Interesting, I never tried that.  Thanks for the update!

Jeff

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

Jeff Siddall
In reply to this post by Jeff Siddall
On 01/20/2014 12:40 PM, Jeff Siddall wrote:
> It appears my gateway is looking for tcp.greenwavereality.com every two
> seconds on TCP 49494.  I have stopped simply ignoring those requests and
> have instead started replying with an ICMP 106 Destination unreachable
> (Port unreachable).
>
> Hasn't stopped the thing from trying but I am hoping the immediate
> response will prevent it from blocking.
>
> I'll watch it for a bit and see how it behaves.

Update: I haven't noticed any more pauses since immediately responding
to those requests to tcp.greenwavereality.com

Problem solved!

Jeff

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

yonubear
This post has NOT been accepted by the mailing list yet.
In reply to this post by Jeff Siddall
Hi,

I know I am new to the list but I am hoping some one can help me out I am attempting to integrate my TCP Connected lights into my existing automation system which I must say is not misterhouse based but this is the first references I have found to using the TCP Connected lights without there apps.  I am trying to figure out how to use the code you guys posted in Lua would anyone beable to help me with this?

Thanks,
Yonubear
Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

yonubear
In reply to this post by Jeff Siddall
Hi,

I know I am new to the list but I am hoping some one can help me out I am attempting to integrate my TCP Connected lights into my existing automation system which I must say is not misterhouse based but this is the first references I have found to using the TCP Connected lights without there apps.  I am trying to figure out how to use the code you guys posted in Lua would anyone beable to help me with this?

Thanks,
Yonubear
Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

Neil Cherry-3
On 02/28/2014 05:36 PM, yonubear wrote:
> Hi,
>
> I know I am new to the list but I am hoping some one can help me out I am
> attempting to integrate my TCP Connected lights into my existing automation
> system which I must say is not misterhouse based but this is the first
> references I have found to using the TCP Connected lights without there
> apps.  I am trying to figure out how to use the code you guys posted in Lua
> would anyone beable to help me with this?

I think what we've posted is the URL so whatever tools (code) you
have the can send and receive http requests and html responses is
the code you would work with. Check for XML, web, http, POST and
GET libraries.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:     Linux Smart Homes For Dummies

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

ctguess
In reply to this post by yonubear
at the risk of breaking some forum rules, you can check out the discussion at this link...  http://forum.micasaverde.com/index.php/topic,22555.0/topicseen.html



On Feb 28, 2014, at 4:36 PM, yonubear [via MisterHouse] wrote:

Hi,

I know I am new to the list but I am hoping some one can help me out I am attempting to integrate my TCP Connected lights into my existing automation system which I must say is not misterhouse based but this is the first references I have found to using the TCP Connected lights without there apps.  I am trying to figure out how to use the code you guys posted in Lua would anyone beable to help me with this?

Thanks,
Yonubear



If you reply to this email, your message will be added to the discussion below:
http://misterhouse.10964.n7.nabble.com/Success-controlling-TCP-Connected-lights-tp19316p19583.html
To unsubscribe from Success controlling TCP Connected lights, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

yonubear

Thanks that is what I needed. I have just about finished a plugin for the program I use

 

Thanks,

Reg

 

From: ctguess [mailto:[hidden email]]
Sent: Friday, February 28, 2014 10:09 PM
To: [hidden email]
Subject: Re: [mh] Success controlling TCP Connected lights

 

at the risk of breaking some forum rules, you can check out the discussion at this link...  http://forum.micasaverde.com/index.php/topic,22555.0/topicseen.html

 

 

 

On Feb 28, 2014, at 4:36 PM, yonubear [via MisterHouse] wrote:



Hi,

I know I am new to the list but I am hoping some one can help me out I am attempting to integrate my TCP Connected lights into my existing automation system which I must say is not misterhouse based but this is the first references I have found to using the TCP Connected lights without there apps.  I am trying to figure out how to use the code you guys posted in Lua would anyone beable to help me with this?

Thanks,
Yonubear


If you reply to this email, your message will be added to the discussion below:

http://misterhouse.10964.n7.nabble.com/Success-controlling-TCP-Connected-lights-tp19316p19583.html

To unsubscribe from Success controlling TCP Connected lights, click here.
NAML

 


View this message in context: Re: Success controlling TCP Connected lights
Sent from the Misterhouse - User mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

me
Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

me
This post was updated on .
In reply to this post by Neil Cherry-3
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

Larry Roudebush
Wow, awesome.  Now for some play time with this thing.
Thanks!


On Mon, Aug 25, 2014 at 1:20 AM, Gavin Groce <[hidden email]> wrote:
ssh root password on greenwave reality smart bulbs is "thinkgreen" ...



--
View this message in context: http://misterhouse.10964.n7.nabble.com/Success-controlling-TCP-Connected-lights-tp19316p20030.html
Sent from the Misterhouse - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users



------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

me
Reply | Threaded
Open this post in threaded view
|

Re: Success controlling TCP Connected lights

me
This post has NOT been accepted by the mailing list yet.
12