Skip to content

Setup process: no user feedback if driver failed to pair with Roon #39

@zehnm

Description

@zehnm

If the driver cannot pair with Roon, there's no user feedback in the setup process. Only a timeout after a long time.

Console log shows a clear error that pairing failed:

[UC Integration API] [::ffff:192.168.1.234:62758] -> {"kind":"req","id":4,"msg":"set_driver_user_data","msg_data":{"confirm":true}}
[uc_roon] Received user confirmation for driver setup: sending OK
[UC Integration API] [::ffff:192.168.1.234:62758] <-  {"kind":"resp","req_id":4,"code":200,"msg":"result","msg_data":{}}
[UC Integration API] [::ffff:192.168.1.234:62758] <-  {"kind":"event","msg":"driver_setup_change","msg_data":{"event_type":"SETUP","state":"SETUP"},"cat":"DEVICE"}
[uc_roon] Sending setup progress that we are still busy...
[UC Integration API] [::ffff:192.168.1.234:62758] <-  {"kind":"event","msg":"driver_setup_change","msg_data":{"event_type":"STOP","state":"ERROR","error":"Failed to pair with Roon."},"cat":"DEVICE"}
[uc_roon] Failed to pair with Roon

Meanwhile the setup process is still running:

Image

And finally times out:

[UC Integration API] [::ffff:192.168.1.234:62758] -> {"kind":"event","msg":"abort_driver_setup","cat":"DEVICE","ts":"2024-10-29T13:39:20.334245087Z","msg_data":{"error":"TIMEOUT"}}

Expected:

  • Error message sent back to the core if pairing failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions