Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
flatsiedatsie authored Dec 25, 2023
1 parent 148cd92 commit 57b798b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/matter_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@
#logging.basicConfig(handlers=None, level="DEBUG")
#coloredlogs.install(level="DEBUG")

# matter BLE discriminator is maybe 3840
# https://github.com/project-chip/connectedhomeip/issues/26968


class MatterAdapter(Adapter):
"""Adapter for addon """
Expand Down Expand Up @@ -1168,15 +1171,19 @@ def clock(self):
self.s_print("CAPTURED STDERR: " + str(line.rstrip()))
if 'Traceback' in line:
self.pairing_failed = True
self.busy_pairing = False
self.send_pairing_prompt("Error, Matter server crashed")
if 'over BLE failed' in line:
self.pairing_failed = True
self.busy_pairing = False
self.send_pairing_prompt("Bluetooth commissioning failed")
if 'error.NodeInterviewFailed' in line:
self.pairing_failed = True
self.busy_pairing = False
self.send_pairing_prompt("Interviewing Matter device failed")
if 'Commission with code failed for node' in line:
self.pairing_failed = True
self.busy_pairing = False
self.send_pairing_prompt("Interviewing Matter device just failed")


Expand Down

0 comments on commit 57b798b

Please sign in to comment.