dm82m / hassio-addons

HAOS add-ons developed by dm82m
MIT License
26 stars 18 forks source link

VBus/USB tester needed ;-) #8

Closed dm82m closed 11 months ago

ChR-iSz commented 1 year ago

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

dm82m commented 1 year ago
  1. 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

    image
  2. 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!

ChR-iSz commented 1 year ago

confirmed. Work with USB device.

dm82m commented 1 year ago

@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?

dm82m commented 1 year ago

@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.

ChR-iSz commented 1 year ago

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.

garynic commented 1 year ago

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?

dm82m commented 1 year ago

What happens if you just use the /dev/ttyACM0 in your vbus config? The failing ls command should not fail the addon.

garynic commented 1 year ago

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?

dm82m commented 1 year ago

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.

garynic commented 1 year ago

Brilliant, thank you so much for your help 👍

dm82m commented 1 year ago

0.0.6 is released, please rebuild the addon and see if it helps

garynic commented 1 year ago

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...