Comments (8)
could it be, that this error message is wrong?
Maybe. To confirm please run your script with the following command-line and post the logs here:
# on linux:
DEBUG=node-*-client node main.js
# on Windows:
set DEBUG=node-*-client && node main.js
where main.js is your script name.
from node-tradfri-client.
jep just did that:
node-tradfri-client [DEBUG] Attempting connection. Identity = Client_identityfoo, psk = <redacted>, this.requestBase = coaps://gw-a0xx...:5684/ +4ms
node-coap-client getConnection(coaps://gw-a0xx...:5684) => establishing new connection +4ms
node-coap-client socket creation for origin coaps://gw-a0xx...:5684 failed: Error: getaddrinfo ENOTFOUND gw-a0xx... +11ms
node-coap-client socket creation for origin coaps://gw-a0xx...:5684 failed: Error: getaddrinfo ENOTFOUND gw-a0xx... +2ms
node-coap-client socket creation for origin coaps://gw-a0xx...:5684 failed: Error: getaddrinfo ENOTFOUND gw-a0xx... +1ms
node-coap-client tryToConnect(coaps://gw-a0xx...:5684) => failed with error: Error: getaddrinfo ENOTFOUND gw-a0xx... +0ms
node-tradfri-client [DEBUG] Connection failed. Reason: timeout +15ms
The (unconfigured) gateway works - at least the ios app can connect
from node-tradfri-client.
Well, the gateway is actually not being found. Try the IP address, afaik some users have trouble connecting by hostname, while some have trouble connecting by IP - might be related to the gateway revision.
from node-tradfri-client.
Firmware version is - according to the mdns record v1.3.14.
You was right, connecting with the ip works like a charm.... wtf.
ping the gateway with the name does not work (also not using the .local suffix). now thats weird, i'll check with a second gateway where this worked.
I'll give feedback as soon as I know more.
from node-tradfri-client.
Just one wild guess, running discovery, the gateway returns addresses: [ '10.0.0.94', 'fe80::a2cc:2bff:fef8:535d' ] }
- it looks like it exposes its link-local ipv6 address, that might be an actual bug on the gateway
from node-tradfri-client.
it exposes its link-local ipv6 address, that might be an actual bug on the gateway
Mine does that too, but it only sends that to my PC's IPv6 address, so the current discovery doesn't work. What's the problem with exposing the IPv6 address? I'm not too familiar with that.
from node-tradfri-client.
not sure, but the "fe80::" address is a link-local address (think the 127.0.0.1 of ipv6). so it might be that the name is mapped either to the working ipv4 address or to the non working ipv6 address. its not defined who "wins" when you query the name, so name resolution might work or not.
as a current workaround, I guess I stick to using the ipv4 address - then it at least works as long no ip change happens.
from node-tradfri-client.
ok, second gateway works without any issues (ping gw-a0cc.. works, so is ping ip).
-> guess thats related to the gateway firmware
from node-tradfri-client.
Related Issues (20)
- setColorTemperature does not affect real bulb when it's off HOT 4
- observeGroupsAndScenes hangs after gateway update HOT 14
- Can set group brightness but not colour temperature HOT 9
- Other rgb ligths not recognized as rgb but as white HOT 3
- New properties in gateway firmware v1.13.21 HOT 3
- v2.2.0 build issues from shared-types HOT 3
- TRADFRI Shortcut-Button HOT 2
- Correctly iterating bulbs HOT 2
- Any news about support for motion sensor? HOT 6
- `device updated` events during transition time HOT 2
- problems with firmware 1.15.34 HOT 5
- Can no longer connect after being shut off during vacation HOT 2
- High transition time is ignored in my setup HOT 3
- The network stack was reset. crashes Node-Red HOT 3
- Amazing library - A big thank you HOT 1
- Unknown cipher in Electron HOT 39
- warnings about unknown properties
- UnhandledPromiseRejectionWarning while pairing HOT 2
- Check if switching to mdns-scanner makes sense
- discoverGateway returns null HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-tradfri-client.