home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.7k stars 30.82k forks source link

Command line switch stopped to work after update (USB Relay) #119915

Closed DangerD1024 closed 1 month ago

DangerD1024 commented 5 months ago

The problem

I'm using USB HID Relay module using binary: /config/hid/hidusb-relay-cmd on 4 where 4 is relay number

It worked fine before update on core_2023.12.4, updated to core_2024.1.3, after updating to core-2024.6.3 issue remains:

ERROR (MainThread) [homeassistant.components.command_line.utils] Error trying to exec command: /config/hid/hidusb-relay-cmd off 4

What version of Home Assistant Core has the issue?

core-2024.6.3

What was the last working version of Home Assistant Core?

core_2023.12.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

command_line

Link to integration documentation on our website

https://www.home-assistant.io/integrations/command_line/

Diagnostics information

2024-06-18 21:54:57.360 ERROR (MainThread) [homeassistant.components.command_line.utils] Error trying to exec command: /config/hid/hidusb-relay-cmd on 8 2024-06-18 21:54:57.361 ERROR (MainThread) [homeassistant.components.command_line] Command failed: /config/hid/hidusb-relay-cmd on 8

Example YAML snippet

command_line:
  - switch:
      name: "8ch_relay01"
      command_on: '/config/hid/hidusb-relay-cmd on 8'
      command_off: '/config/hid/hidusb-relay-cmd off 8'

Anything in the logs that might be useful for us?

Previously i had an issue that this app coudn't access USB device due to permissions, i've resolved it by installing "Advanced SSH & Web Terminal" with disabling protection mode..

From terminal command works fine, relay works

Is there any way to get app output to see it's responce to debug it somehow?

home-assistant[bot] commented 5 months ago

Hey there @gjohansson-st, mind taking a look at this issue as it has been labeled with an integration (command_line) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `command_line` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign command_line` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


command_line documentation command_line source (message by IssueLinks)

DangerD1024 commented 4 months ago

Any solution with that?

DangerD1024 commented 4 months ago

docker exec -it homeassistant /bin/bash Used this to access HA container, now i see issue:

Error loading shared library libusb-0.1.so.4: No such file or directory

How to solve that?

issue-triage-workflows[bot] commented 1 month ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.