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

Home Assistant (Yellow) Serial Command Issues / Config Update #43

Open
mrtnkhl opened this issue Dec 3, 2024 · 1 comment
Open

Home Assistant (Yellow) Serial Command Issues / Config Update #43

mrtnkhl opened this issue Dec 3, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@mrtnkhl
Copy link

mrtnkhl commented Dec 3, 2024

https://gdoor-org.github.io/documentation/homeassistant.html

Sensor configuration documentation

Correction for typo needed, documentation currently reading:

sensors:
   - platform: serial
     name: "GDoor"
     serial_port: /dev/ttyUSB0 # change device if needed
     baudrate: 115200

Should read (sensor instead of sensors):

sensor:
   - platform: serial
     name: "GDoor"
     serial_port: /dev/ttyUSB0 # change device if needed
     baudrate: 115200

Serial sensor works correctly (both USB C ports)
image

sensor:
   - platform: serial
     name: "GDoor"
     serial_port: /dev/ttyACM0 # change device if needed
     baudrate: 115200

Sending command via serial using LEFT USB C labeled USB
Does not work on Home Assistant Yellow (HAOS). Sensor works when config corrected as per above, but sending command via serial not possible. Running latest audio beta firmware.

configuration.yaml

shell_command:
  gdoor_open_street: echo -e '020031ECF3EB0060A103C27A3D' > /dev/ttyACM0
  gdoor_open_courtyard: echo -e '020031ECF3EB0060A11A2F76BD' > /dev/ttyACM0

Error in log

Logger: homeassistant.components.shell_command
Source: components/shell_command/__init__.py:95
integration: Shell Command (documentation, issues)
First occurred: 11:16:44 (5 occurrences)
Last logged: 11:21:29

Timed out running command: `echo -e '020031ECF3EB0060A103C27A3D' > /dev/ttyACM0`, after: 60s
Timed out running command: `echo -e '020031ECF3EB0060A11A2F76BD' > /dev/ttyACM0`, after: 60s

Device discovered by HAOS on Home Assistant Yellow (left USB C port, labeled USB on the backside)

Subsystem:
tty
Device path:
/dev/ttyACM0
ID:
/dev/serial/by-id/usb-Espressif_USB_JTAG_serial_debug_unit_F0:9E:9E:21:98:30-if00
Attributes:
DEVLINKS: >-
  /dev/serial/by-id/usb-Espressif_USB_JTAG_serial_debug_unit_F0:9E:9E:21:98:30-if00
  /dev/serial/by-path/platform-fe980000.usb-usb-0:1.2:1.0
  /dev/serial/by-path/platform-fe980000.usb-usbv2-0:1.2:1.0
DEVNAME: /dev/ttyACM0
DEVPATH: /devices/platform/soc/fe980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/tty/ttyACM0
ID_BUS: usb
ID_MODEL: USB_JTAG_serial_debug_unit
ID_MODEL_ENC: USB\x20JTAG\x2fserial\x20debug\x20unit
ID_MODEL_ID: '1001'
ID_PATH: platform-fe980000.usb-usb-0:1.2:1.0
ID_PATH_TAG: platform-fe980000_usb-usb-0_1_2_1_0
ID_PATH_WITH_USB_REVISION: platform-fe980000.usb-usbv2-0:1.2:1.0
ID_REVISION: '0101'
ID_SERIAL: Espressif_USB_JTAG_serial_debug_unit_F0:9E:9E:21:98:30
ID_SERIAL_SHORT: F0:9E:9E:21:98:30
ID_TYPE: generic
ID_USB_DRIVER: cdc_acm
ID_USB_INTERFACES: ':020200:0a0200:ffff01:'
ID_USB_INTERFACE_NUM: '00'
ID_USB_MODEL: USB_JTAG_serial_debug_unit
ID_USB_MODEL_ENC: USB\x20JTAG\x2fserial\x20debug\x20unit
ID_USB_MODEL_ID: '1001'
ID_USB_REVISION: '0101'
ID_USB_SERIAL: Espressif_USB_JTAG_serial_debug_unit_F0:9E:9E:21:98:30
ID_USB_SERIAL_SHORT: F0:9E:9E:21:98:30
ID_USB_TYPE: generic
ID_USB_VENDOR: Espressif
ID_USB_VENDOR_ENC: Espressif
ID_USB_VENDOR_ID: 303a
ID_VENDOR: Espressif
ID_VENDOR_ENC: Espressif
ID_VENDOR_ID: 303a
MAJOR: '166'
MINOR: '0'
SUBSYSTEM: tty
TAGS: ':systemd:'
USEC_INITIALIZED: '1764540542444'

Sending command via serial using RIGHT USB C labeled COM

configuration.yaml same as above

Error message

Logger: homeassistant.components.shell_command
Source: /usr/src/homeassistant/homeassistant/components/shell_command/__init__.py:129
integration: Shell Command (documentation, issues)
First occurred: 12:52:09 (4 occurrences)
Last logged: 12:52:19

Error running command: `bash echo -e '020031ECF3EB0060A103C27A3D' > /dev/ttyACM0`, return code: 126
Error running command: `bash echo -e '020031ECF3EB0060A11A2F76BD' > /dev/ttyACM0`, return code: 126
NoneType: None

Hardware discovered

Subsystem:
tty
Device path:
/dev/ttyACM0
ID:
/dev/serial/by-id/usb-1a86_USB_Single_Serial_58A6073907-if00
Attributes:
DEVLINKS: >-
  /dev/serial/by-id/usb-1a86_USB_Single_Serial_58A6073907-if00
  /dev/serial/by-path/platform-fe980000.usb-usb-0:1.2:1.0
  /dev/serial/by-path/platform-fe980000.usb-usbv2-0:1.2:1.0
DEVNAME: /dev/ttyACM0
DEVPATH: /devices/platform/soc/fe980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/tty/ttyACM0
ID_BUS: usb
ID_MODEL: USB_Single_Serial
ID_MODEL_ENC: USB\x20Single\x20Serial
ID_MODEL_ID: 55d3
ID_PATH: platform-fe980000.usb-usb-0:1.2:1.0
ID_PATH_TAG: platform-fe980000_usb-usb-0_1_2_1_0
ID_PATH_WITH_USB_REVISION: platform-fe980000.usb-usbv2-0:1.2:1.0
ID_REVISION: '0445'
ID_SERIAL: 1a86_USB_Single_Serial_58A6073907
ID_SERIAL_SHORT: 58A6073907
ID_TYPE: generic
ID_USB_DRIVER: cdc_acm
ID_USB_INTERFACES: ':020201:0a0000:'
ID_USB_INTERFACE_NUM: '00'
ID_USB_MODEL: USB_Single_Serial
ID_USB_MODEL_ENC: USB\x20Single\x20Serial
ID_USB_MODEL_ID: 55d3
ID_USB_REVISION: '0445'
ID_USB_SERIAL: 1a86_USB_Single_Serial_58A6073907
ID_USB_SERIAL_SHORT: 58A6073907
ID_USB_TYPE: generic
ID_USB_VENDOR: 1a86
ID_USB_VENDOR_ENC: 1a86
ID_USB_VENDOR_ID: 1a86
ID_VENDOR: 1a86
ID_VENDOR_ENC: 1a86
ID_VENDOR_ID: 1a86
MAJOR: '166'
MINOR: '0'
SUBSYSTEM: tty
TAGS: ':systemd:'
USEC_INITIALIZED: '1772135474167'
@jschroeter
Copy link
Collaborator

Thanks, I fixed the typo in gdoor-org/gdoor-org.github.io#4

I guess the not working sending over serial is just related to the WIP audio firmware, @DaSchaef?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants