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

VBus/USB tester needed ;-) #8

Closed
dm82m opened this issue Jan 5, 2023 · 13 comments
Closed

VBus/USB tester needed ;-) #8

dm82m opened this issue Jan 5, 2023 · 13 comments

Comments

@dm82m
Copy link
Owner

dm82m commented Jan 5, 2023

No description provided.

@ChR-iSz
Copy link

ChR-iSz commented Jan 8, 2023

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
Copy link
Owner Author

dm82m commented Jan 8, 2023

  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

  1. 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
Copy link

ChR-iSz commented Jan 8, 2023

confirmed. Work with USB device.

@dm82m
Copy link
Owner Author

dm82m commented Jan 9, 2023

@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
Copy link
Owner Author

dm82m commented Jan 9, 2023

@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
Copy link

ChR-iSz commented Jan 9, 2023

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
Copy link

garynic commented May 17, 2023

Hi Dirk,

I am having an issue installing the latest version of this addon on HAOS, it seems this:

ls /dev/ttyUSB*
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
Copy link
Owner Author

dm82m commented May 18, 2023

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

@garynic
Copy link

garynic commented May 18, 2023

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
Copy link
Owner Author

dm82m commented May 18, 2023

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
Copy link

garynic commented May 18, 2023

Brilliant, thank you so much for your help 👍

dm82m added a commit that referenced this issue May 18, 2023
@dm82m
Copy link
Owner Author

dm82m commented May 18, 2023

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

@garynic
Copy link

garynic commented May 18, 2023

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

@dm82m dm82m closed this as completed Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants