Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token help #11

Closed
rocrockyroc opened this issue Apr 21, 2023 · 6 comments
Closed

Token help #11

rocrockyroc opened this issue Apr 21, 2023 · 6 comments
Labels
question Further information is requested

Comments

@rocrockyroc
Copy link

rocrockyroc commented Apr 21, 2023

Hello,

Im reaching out to you for help with the dump file/token needed for Dirigera by ikea hub.

Im not familiar with the DUMP process.
I am using RPi4 in home assistant

if you can direct me to any further information, data or youtube videos, that be greatly appreciated to acquire this dump Token.

Regards

@rocrockyroc rocrockyroc added the bug Something isn't working label Apr 21, 2023
@TheMrBooyah TheMrBooyah added question Further information is requested and removed bug Something isn't working labels Apr 22, 2023
@TheMrBooyah
Copy link
Owner

Run the Dump Application

Prerequisites:

  • Java 17 (or higher) has to be installed
    • Download Java the latest OpenJDK for your operating system here
    • Unpack the zip file to a location of your choosing
    • Add JAVA_HOME to your environment variables with the following path <PATH_TO_UNPACKED_ZIP_FILE>
    • Add %JAVA_HOME%\bin to your path variable
    • Reboot your pc
    • Execute java -version
      • This should output something like:
        openjdk version "17.0.2" 2022-01-18
        OpenJDK Runtime Environment (build 17.0.2+8-86)
        OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
  • DIRIGERA Gateway is connected to the internet
    • Find the IP address of your DIRIGERA Gateway in your router.
Instructions
  1. Download the latest dirigera-client-dump.jar
  2. Run java -jar dirigera-client-dump.jar

    If the autodiscovery fails and no DIRIGERA is found in your Network, you may pass the DIRIGERA's connection details
    by the parameters --dirigera.hostname=<ip address of DIRIGERA Gateway> and
    --dirigera.port=8443.

This will ask you to pair your gateway. After successfully pairing the gateway a file 'dirigera_access_token' will be
created. Open the file with your favourite text editor and copy everything into the 'Token' field.

@rocrockyroc
Copy link
Author

Hello, thank you for the reply. Today i spent some hours trying to get the token and learning Java. The closest i have gotten was an error starting "No access token found. Pairing required" this was dump file running in windows command prompt output. It appears the dump program did find the hub. As the correct IP address etc were found.
Apologies but Im very keen on this not familiar with terminologies etc. If you have a further information or instruction please share with me. Mean while I'm seeking help from a java expert later this week. I suspect its easy.

@TheMrBooyah
Copy link
Owner

If the pairing was successful you should have a file dirigera_access_token somewhere near where you ran the program.
You can open this file with notepad and the string you see in the file is your access token.

I'm planning on making this program more user friendly since it's now made with the assumption people are technically inclined. I haven't had the time to do so just yet.

@rocrockyroc
Copy link
Author

rocrockyroc commented May 2, 2023 via email

@TheMrBooyah
Copy link
Owner

It seems the application tries to authenticate itself for pairing but isn't able to resolve the hostname of the hub to an IP.
Try running the command java -jar dirigera-client-dump.jar --dirigera.hostname=192.168.0.84 --dirigera.port=8443.

Please post the results in case anything still goes wrong

@rocrockyroc
Copy link
Author

rocrockyroc commented May 4, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants