Closed dm82m closed 11 months ago
ob man im add-on auf vbus per netzwerk oder vbus per usb geht entscheidet man ja in der config des json-live-data-server selbst. ich vermute deine frage bezieht sich darauf, ob meine integration nur mit dem add-on in hass funktioniert oder ob man statt dem add-on den json-live-data-server auch selbst hosten kann. die antwort ist ja, ist in der integration auch beschrieben: https://github.com/dm82m/hass-Deltasol-KM2#vbuslan-and-vbususb
ich nutze keine vscode sondern xcode und bin da auch ziemlich hands-on-dirty untwegs ;-)
danke, dass du das add-on auf hass mit direkt angeschlossenem vbus/usb testest, wäre mega wenn das auch noch funktioniert!
confirmed. Work with USB device.
@ChR-iSz wie hat das Device bei dir geheißen? Dann Filter ich im log Output konkret danach und gebe nicht alle /dev/tty* aus. Ich vermute /dev/ttyUSB0.
und hattest du eine Möglichkeit auf haos zu erkennen welches /dev/ttyUSB es war oder muss ein User der mehrere usb Geräte dran hängen hat das dann durchprobieren bis er das richtige device erwischt?
@ChR-iSz und hast du ne Ausgabe von System -> Hardware -> gesamte Hardware woran man dann den angeschlossenen vlan/usb ermitteln kann? Icu würde das in der Doku gerne noch überarbeiten damit User eine Hilfe haben wie das bestmögliche funktioniert.
Hi Dirk,
Sorry für den delay. Dann müsste ich die Tage nochmal in den Keller. Hatte das nur rudimentär auf die schnelle getestet. Kann ich aber gern nochmal die Tage machen, wenn es Dir nicht sooo eilt.
Hi Dirk,
I am having an issue installing the latest version of this addon on HAOS, it seems this: https://github.com/dm82m/hassio-addons/blob/dc108350484ac422d25ae8f0a051422b7e49e98a/resol-vbus/run.sh#L10 causes a problem as my USB device is mapped to /dev/ttyACM0 rather than /dev/ttyUSBX.
I get the follow error:
--- VERSIONS --- add-on version: 0.0.5 nodejs version: v20.2.0 npm version: 9.6.6 --- DEVICES --- ls: cannot access '/dev/ttyUSB*': No such file or directory
Is this a known issue and if so is there a workaround?
What happens if you just use the /dev/ttyACM0 in your vbus config? The failing ls command should not fail the addon.
I do have it in the config but it doesn't seem to get that far:
ls: cannot access '/dev/ttyUSB*': No such file or directory s6-rc: info: service legacy-services: stopping
If the ls
isn't the reason for the failure then it's not clear why it's stopping. Any thoughts?
I will remove the ls later and publish a new version or at least ensure that it is not returning an error that leads to stopping the addon.
Brilliant, thank you so much for your help 👍
0.0.6 is released, please rebuild the addon and see if it helps
Yep, working now, thank you 👍
--- DEVICES --- ls: cannot access '/dev/ttyUSB*': No such file or directory /dev/ttyACM0 --- json-live-data-server --- debug: Starting server...
Hallo Dirk,
ich würde Dein Addon auf USB Testen. Kurze Frage dazu:
1) Hast du berücksichtigt, dass mein live-data-server auf einer anderen Hardware als HASS läuft ? Kann ich die IP-Adresse entsprechend eintragen, anstatt dem USB Device ? Ich weiß, das ist nicht, was du in diesem issue erwartest. Aber es wäre ein Nice-To-Have.
2) Kannst du mir evtl. Deine devcontainer.json und tasks.yaml zukommen lassen, dass ich das ganze in meiner vscode Testumgebung mal hochfahren kann...
VG Christian