How would one start in trying to determine how to Either make a new binding or make use of an existing one to interact with the tcp connected lights… He starter kit is a mere £35 in homebase for two bulbs and a hub.
This is the corporate site http://www.connectedbytcp.co.uk
There are apple and android apps, so some sort of tcp/Udp connection must be there to the gateway.
The bulbs give feedback which is cool.
Since then I’ve gotten everything working. If you want to checkout my code and methodology I’ve posted it on github. Use the develop branch at SingleDadLiving/connectedbytcp
What were the permissions issues you had to sort out?
my node stuff lives in /home/stuart/node_modules/connectedbytcp but i chown 'd it to openhab… is that enough?
I dont seem to get any errors in the debug log for the exec binding etc.
Currently just trying to test the All on/off function.
I think I copied all the node modules to the scripts directory of openhab, then changed the permissions to the openhab user, in my case pi. Then updated my rules to reference the new path
Thanks. Will try that once I get my OH install working properly again
After trying this JS stuff my serial connection wont work and the squeezebox stuff is a bit dodgy now too… I’ve half fallen out of love with OH now :lol:
The code mentioned in this post continues to function despite the following announcement by TCP:
We regret to inform you that
we are making changes to our support model and will be discontinuing
the following services associated with the Connected by TCP system
effective June 30, 2016:
Access via the internet and connectivity through cloud services Updates of the TCP Lighting App
Importantly, the following functionality will be unaffected by these changes in services:
Lighting controls through a local (Wifi) connection General Illumination with Connected by TCP bulbs
This caused the price of these bulbs to fall dramatically. I found approximately 30 bulbs at $2.00 US per bulb at an auction of what appeared to be items returned after purchase at Home Depot. The gateway (still required) was around $30 US on Ebay which didn’t feel like a good price but the sticker (also a Home Depot return) was over $90 US.
@sentur OH rules call nodejs code which interacts with the gateway. This means the same nodejs code can be called from the command line which is useful for debugging. I had some issues getting the sample item/sitemap/rules working because of some mismatched paths in the rules which I resolved by altering them to be fully qualified paths.
edit: the official “TCP Lighting” app by Greenwave Systems (at least on android) can still be used to name and control bulbs as well as create and assign rooms.
I’ve been trying to integrate my TCP bulbs and found this, but I’m getting a bunch of npm errors trying to install the package. Is there an install guide anyone might have put up somewhere on the internet? In my previous build I ran into the same issues but actually just found a (painful) way around it using the HTTP binding. But I had to work some SSL certificate magic that time, and now after migrating to a Pi3 I can’t seem to replicate that so I’m stuck with fatal transport errors when openhab tries to access the TCP https address for a bulb. Any help would be appreciated!