v3: non https connection to Hue bridge
See original GitHub issueCan it be that non-https connection to port 80 is no longer possible to the Hue Bridge? It seems like it is always using https
connect(username, clientkey, timeout) {
const self = this
, hostname = self.hostname
, baseUrl = self.baseUrl
;
return axios.get(`${baseUrl}/api/config`, {httpsAgent: new https.Agent({rejectUnauthorized: false})})
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Hue Bridge Connectivity Issues - Huetips
If the 3rd or Internet light on your hue bridge is flashing, first try unplugging the power from your bridge and router for...
Read more >it's not possible for Philips to add HTTPS support to the hue ...
it's not possible for Philips to add HTTPS support to the hue bridge without some sort of cloud roundtrip to a Philips server....
Read more >How To Connect Hue Bridge Without Ethernet Cable
To connect Hue Bridge without ethernet, use a router with bridge mode and connect the device wirelessly to it or rework the Hue...
Read more >Zigbee 3.0 support in Hue ecosystem - Philips Hue Developer
At present the Philips Hue bridge only supports Zigbee Light Link ... Does that mean Zigbee 3.0 third party bulbs will not work...
Read more >Getting Started with Philips Hue
If the 3rd or Internet light on your hue bridge is flashing, first try unplugging the power from your bridge and router for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, works.
I have released version
3.4.0
to the npm registry with an insecure connection option.It will print a warning indicating that you are using an insecure method for establishing a connection to the Hue Bridge. Consumers of the library should be using https, which is the default for the library, and this is here only to satisfy the software emulation solutions that appear to exist.
I will not support issues that arise from this library being used against emulated bridges. The Bridge API changes and has plenty of minor quirks in it which come and go as the bridge firmware is updated. Most emulated solutions will introduce other quirks or failures to match the Hue Bridge in certain edge cases.
To use the new connection method, use code like the following:
To really get the point across about this not being something I want used it will report a warning to the user on
console.error
. This can be suppressed using the presence of an environment variableNODE_HUE_API_USE_INSECURE_CONNECTION
as there may be valid situations that may require this, although I cannot think of any as disabling security for users is far from ideal.