dvdgeisler / DirigeraClient

Dirigera Client API: Java written client API to interface IKEA's new smarthome hub DIRIGERA
MIT License
74 stars 9 forks source link

Cannot pair gateway #97

Closed maxeitelwein closed 5 months ago

maxeitelwein commented 7 months ago

I am trying to pair my Dirigera gateway, which does not work because it does not seem to fetch a token from the gateway. The gateway is discovered. I assumed I had to press the button on the back of the gateway to enter a pairing mode, which does not seem to be the case. The program crashes after a few seconds with a "connection times out" error.

java.lang.IllegalStateException: Failed to execute CommandLineRunner at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:774) ~[spring-boot-2.7.5.jar!/:2.7.5] at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:755) ~[spring-boot-2.7.5.jar!/:2.7.5] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.7.5.jar!/:2.7.5] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-2.7.5.jar!/:2.7.5] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-2.7.5.jar!/:2.7.5] at de.dvdgeisler.iot.dirigera.client.dump.DumpApplication.main(DumpApplication.java:60) ~[classes!/:0.0.1-SNAPSHOT] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[dirigera-client-dump.jar:0.0.1-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[dirigera-client-dump.jar:0.0.1-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[dirigera-client-dump.jar:0.0.1-SNAPSHOT] at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65) ~[dirigera-client-dump.jar:0.0.1-SNAPSHOT] Caused by: org.springframework.web.reactive.function.client.WebClientRequestException: connection timed out: {my_ip:8843}; nested exception is io.netty.channel.ConnectTimeoutException: connection timed out

I guess this is just an user error on my side, it would still be great if someone could explain how I can get over it. Thank you!