0

I'd like to control a light-bulb from outside my home network (ideally from an AWS Lambda function).

I understand that doing this is possible, as per this page (authentication required).

I have defined my app and I have my app's ID, ClientID, ClientSecret and callback URL.

However, the authentication process (OAuth2) is quite complex, although documented here (again, you need to be authenticated to access this page).

Is there a library that handles the process for me? Ideally an NPM module ... I found a number of Philips Hue related projects (huejay, js-hue, ...) but none deals with the authentication part for external applications.

PS: I've also posted this message to the Meethue forum, but hope I might get a response here quicker.

PPS: This question is now outdated, I think as there is an official Remote API.

halfer
  • 19,824
  • 17
  • 99
  • 186
jfix
  • 477
  • 4
  • 21
  • Aside: cross-posting between fora on the web tends to be discouraged, at least at the same time, since it has the capacity to create duplicate/wasted effort. Would you supply the URL of the duplicate copy, so that in the future, people can click from here to there as well, in case that thread has answers that this one does not have? Please also post the URL of this thread over there. – halfer Jun 18 '18 at 21:33
  • 1
    @halfer thanks for editing my question! :-) I've added a link to the meethue.com forum question and will do the same over there. Let's hope someone has an answer! – jfix Jun 18 '18 at 22:11

1 Answers1

0

This is now built into the latest versions of node-hue-api (which is in npm registry) and provides documentation on setting up the Remote connection using the library: https://github.com/peter-murray/node-hue-api/blob/master/docs/remoteSetup.md

  • Peter Murray thanks for the link; I will check it out shortly and then mark your answer as accepted. – jfix Nov 22 '19 at 21:46