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

Add passive device type and optionally specify usb device #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

s-anderss
Copy link

  • Added new device type "passive" for special serial devices.
    This device type is common on USB adapters with an DS9097.
    https://owfs.org/index_php_page_usb-usb9097.html
  • Added possibility to optionally specify device name of usb device.
    In the HomeAssistant environment I need to specify the usb device
    (for instance for a DS9490R USB adapter), otherwise it will not be found.

- Added possibility to optionally specify device name of usb device.
@lrybak lrybak added the enhancement New feature or request label Jan 10, 2025
@lrybak lrybak linked an issue Jan 12, 2025 that may be closed by this pull request
@lrybak
Copy link
Owner

lrybak commented Jan 12, 2025

Thanks for your contribution 👍 Due the conflict caused by #36 I will merge your changes manually.

@s-anderss
Copy link
Author

s-anderss commented Jan 22, 2025 via email

@lrybak
Copy link
Owner

lrybak commented Jan 22, 2025

I will merge your change today or tomorrow. Already reviewed it and all looks clear.

@lrybak
Copy link
Owner

lrybak commented Jan 24, 2025

Merged already but have some issues with aarch64 build. Need to investigate that

@Maarten69
Copy link

Thanks all, waiting for the build.

@lrybak
Copy link
Owner

lrybak commented Jan 25, 2025

Finally I was able to find out the root cause of the segfaults during image build (segfault) - tonistiigi/binfmt#215

@s-anderss can you validate your changes on edge version: https://github.com/lrybak/addon-repository-edge

@Maarten69
Copy link

Maarten69 commented Jan 26, 2025

I tried this Edge version.
My configuration:

devices:
  - device_type: usb
    device: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI02DXF5-if00-port0
owhttpd: true
temperature_scale: Celsius
debug: true

My output: (it suddenly ends, the addon keeps running)

Removed

@lrybak
Copy link
Owner

lrybak commented Jan 26, 2025

I don't have that type of device, but shouldn't you configure it that way?

- device_type: passive
  device: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI02DXF5-if00-port0

@Maarten69
Copy link

Maarten69 commented Jan 26, 2025

@lrybak you are right, I've got it working now! (Not passive btw)
Will update this post soon. Thanks.

Edit:

Configuration:

  - device_type: usb
    device: /dev/bus/usb/001/008
owhttpd: true
temperature_scale: Celsius
debug: false

Output:

-----------------------------------------------------------
 Add-on: owserver (1-wire)
 onewire server to read 1-Wire devices+
-----------------------------------------------------------
 Add-on version: 1e50990
 You are running the latest version of this add-on.
 System: Home Assistant OS 14.1  (amd64 / generic-x86-64)
 Home Assistant Core: 2025.1.4
 Home Assistant Supervisor: 2024.12.3
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service owserver-init: starting
[10:21:55] INFO: Generated owfs.config file:
[10:21:55] INFO: # owserver configuration 
## device(s)
### usb
server: usb = /dev/bus/usb/001/008
!server: server = 4304
server: port = 4304
http: port = 8099
## temperature scale
Celsius
s6-rc: info: service owserver-init successfully started
s6-rc: info: service owserver: starting
s6-rc: info: service owserver successfully started
s6-rc: info: service discovery: starting
s6-rc: info: service owhttpd: starting
s6-rc: info: service owhttpd successfully started
[10:21:55] INFO: Starting owserver...
[10:21:55] INFO: Wait until owserver is up and running...
[10:21:56] INFO: Starting owhttpd...
[10:21:56] INFO: Successfully send discovery information to Home Assistant.
s6-rc: info: service discovery successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started

@Maarten69
Copy link

Here the debug log (part of, because still running):

[10:35:15] INFO: Starting owserver with debug mode...
[10:35:15] NOTICE: Please note that once DEBUG mode is enabled you will not be able to connect to the owserver. Use debug mode only to troubleshoot issues with 1-Wire connectivity!
[10:35:15] INFO: Wait until owserver is up and running...
DEBUG MODE
libow version:
	3.2p4
  DEBUG: ow_inotify.c:(37) Added /etc/owfs.conf to the watch list
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:1) Program=, Option=, Value=
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:2) Program=, Option=, Value=
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:3) Program=, Option=, Value=
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:4) Program=, Option=, Value=
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:5) Program=server, Option=usb, Value=/dev/bus/usb/001/008
  DEBUG: ow_opt.c:(342) Configuration file (/etc/owfs.conf:5) Option usb recognized as usb. Value=/dev/bus/usb/001/008
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:6) Program=, Option=, Value=
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:7) Program=Not server, Option=server, Value=4304
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:8) Program=server, Option=port, Value=4304
  DEBUG: ow_opt.c:(342) Configuration file (/etc/owfs.conf:8) Option port recognized as port. Value=4304
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:9) Program=http, Option=port, Value=8099
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:10) Program=, Option=, Value=
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:11) Program=, Option=, Value=
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:12) Program=, Option=, Value=
  DEBUG: ow_opt.c:(297) Configuration file (/etc/owfs.conf:13) Program=, Option=Celsius, Value=
  DEBUG: ow_opt.c:(342) Configuration file (/etc/owfs.conf:13) Option Celsius recognized as Celsius. Value=
  DEBUG: ow_daemon.c:(170) main thread id = 139965562862376
   CALL: ow_parsename.c:(174) path=[]
  DEBUG: owlib.c:(77) Global temp limit 0C to 100C (for fake and mock adapters)
  DEBUG: ow_regex.c:(24) Reg Ex expression <^$> compiled to 0x7f4c459d8b60
  DEBUG: ow_regex.c:(24) Reg Ex expression <^all$> compiled to 0x7f4c459d8b20
  DEBUG: ow_regex.c:(24) Reg Ex expression <^scan$> compiled to 0x7f4c459d8ae0
  DEBUG: ow_regex.c:(24) Reg Ex expression <^\*$> compiled to 0x7f4c459d8aa0
  DEBUG: ow_regex.c:(24) Reg Ex expression <^[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}$> compiled to 0x7f4c459d8a60
  DEBUG: ow_regex.c:(24) Reg Ex expression <^-?[[:digit:]]+$> compiled to 0x7f4c459d8a20
  DEBUG: ow_regex.c:(24) Reg Ex expression <^ *([^ ]+)[ 
]*$> compiled to 0x7f4c459d89e0
  DEBUG: ow_regex.c:(24) Reg Ex expression <^ *([^ ]+) *: *([^ ]+)[ 
]*$> compiled to 0x7f4c459d89a0
  DEBUG: ow_regex.c:(24) Reg Ex expression <^ *([^ ]+) *: *([^ ]+) *: *([^ ]+)[ 
]*$> compiled to 0x7f4c459d8960
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->20 found <></dev/bus/usb/001/008><>
  DEBUG: ow_regex.c:(100) 1: 0->20 found <></dev/bus/usb/001/008><>
  DEBUG: ow_parse_address.c:(87) Text </dev/bus/usb/001/008>
  DEBUG: ow_parse_address.c:(142) First </dev/bus/usb/001/008>
DEFAULT: ow_ds9490.c:(240) Unclear what </dev/bus/usb/001/008> means in USB specification, will use first adapter.
  DEBUG: ow_usb_cycle.c:(169) Compare (add,bus) (8,1) with (-1,-1) handle 0
DEFAULT: ow_usb_msg.c:(214) Opened USB DS9490 bus master at 1:8.
   CALL: ow_parsename.c:(174) path=[]
   CALL: ow_parsename.c:(174) path=[/uncached/bus.0]
  DEBUG: ow_regex.c:(24) Reg Ex expression <^bus\.([[:digit:]]+)/?> compiled to 0x7f4c459d9060
  DEBUG: ow_regex.c:(24) Reg Ex expression <^settings/?> compiled to 0x7f4c459d9020
  DEBUG: ow_regex.c:(24) Reg Ex expression <^statistics/?> compiled to 0x7f4c459d8fe0
  DEBUG: ow_regex.c:(24) Reg Ex expression <^structure/?> compiled to 0x7f4c459d8fa0
  DEBUG: ow_regex.c:(24) Reg Ex expression <^system/?> compiled to 0x7f4c459d8f60
  DEBUG: ow_regex.c:(24) Reg Ex expression <^interface/?> compiled to 0x7f4c459d8f20
  DEBUG: ow_regex.c:(24) Reg Ex expression <^text/?> compiled to 0x7f4c459d8ee0
  DEBUG: ow_regex.c:(24) Reg Ex expression <^json/?> compiled to 0x7f4c459d8ea0
  DEBUG: ow_regex.c:(24) Reg Ex expression <^uncached/?> compiled to 0x7f4c459d8e60
  DEBUG: ow_regex.c:(24) Reg Ex expression <^unaliased/?> compiled to 0x7f4c459d8e20
  DEBUG: ow_regex.c:(24) Reg Ex expression <^alarm?> compiled to 0x7f4c459d8de0
  DEBUG: ow_regex.c:(24) Reg Ex expression <^simultaneous/?> compiled to 0x7f4c459d8da0
  DEBUG: ow_regex.c:(24) Reg Ex expression <^thermostat/?> compiled to 0x7f4c459d8d60
  DEBUG: ow_regex.c:(24) Reg Ex expression <^/bus\.[[:digit:]]+/?> compiled to 0x7f4c459d8d20
  DEBUG: ow_regex.c:(24) Reg Ex expression <\.> compiled to 0x7f4c459d8ce0
  DEBUG: ow_regex.c:(24) Reg Ex expression <\.all$> compiled to 0x7f4c459d8ca0
  DEBUG: ow_regex.c:(24) Reg Ex expression <\.byte$> compiled to 0x7f4c459d8c60
  DEBUG: ow_regex.c:(24) Reg Ex expression <\.[[:digit:]]+$> compiled to 0x7f4c459d8c20
  DEBUG: ow_regex.c:(24) Reg Ex expression <\.[[:alpha:]]$> compiled to 0x7f4c459d8be0
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->5 found <><bus.0><>
  DEBUG: ow_regex.c:(100) 1: 4->5 found <bus.><0><>
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_dir.c:(69) path=/uncached/bus.0
   CALL: ow_dir.c:(104) path=/uncached/bus.0
   CALL: ow_parsename.c:(174) path=[/uncached/bus.0/interface]
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->5 found <><bus.0><>
  DEBUG: ow_regex.c:(100) 1: 4->5 found <bus.><0><>
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(24) Reg Ex expression <^([[:xdigit:]]{2})\.?([[:xdigit:]]{12})\.?([[:xdigit:]]{2}){0,1}$> compiled to 0x7f4c459d90c0
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_usb_cycle.c:(62) Callback on /uncached/bus.0/interface
  DEBUG: ow_parsename.c:(133) /uncached/bus.0/interface
  DEBUG: ow_search.c:(31) Start of directory path=/uncached/bus.0 device=00 00 00 00 00 00 00 00
  DEBUG: ow_ds9490.c:(674) Index 0
  DEBUG: ow_select.c:(69) Selecting a path (and device) path=/uncached/bus.0 SN=00 00 00 00 00 00 00 00 last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(81) Clearing root branch
  DEBUG: ow_ds9490.c:(562) DS9490 RESET. changed 15, flex: 1
   DATA: ow_ds9490.c:(1008) set flexible speed
  DEBUG: ow_ds9490.c:(613) DS9490_Reset: OK
  DEBUG: ow_transaction.c:(112) send = 0
  DEBUG: ow_transaction.c:(130) readin = 0
  DEBUG: ow_transaction.c:(207) end = 0
  DEBUG: ow_select.c:(247) No DS2409 microlan hub found at this level
  DEBUG: ow_ds9490.c:(562) DS9490 RESET. changed 0, flex: 1
  DEBUG: ow_ds9490.c:(613) DS9490_Reset: OK
  DEBUG: ow_ds9490.c:(750) Got 16 bytes from USB search
  DEBUG: ow_ds9490.c:(778) gulp. Adding element 0:10 3C CB 8A 00 08 00 8D
  DEBUG: ow_ds9490.c:(692) SN found: 10 3C CB 8A 00 08 00 8D
  DEBUG: ow_search.c:(73) Device found: 10 3C CB 8A 00 08 00 8D
  DEBUG: ow_cache.c:(546) Adding device location 10 3C CB 8A 00 08 00 8D bus=0
  DEBUG: ow_cache.c:(635) Add to cache sn 10 3C CB 8A 00 08 00 8D pointer=0x7f4c459d83ec index=0 size=4
  DEBUG: ow_cache.c:(546) Adding device location 10 3C CB 8A 00 08 00 8D bus=0
  DEBUG: ow_cache.c:(635) Add to cache sn 10 3C CB 8A 00 08 00 8D pointer=0x7f4c459d83ec index=0 size=4
   CALL: ow_parsename.c:(174) path=[/uncached/bus.0/10.3CCB8A000800]
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->5 found <><bus.0><>
  DEBUG: ow_regex.c:(100) 1: 4->5 found <bus.><0><>
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->15 found <><10.3CCB8A000800><>
  DEBUG: ow_regex.c:(100) 1: 0->2 found <><10><.3CCB8A000800>
  DEBUG: ow_regex.c:(100) 2: 3->15 found <10.><3CCB8A000800><>
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->15 found <><10.3CCB8A000800><>
  DEBUG: ow_regex.c:(100) 1: 0->2 found <><10><.3CCB8A000800>
  DEBUG: ow_regex.c:(100) 2: 3->15 found <10.><3CCB8A000800><>
  DEBUG: ow_usb_cycle.c:(62) Callback on /uncached/bus.0/10.3CCB8A000800
  DEBUG: ow_parsename.c:(133) /uncached/bus.0/10.3CCB8A000800
  DEBUG: ow_ds9490.c:(674) Index 1
  DEBUG: ow_select.c:(69) Selecting a path (and device) path=/uncached/bus.0 SN=00 00 00 00 00 00 00 00 last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(84) Continuing root branch
  DEBUG: ow_ds9490.c:(562) DS9490 RESET. changed 0, flex: 1
  DEBUG: ow_ds9490.c:(613) DS9490_Reset: OK
  DEBUG: ow_ds9490.c:(750) Got 16 bytes from USB search
  DEBUG: ow_ds9490.c:(778) gulp. Adding element 0:10 02 2C 30 02 08 00 3D
  DEBUG: ow_ds9490.c:(692) SN found: 10 02 2C 30 02 08 00 3D
  DEBUG: ow_search.c:(73) Device found: 10 02 2C 30 02 08 00 3D
  DEBUG: ow_cache.c:(546) Adding device location 10 02 2C 30 02 08 00 3D bus=0
  DEBUG: ow_cache.c:(635) Add to cache sn 10 02 2C 30 02 08 00 3D pointer=0x7f4c459d83ec index=0 size=4
  DEBUG: ow_cache.c:(546) Adding device location 10 02 2C 30 02 08 00 3D bus=0
  DEBUG: ow_cache.c:(635) Add to cache sn 10 02 2C 30 02 08 00 3D pointer=0x7f4c459d83ec index=0 size=4
   CALL: ow_parsename.c:(174) path=[/uncached/bus.0/10.022C30020800]
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->5 found <><bus.0><>
  DEBUG: ow_regex.c:(100) 1: 4->5 found <bus.><0><>
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->15 found <><10.022C30020800><>
  DEBUG: ow_regex.c:(100) 1: 0->2 found <><10><.022C30020800>
  DEBUG: ow_regex.c:(100) 2: 3->15 found <10.><022C30020800><>
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->15 found <><10.022C30020800><>
  DEBUG: ow_regex.c:(100) 1: 0->2 found <><10><.022C30020800>
  DEBUG: ow_regex.c:(100) 2: 3->15 found <10.><022C30020800><>
  DEBUG: ow_usb_cycle.c:(62) Callback on /uncached/bus.0/10.022C30020800
  DEBUG: ow_parsename.c:(133) /uncached/bus.0/10.022C30020800
  DEBUG: ow_ds9490.c:(674) Index 2
  DEBUG: ow_select.c:(69) Selecting a path (and device) path=/uncached/bus.0 SN=00 00 00 00 00 00 00 00 last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(84) Continuing root branch
  DEBUG: ow_ds9490.c:(562) DS9490 RESET. changed 0, flex: 1
  DEBUG: ow_ds9490.c:(613) DS9490_Reset: OK
  DEBUG: ow_ds9490.c:(750) Got 16 bytes from USB search
  DEBUG: ow_ds9490.c:(778) gulp. Adding element 0:10 D6 89 DB 00 08 00 56
  DEBUG: ow_ds9490.c:(692) SN found: 10 D6 89 DB 00 08 00 56
  DEBUG: ow_search.c:(73) Device found: 10 D6 89 DB 00 08 00 56
  DEBUG: ow_cache.c:(546) Adding device location 10 D6 89 DB 00 08 00 56 bus=0
  DEBUG: ow_cache.c:(635) Add to cache sn 10 D6 89 DB 00 08 00 56 pointer=0x7f4c459d83ec index=0 size=4
  DEBUG: ow_cache.c:(546) Adding device location 10 D6 89 DB 00 08 00 56 bus=0
  DEBUG: ow_cache.c:(635) Add to cache sn 10 D6 89 DB 00 08 00 56 pointer=0x7f4c459d83ec index=0 size=4
   CALL: ow_parsename.c:(174) path=[/uncached/bus.0/10.D689DB000800]
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->5 found <><bus.0><>
  DEBUG: ow_regex.c:(100) 1: 4->5 found <bus.><0><>
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->15 found <><10.D689DB000800><>
  DEBUG: ow_regex.c:(100) 1: 0->2 found <><10><.D689DB000800>
  DEBUG: ow_regex.c:(100) 2: 3->15 found <10.><D689DB000800><>
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->15 found <><10.D689DB000800><>
  DEBUG: ow_regex.c:(100) 1: 0->2 found <><10><.D689DB000800>
  DEBUG: ow_regex.c:(100) 2: 3->15 found <10.><D689DB000800><>
  DEBUG: ow_usb_cycle.c:(62) Callback on /uncached/bus.0/10.D689DB000800
  DEBUG: ow_parsename.c:(133) /uncached/bus.0/10.D689DB000800
  DEBUG: ow_ds9490.c:(674) Index 3
  DEBUG: ow_select.c:(69) Selecting a path (and device) path=/uncached/bus.0 SN=00 00 00 00 00 00 00 00 last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(84) Continuing root branch
  DEBUG: ow_ds9490.c:(562) DS9490 RESET. changed 0, flex: 1
  DEBUG: ow_ds9490.c:(613) DS9490_Reset: OK
  DEBUG: ow_ds9490.c:(750) Got 16 bytes from USB search
  DEBUG: ow_ds9490.c:(778) gulp. Adding element 0:10 8E 3C 30 02 08 00 D6
  DEBUG: ow_ds9490.c:(692) SN found: 10 8E 3C 30 02 08 00 D6
  DEBUG: ow_search.c:(73) Device found: 10 8E 3C 30 02 08 00 D6
  DEBUG: ow_cache.c:(546) Adding device location 10 8E 3C 30 02 08 00 D6 bus=0
  DEBUG: ow_cache.c:(635) Add to cache sn 10 8E 3C 30 02 08 00 D6 pointer=0x7f4c459d83ec index=0 size=4
  DEBUG: ow_cache.c:(546) Adding device location 10 8E 3C 30 02 08 00 D6 bus=0
  DEBUG: ow_cache.c:(635) Add to cache sn 10 8E 3C 30 02 08 00 D6 pointer=0x7f4c459d83ec index=0 size=4
   CALL: ow_parsename.c:(174) path=[/uncached/bus.0/10.8E3C30020800]
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->5 found <><bus.0><>
  DEBUG: ow_regex.c:(100) 1: 4->5 found <bus.><0><>
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->15 found <><10.8E3C30020800><>
  DEBUG: ow_regex.c:(100) 1: 0->2 found <><10><.8E3C30020800>
  DEBUG: ow_regex.c:(100) 2: 3->15 found <10.><8E3C30020800><>
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(53) Not found
  DEBUG: ow_regex.c:(100) 0: 0->15 found <><10.8E3C30020800><>
  DEBUG: ow_regex.c:(100) 1: 0->2 found <><10><.8E3C30020800>
  DEBUG: ow_regex.c:(100) 2: 3->15 found <10.><8E3C30020800><>
  DEBUG: ow_usb_cycle.c:(62) Callback on /uncached/bus.0/10.8E3C30020800
  DEBUG: ow_parsename.c:(133) /uncached/bus.0/10.8E3C30020800
  DEBUG: ow_ds9490.c:(674) Index 4
  DEBUG: ow_select.c:(69) Selecting a path (and device) path=/uncached/bus.0 SN=00 00 00 00 00 00 00 00 last path=00 00 00 00 00 00 00 00
  DEBUG: ow_select.c:(84) Continuing root branch
  DEBUG: ow_ds9490.c:(562) DS9490 RESET. changed 0, flex: 1
  DEBUG: ow_ds9490.c:(613) DS9490_Reset: OK
  DEBUG: ow_ds9490.c:(750) Got 16 bytes from USB search

Thank you for making this work!

@lrybak
Copy link
Owner

lrybak commented Jan 26, 2025

Good, it found the device. Try to disable debug mode and add it to home assisstant.

@Maarten69
Copy link

I disabled it and 6 (all) 1-wire devices were added and are reporting the correct temperature. Thanks again!

@lrybak
Copy link
Owner

lrybak commented Jan 26, 2025

@s-anderss Please review on your side as well

@Maarten69
Copy link

Maarten69 commented Jan 26, 2025

screen1
Added to the 1-wire integration went ok (see image).
I found the correct usb path using terminal (via SSH): sudo dmesg | grep -i usb
and there is showed this part:

[ 1145.839941] usb 1-2: new full-speed USB device number 8 using xhci_hcd
[ 1145.968623] usb 1-2: New USB device found, idVendor=04fa, idProduct=2490, bcdDevice= 0.02
[ 1145.968635] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1145.987583] usbcore: registered new interface driver DS9490R

Then in Home Assistant I looked under Hardware (Settings\system\hardware\all hardware) for usb 1-2
1-2 listed as Apparaatpad: /dev/bus/usb/001/008 (Dutch for Device path)

Hope this helps someone.
screen1

@s-anderss
Copy link
Author

s-anderss commented Feb 1, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: support Passive USB serial adapter DS9097 or DS9097E
4 participants