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 Bismuth Matter testification bypass #101

Open
wants to merge 49 commits into
base: main
Choose a base branch
from

Commits on Mar 21, 2024

  1. Configuration menu
    Copy the full SHA
    3184b8b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    21ebd5b View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. Merge pull request home-assistant-libs#33 from leonardmgh/add-nodeid-…

    …logging
    
    Add loogging of nodeID patch
    agners authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    8c60daa View commit details
    Browse the repository at this point in the history
  2. Add patch to use Python logging everywhere

    Do not print to the console but use the Python logging module
    explicitly.
    agners committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    13e19c0 View commit details
    Browse the repository at this point in the history
  3. Merge pull request home-assistant-libs#46 from home-assistant-libs/us…

    …e-python-logging-always
    
    Add patch to use Python logging everywhere
    agners authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    a78b3db View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. Add patch which implements async GetConnectedDevice

    The call GetConnectedDeviceSync may block for an extended period of
    time, especially when the CASE session needs to get reestablished. This
    adds an implementation of GetConnectedDeviceSync which uses asyncio to
    keep the asyncio event loop running.
    agners committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    c959864 View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#49 from home-assistant-libs/as…

    …ync-friendly-get-connected-device
    
    Add patch which implements async GetConnectedDevice
    agners authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    c073d6d View commit details
    Browse the repository at this point in the history
  3. Upload all wheels from correct path

    Upload wheels from the connectedhomeip directory which is now where the
    Matter SDK lives. This makes sure that wheel builds for macOS are
    available as well.
    agners committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    08ae351 View commit details
    Browse the repository at this point in the history
  4. Merge pull request home-assistant-libs#51 from home-assistant-libs/fi…

    …x-upload-path-release
    
    Upload all wheels from correct path
    agners authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    97f55c5 View commit details
    Browse the repository at this point in the history
  5. Add dependent patch which introduces _DeviceAvailableCallback

    The patch which implements async GetConnectedDevice requires the
    _DeviceAvailableCallback which got introduced with the fix which
    keeps a reference to callback function when using a timeout.
    
    Reorder the patch in a sensible order.
    
    The main/v1.3 branch already has this change upstream.
    agners committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    b7aa56c View commit details
    Browse the repository at this point in the history
  6. Merge pull request home-assistant-libs#52 from home-assistant-libs/ad…

    …d-dependent-patch
    
    Add dependent patch which introduces _DeviceAvailableCallback
    agners authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    aed5835 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. Merge pull request home-assistant-libs#53 from home-assistant-libs/main

    Update release branch to Matter v1.3
    agners authored Apr 18, 2024
    Configuration menu
    Copy the full SHA
    8633f96 View commit details
    Browse the repository at this point in the history
  2. Rebase node ID logging patch

    Node ID logging is already part of v1.3. Simply enable it by default for
    our purpose.
    agners committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    670b469 View commit details
    Browse the repository at this point in the history
  3. Remove more obsolete patches

    agners committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    c258460 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2024

  1. Use setup python

    agners committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    78f1f63 View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#54 from home-assistant-libs/up…

    …date-node-id-logging-patch
    
    Rebase node ID logging patch
    agners authored Apr 21, 2024
    Configuration menu
    Copy the full SHA
    a644995 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Configuration menu
    Copy the full SHA
    c56da6c View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#56 from home-assistant-libs/de…

    …bug-status-16-issue
    
    [Python] Fix Event callback for ARM64 Apple Platform devices
    agners authored Apr 25, 2024
    Configuration menu
    Copy the full SHA
    5b5b915 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Update Matter SDK to 648d7bf3d2 from v1.3-branch

    Bumps [connectedhomeip](https://github.com/project-chip/connectedhomeip) from `5bb5c9e23d` to `648d7bf3d2`.
    
    See full diff at project-chip/connectedhomeip@5bb5c9e...648d7bf.
    agners committed May 14, 2024
    Configuration menu
    Copy the full SHA
    8b0564d View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#64 from home-assistant-libs/up…

    …date-to-latest-v1.3-branch
    
    Update Matter SDK to `648d7bf3d2` from v1.3-branch
    agners authored May 14, 2024
    Configuration menu
    Copy the full SHA
    8bcb974 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Configuration menu
    Copy the full SHA
    2214b06 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c094b4e View commit details
    Browse the repository at this point in the history
  3. Merge pull request home-assistant-libs#68 from home-assistant-libs/ad…

    …d-untyped-attribute-callback
    
    Add untyped attribute callback support
    agners authored May 23, 2024
    Configuration menu
    Copy the full SHA
    ed9b9d3 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. Add patch to fix race condition especially during commissioning

    This adds a patch which removes some obsolte callback handling. This
    especially fixes race condition when calling the Python Device Controller
    from multiple Threads. Commands with callbacks (e.g. commissioning or
    opening the commissioning window) have a high likelyhood to get released
    early when other functions of the Python Device Controller were called
    simultaniously.
    
    Note that this doesn't make the Python Device Controller fully
    reentrant: All calls which have callbacks still share a single event
    object. This fixes merly some unnecessary non-reentrancy.
    agners committed May 29, 2024
    Configuration menu
    Copy the full SHA
    417fac2 View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#70 from home-assistant-libs/fi…

    …x-race-with-commissioning
    
    Add patch to fix race condition especially during commissioning
    agners authored May 29, 2024
    Configuration menu
    Copy the full SHA
    72ad04c View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2024

  1. Update Python controller bindings with latest patches

    Add patches from upstream master branch which improve the Python
    controller bindings. Notable this makes use of more asyncio calls in the
    SDK stack, updates some defines around logging, drops unnecessary and
    obsolete logging code, and removes quite some unnecessary code in
    general.
    agners committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    eec94fe View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. Add two more patches

    - [Python] Remove Python Bluetooth and ChipStack event loop integration
    - [Python] Add TriggerResubscribeIfScheduled to SubscriptionTransaction
    agners committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    94d1ad8 View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#72 from home-assistant-libs/in…

    …tegrate-python-controller-cleanups
    balloob authored Jun 7, 2024
    Configuration menu
    Copy the full SHA
    d8fd88a View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Update Python controller bindings with latest patches

    This adds more cleanups from the master branch to keep our 1.3 based
    branch close to upstream. Most noteworthy here are a patch which stops
    mDNS discovery when using the on-network commissioning API, fixes when
    commissioning using WiFi/Thread setup through BLE directly (the Python
    Matter Server isn't using this APIs currently), dropping unnecessary
    code and and general messaging cleanup.
    
    Specifically, this integrates changes from the following PRs
    - project-chip/connectedhomeip#33882
    - project-chip/connectedhomeip#33896
    - project-chip/connectedhomeip#33891
    - project-chip/connectedhomeip#33880
    - project-chip/connectedhomeip#33914
    - project-chip/connectedhomeip#33915
    - project-chip/connectedhomeip#33933
    agners committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    4aed874 View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#75 from home-assistant-libs/mo…

    …re-python-controller-cleanups
    
    Update Python controller bindings with latest patches
    agners authored Jun 17, 2024
    Configuration menu
    Copy the full SHA
    a126933 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Update Python controller bindings with latest Commissioning API updates

    This adds commissioning API updates from the master branch to our 1.3
    based branch. This makes the commissioning API more Pythonic and allows
    to call them from the asyncio event loop directly.
    
    Specifically, this integrates changes from the following PRs
    - project-chip/connectedhomeip#33954
    - project-chip/connectedhomeip#33905
    - project-chip/connectedhomeip#34001
    - project-chip/connectedhomeip#33989
    agners committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    a4a3231 View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#77 from home-assistant-libs/in…

    …tegrate-commissioning-api-async-refactor
    
    Update Python controller bindings with latest Commissioning API updates
    agners authored Jun 20, 2024
    Configuration menu
    Copy the full SHA
    2313f78 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Increase the maximum amount of devices supported

    Increase the limit of maximum amount of devices supported. This avoids
    CASE session getting evicted prematurely which leads to errors like:
    Data received on an unknown session (LSID=4729). Dropping it!
    agners committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    4a4f86c View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#79 from home-assistant-libs/in…

    …crease-maximum-devices-supported
    
    Increase the maximum amount of devices supported
    agners authored Jun 28, 2024
    Configuration menu
    Copy the full SHA
    3a4e9ad View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Add and use local CHIP project config headers

    Instead of relying on the in-tree config headers in config/standalone/
    pass a path to the project config to let the framework use our own
    config header files. This avoids using patches to adjust build specific
    configs.
    
    Note that previously the builds in this repository used config/standalone/
    instead of config/python/. The CHIP project config headers in config/python/
    is what the script ./scripts/build_python.sh uses. This script is sometimes
    used to build the Python library during development. And was the reason
    why the wrong file got patched in home-assistant-libs#79.
    
    There are minor differences between the standalone and python specific
    configs, specifically in CHIPProjectConfig.h. This PR adds a header file
    based on the config in config/python/, but with small adjustments.
    
    Compared to the previous configuration, the effective change at build
    time should work out to:
    - Dropping device specific configs (CHIP_DEVICE_CONFIG_*). These should
      not have an effect for our controller builds.
    - Increae of CHIP_CONFIG_CONTROLLER_MAX_ACTIVE_DEVICES to 1024 (this
      time the new configruation gets applied correclty).
    - Increase of CHIP_CONFIG_MAX_EXCHANGE_CONTEXTS from 150 (standalone
      config) to 256 which feels more natural.
    agners committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    e88e787 View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#80 from home-assistant-libs/us…

    …e-local-chip-project-config
    
    Add and use local CHIP project config headers
    agners authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    0aaf8c0 View commit details
    Browse the repository at this point in the history
  3. Update Python controller bindings with latest API updates

    Specifically, this integrates changes from the following PRs
    - project-chip/connectedhomeip#34033
    agners committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    2c1a93d View commit details
    Browse the repository at this point in the history
  4. Merge pull request home-assistant-libs#82 from home-assistant-libs/up…

    …date-python-controller-discovery-api
    
    Update Python controller bindings with latest API updates
    agners authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    5bc8a70 View commit details
    Browse the repository at this point in the history
  5. Use local CHIP project config headers on macOS too

    Make sure that we use the local CHIP project config headers on macOS too
    so that the Matter SDK configuration are the same for our Linux and macOS
    builds.
    agners committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    272ff9a View commit details
    Browse the repository at this point in the history
  6. Lower CHIP_CONFIG_MAX_EXCHANGE_CONTEXTS to 192

    It seems that when ICD Manager is used there is a limit of maximum
    exchange contexts. This got noticed on the master branch, but isn't
    triggered on 1.3 branch. But to have the same config let's go safe
    and use this lower value here too.
    agners committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    882dadd View commit details
    Browse the repository at this point in the history
  7. Merge pull request home-assistant-libs#85 from home-assistant-libs/us…

    …e-local-chip-project-config-on-mac
    
    Use local CHIP project config headers on macOS too
    agners authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    9e556ab View commit details
    Browse the repository at this point in the history
  8. Increase secure session pool size to 4096

    Increase the maximum amount of secure sessions to 4 times the device
    limit. This allows to have multiple sessions per device (if required) or
    multiple fabrics of up to 1024 devices.
    
    The size of a secure session is currently 264 bytes, so this will
    increase memory usage by about 1MB.
    agners committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    16d1879 View commit details
    Browse the repository at this point in the history
  9. Update CHIPProjectConfig.h

    Co-authored-by: Marcel van der Veldt <[email protected]>
    agners and marcelveldt authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    5eec8c1 View commit details
    Browse the repository at this point in the history
  10. Merge pull request home-assistant-libs#88 from home-assistant-libs/in…

    …crease-secure-session-pool-size
    
    Increase secure session pool size to 4096
    agners authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    7b2bfcc View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. Disable host unit test config

    By default the Python controller gets built with unit test configuration
    enabled. This adds extra functionality to inject errors etc. for
    testing. There is no known negative effect to have it enabled, but it is
    certainly better to disable it for a production setup.
    
    Furthermore this fixes error handling for APIs with callbacks and
    improves logging somewhat.
    
    Specifically, this integrates changes from the following PRs
    - project-chip/connectedhomeip#34346
    - project-chip/connectedhomeip#34354
    - project-chip/connectedhomeip#34368
    agners committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    aec4b6a View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#90 from home-assistant-libs/di…

    …sable-host-test-mode
    
    [1.3-branch] Disable host unit test config
    agners authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    e48b141 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Update Python controller bindings with latest Subscription fixes

    This adds Subscription fixes from the master branch to our 1.3 branch.
    Specifically, this only auto re-subscribes after an initial subscription
    succeeded. With that the Read call no longer hangs forver in case there
    is a communication issue with the device.
    
    Specifically, this integrates changes from the following PRs
    - project-chip/connectedhomeip#34370
    - project-chip/connectedhomeip#34372
    agners committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    86acde5 View commit details
    Browse the repository at this point in the history
  2. Merge pull request home-assistant-libs#93 from home-assistant-libs/ma…

    …ke-subscription-setup-fail-early
    
    Update Python controller bindings with latest Subscription fixes
    agners authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    b7ec5d9 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2024

  1. add Matter attestation bypass

    cka-dev committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    7666f13 View commit details
    Browse the repository at this point in the history