I tried it too with the same result (on a Pi5 64bit)
@Larsen @schmidmuc Did you start it via npm start
or via the binary release files? Unfortunately, I have not yet tested the latter.
Can you please try to install libgbm.
sudo apt install libgbm1
I will try to set up a Ubuntu VM to reproduce the problem.
I just tried it under Ubuntu 24.04:
sudo apt install git
sudo apt install npm
git clone https://github.com/bruestel/homeconnect-profile-downloader.git
cd homeconnect-profile-downloader
npm i
npm start
I started it with npm start
I did that but the error remains the same. Then I installed all missing libraries (libatk, libatk-bridge, libgtk) with apt but then I got
[164910:1224/073614.047097:ERROR:ozone_platform_x11.cc(245)] Missing X server or $DISPLAY
[164910:1224/073614.047674:ERROR:env.cc(258)] The platform failed to initialize. Exiting.
I could try later on Ubuntu which has x installed.
Same here…
Started it with npm start
.
After sudo apt install libgbm1
following output with errors at the end were shown (openHab runs on a server without graphical ui):
homeconnect-profile-downloader@0.0.1 start
electron-forge start
Checking your system
Locating application
Loading configuration
Preparing native dependencies [0.4s]
Running generateAssets hook
Running preStart hook
[3431103:1224/233138.915901:ERROR:ozone_platform_x11.cc(245)] Missing X server or $DISPLAY
[3431103:1224/233138.915941:ERROR:env.cc(258)] The platform failed to initialize. Exiting.
The tool must be started on a device with a graphical user interface. It is only used to load the profiles. You can then upload the zip file in the web interface (Home Connect Direct Console). I will adapt the description.
I currently use Linux only for server stuff… but there should be an old mini-Pc somewhere in the basement.
I’ll try later to make it run and test the tool.
Please checkout Cleanup file name · bruestel/homeconnect-profile-downloader@7949953 · GitHub
On the bottom of the page are builds for Win, Mac OS and Linux.
I’ve tested the binaries. On Mac (M3 MacBook) I got the message that the binary has an error but I got it working on Windows.
So I was able to download the profiles and import them into the binding.
I still have the problem that the generic things don’t have channels - only the predefined ones.
Thanks
Ndy
I did a quick try with Ubuntu but npm install fails with:
npm WARN tarball tarball data for @electron/node-gyp@git+ssh://git@github.com/electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2 (sha512-lBSgDMQqt7QWMuIjS8zNAq5FI5o5RVBAcJUGWGI6GgoQITJt3msAkUrHp8YHj3RTVE+h70ndqMGqURjp3IfRyQ==) seems to be corrupted. Trying again.
npm WARN tarball tarball data for @electron/node-gyp@git+ssh://git@github.com/electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2 (sha512-lBSgDMQqt7QWMuIjS8zNAq5FI5o5RVBAcJUGWGI6GgoQITJt3msAkUrHp8YHj3RTVE+h70ndqMGqURjp3IfRyQ==) seems to be corrupted. Trying again.
npm ERR! code EINTEGRITY
npm ERR! sha512-lBSgDMQqt7QWMuIjS8zNAq5FI5o5RVBAcJUGWGI6GgoQITJt3msAkUrHp8YHj3RTVE+h70ndqMGqURjp3IfRyQ== integrity checksum failed when using sha512: wanted sha512-lBSgDMQqt7QWMuIjS8zNAq5FI5o5RVBAcJUGWGI6GgoQITJt3msAkUrHp8YHj3RTVE+h70ndqMGqURjp3IfRyQ== but got sha512-vrnkDg+mh6ix9PISDcjMwwyxaLI4qU6UOM8anOI/st4smh0Y5kqsoRpwl8vwL4zHjKUU/zZF8tTOOrlhp4u0SQ==. (457766 bytes)
npm ERR! A complete log of this run can be found in:
npm ERR! /home/openhabian/.npm/_logs/2024-12-26T14_21_44_998Z-debug-0.log
And in the log I get:
718 http fetch GET 200 https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2 1561ms (cache miss)
719 warn tarball tarball data for @electron/node-gyp@git+ssh://git@github.com/electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2 (sha512-lBSgDMQqt7QWMuIjS8zNAq5>
720 timing reifyNode:node_modules/lodash Completed in 4333ms
721 timing reifyNode:node_modules/electron-winstaller Completed in 4356ms
722 http fetch GET 200 https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2 755ms (cache miss)
723 warn tarball tarball data for @electron/node-gyp@git+ssh://git@github.com/electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2 (sha512-lBSgDMQqt7QWMuIjS8zNAq5>
724 timing reify:rollback:createSparse Completed in 978ms
725 timing reify:rollback:retireShallow Completed in 0ms
726 timing command:install Completed in 7341ms
727 verbose stack Error: sha512-lBSgDMQqt7QWMuIjS8zNAq5FI5o5RVBAcJUGWGI6GgoQITJt3msAkUrHp8YHj3RTVE+h70ndqMGqURjp3IfRyQ== integrity checksum failed when using sha512: wanted>
727 verbose stack at IntegrityStream.[_onEnd] (/usr/share/nodejs/ssri/index.js:94:19)
727 verbose stack at IntegrityStream.emit (/usr/share/nodejs/ssri/index.js:67:35)
727 verbose stack at IntegrityStream.[maybeEmitEnd] (/usr/share/nodejs/ssri/node_modules/minipass/index.js:357:12)
727 verbose stack at IntegrityStream.emit (/usr/share/nodejs/ssri/node_modules/minipass/index.js:419:29)
727 verbose stack at IntegrityStream.emit (/usr/share/nodejs/ssri/index.js:68:18)
727 verbose stack at IntegrityStream.[resume] (/usr/share/nodejs/ssri/node_modules/minipass/index.js:248:10)
727 verbose stack at Unpack.ondrain (/usr/share/nodejs/ssri/node_modules/minipass/index.js:318:67)
727 verbose stack at Unpack.emit (events.js:314:20)
727 verbose stack at Unpack.[nextEntry] (/usr/share/nodejs/tar/lib/parse.js:248:16)
727 verbose stack at ReadEntry.<anonymous> (/usr/share/nodejs/tar/lib/parse.js:225:45)
728 verbose cwd /home/openhabian/homeconnect-profile-downloader
729 verbose Linux 6.2.0-36-generic
730 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
731 verbose node v12.22.9
732 verbose npm v8.5.1
733 error code EINTEGRITY
734 error sha512-lBSgDMQqt7QWMuIjS8zNAq5FI5o5RVBAcJUGWGI6GgoQITJt3msAkUrHp8YHj3RTVE+h70ndqMGqURjp3IfRyQ== integrity checksum failed when using sha512: wanted sha512-lBSgDMQ>
735 verbose exit 1
736 timing npm Completed in 7643ms
737 verbose unfinished npm timer reify 1735222905292
738 verbose unfinished npm timer reify:unpack 1735222906023
739 verbose unfinished npm timer reifyNode:node_modules/@electron/node-gyp 1735222906076
740 verbose code 1
741 error A complete log of this run can be found in:
741 error /home/openhabian/.npm/_logs/2024-12-26T14_21_44_998Z-debug-0.log
and then npm start says:
git clone https://github.com/bruestel/homeconnect-profile-downloader.git
Another try with the ubuntu installer ended with this message:
Uncaught Exception:
Error: Cannot find module 'node-fetch'
Require stack:
- /usr/lib/homeconnect-profile-downloader/resources/app.asar/main.js
-
at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15)
at s._resolveFilename (node:electron/js2c/browser_init:2:124107)
at Module._load (node:internal/modules/cjs/loader:1058:27)
at c._load (node:electron/js2c/node_init:2:16955)
at Module.require (node:internal/modules/cjs/loader:1318:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/usr/lib/homeconnect-profile-downloader/resources/app.asar/main.js:3:15)
at Module._compile (node:internal/modules/cjs/loader:1484:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
at Module.load (node:internal/modules/cjs/loader:1295:32)
Anything else I should try?
Tested it with Windows version of the Profile Downloader and it worked to download the profiles and then upload it to the binding.
My Bosch washing machine and my Bosch dryer changed to online state then, my Siemens coffee maker remains offline with error description:
TLS connection is not supported on the current system configuration (Linux amd64).
Hi Jonas,
I have just installed the latest home connect direct binding that is linked in your first post (version 23-12). I have a oven and a dishwasher and so far everything seems to be working perfectly. BTW, I have been using your other home connect binding since the beginning. Glad that there is now a way to connect directly without the need for the cloud.
Thank you very much for your awesome work!
Cheers,
Matt
*** edit ***
Just noticed that the following two channels for the oven do not work (do not get updated):
Channel “duration” → always 60s
Channel “door_state” → always CLOSED
Here is a last version before the turn of the year. I still have one bug on my list, after that I’ll start expanding the existing channels and adding new devices.
Many thanks for your help.
New version
org.openhab.binding.homeconnectdirect-4.3.0-2024-12-30-16-51.jar
Updates:
- Updated Conscrypt (for TLS connection) to support older Linux distributions (glibc 2.31+ is required)
- Focused on Home Connect Profile Downloader (GitHub - bruestel/homeconnect-profile-downloader) and removed old logic
- Fixed offline bug, when adding new channels
- Show more information about appliance in web console
- Refresh all values every 60 minutes
Thank you very much for your work, I think the new binding is great. I just started testing the latest version yesterday, but so far everything works as before.
If you could integrate the profile download from the additional tool into the homeconnectdirect website, that would be excellent.
And a question about the IP addresses: Does the binding automatically search for the new IP address (DHCP) for devices/things that have already been set up or should the devices all run with static IP addresses?
Good point. You should use static IPs. I initially had it so that it always changes via the discovery service. However, this is very confusing and leads to strange errors.
@jb4711 thank you for the update!
I just installed the new version in openhab 4.2.1 on openhabian.
I downloaded the profiles successfully with the new profile downloader and installed the missing ones.
My dishwasher is still offine (TLS connection required) The Thing shows:
I checked my glibc version with ldd --version:
ldd (Debian GLIBC 2.31-13+rpt2+rpi1+deb11u10) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
Did I miss somthing? May be a cleanup of some older files needed!?
At leats I deleted the Diswasherthing and rediscovered it but it remains offline…
I will send you the log…
Good start in 2025!!!
Happy new year everyone!
The new version (2024-12-30) was running over 2024->2025 in my openhab installtion and today morning the openhab webinterface was dead and many other general openhab functions did not work anymore.
May be a new problem with not closed websockets?
Big thanks for your work and let me know if I can provide any further infos to fix the remaining issues!
Hi! Thank you for this wonderful binding. I just uninstalled the factory home connect and blocked the ip address of my dishwasher from the internet.
Ran a cycle and worked well. Install was straight forward.
I can reproduce it. Fix it in the next version. If a device is offline, an attempt is made to connect to the device at regular intervals. Something is missing when cleaning up later. Many thanks for testing.
Yes! I guess its my Dryer. The Dreyer is offline when its switched off!