bren1818 / TCPLightingWebInterface

Web App interface to control the "Connected by TCP" bulbs
MIT License
30 stars 15 forks source link

Adding bulbs without factory remote #16

Open driessamyn opened 4 years ago

driessamyn commented 4 years ago

Is there a way to add bulbs without the factory remote? Some of my bulbs seem to have "de-registered" and now that the app has disappeared I am a bit stuffed. If anybody knows anything about the adding bulb protocol, I'm happy to try to add this to the code.

Thanks.

sktaylortrash commented 4 years ago

Right at the bottom of the web interface for this project there is the option to add bulbs. It says beta but only I think because it just never got updated to not say so. I've added many many bulbs using that function

bren1818 commented 4 years ago

As Paul indicated - he beat me to replying - Yes you can add bulbs without issue once you put them into discovery mode ( essentially powering them on / off a few times until they fade up/down ) then hit the sync button on the bridge and click the "Search for Bulbs. (Beta)" link at the bottom of the interface.

I do have it labelled as beta because I haven't cleaned up the interface but it seems to work well. If it says it has found X bulbs and when the page finishes the discovery and shows a different number, then it has found and added the bulbs.

Cheers,

Bren

On Fri, Dec 13, 2019, 8:58 AM Dries Samyn notifications@github.com wrote:

Is there a way to add bulbs without the factory remote? Some of my bulbs seem to have "de-registered" and now that the app has disappeared I am a bit stuffed. If anybody knows anything about the adding bulb protocol, I'm happy to try to add this to the code.

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bren1818/TCPLightingWebInterface/issues/16?email_source=notifications&email_token=AAQMEH235M2WTWUX3O227GLQYOIGZA5CNFSM4J2NLTH2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IAKSTIQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQMEH5DJLZZ5NUXFHQHOKDQYOIGZANCNFSM4J2NLTHQ .0

driessamyn commented 4 years ago

Awesome. Thanks!

Thanks for putting this together as well. I may try to reverse engineer and build a REST API around this.

bren1818 commented 4 years ago

Go for it! Should be pretty easy to do so. The majority of the commands are contained within api.php in the project with some wrappers around the calls to the bridge. Some of the other commands you may have to pull out of the pages like the scheduler though

On Thu, Dec 19, 2019, 3:55 PM Dries Samyn notifications@github.com wrote:

Awesome. Thanks!

Thanks for putting this together as well. I may try to reverse engineer and build a REST API around this.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bren1818/TCPLightingWebInterface/issues/16?email_source=notifications&email_token=AAQMEH7GJIL2ZWJ2MUZAD3TQZPNVZA5CNFSM4J2NLTH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHLAEAY#issuecomment-567673347, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQMEHYOCH7WDOYYGBJW3ULQZPNVZANCNFSM4J2NLTHQ .

sktaylortrash commented 4 years ago

Also I have a fork with MQTT pub/sub and Home Assistant Auto Discovery if you are using that in your environment. https://github.com/sktaylortrash/TCPLightingWebInterface-MQTT