Commit Graph

2059 Commits

Author SHA1 Message Date
Shu Chen 8d561526ab Merge branch 'fix_controller_remove_keyset_v1_4_2' into 'release/v1.4.2'
components/esp_matter_controller: fix remove group keyset (1.4.2)

See merge request app-frameworks/esp-matter!1509
2026-04-22 11:26:58 +00:00
chendejin b601091e95 components/esp_matter_controller: fix remove group keyset 2026-04-22 14:01:36 +08:00
Hrishikesh Dhayagude 31348f0925 Merge branch 'backport/v1.4.2/fix-network-diag-cluster-guard' into 'release/v1.4.2'
[v1.4.2]: components/esp_matter: gate network diagnostics clusters on transport config

See merge request app-frameworks/esp-matter!1512
2026-04-22 13:52:35 +08:00
Shubham Patil e1b37d5322 components/esp_matter: gate network diagnostics clusters on transport config
WiFi and Thread network diagnostics clusters were unconditionally
created on the root node when their Kconfig flags were enabled,
regardless of the actual transport. A Thread-only device would
incorrectly include the WiFi Network Diagnostics cluster.

Gate cluster creation on transport-level defines so that WiFi
diagnostics are only added when WiFi is enabled, and Thread
diagnostics only when Thread is enabled.

Fixes https://github.com/espressif/esp-matter/issues/1649
2026-04-17 13:57:27 +05:30
Shu Chen 32e6b75cfb Merge branch 'backport/custom-network-config-v1.4.2' into 'release/v1.4.2'
[v1.4.2]: components/esp_matter: add CustomNetworkConfig support

See merge request app-frameworks/esp-matter!1497
2026-04-09 02:51:05 +00:00
Shubham Patil 5c14bb4ab7 components/esp_matter: add CustomNetworkConfig support
Skip the Network Commissioning cluster on the root node when
CONFIG_CUSTOM_NETWORK_CONFIG is enabled, per Matter spec condition
(!CustomNetworkConfig). This allows devices with out-of-band network
configuration (rich UI, manufacturer-specific means) to omit the
cluster as the spec permits.

- Add CONFIG_CUSTOM_NETWORK_CONFIG Kconfig option
- Conditionally skip network_commissioning in root_node config/add
- Exclude integration.cpp from build when custom config enabled
- Add weak stubs for Plugin callbacks as fallback
- Also guarded secondary network device type and all the
  attributes and commands that are part of network commissioning
  cluster
2026-04-08 14:51:50 +05:30
Hrishikesh Dhayagude 0838521cd2 Merge branch 'fix/v1.4.2/dynamic-endpoint-composition' into 'release/v1.4.2'
[v1.4.2] components/esp_matter: set full-family composition for dynamic endpoints

See merge request app-frameworks/esp-matter!1480
2026-04-07 16:40:49 +08:00
Shu Chen 7282a17c3e Merge branch 'fix_ble_mesh_example_v1_4_2' into 'release/v1.4.2'
examples/common: fix ble not start in blemesh_bridge exmaple (v1.4.2)

See merge request app-frameworks/esp-matter!1486
2026-03-31 11:17:08 +00:00
chendejin 2c103c253d examples/common: fix ble not start in blemesh_bridge exmaple 2026-03-31 17:03:28 +08:00
Shubham Patil 548a250df6 components/esp_matter: set full-family composition for dynamic endpoints
emberAfSetDynamicEndpoint does not auto-detect device types to set
the isFlatComposition flag, unlike static endpoints in emberAfInit.
This causes Aggregator and Bridged Node endpoints registered dynamically
to use kTree composition instead of kFullFamily, resulting in PartsList
only listing direct children instead of all descendants.

After registering a dynamic endpoint, check if its device type is
Root Node, Aggregator, or Bridged Node and call
SetFlatCompositionForEndpoint to match the static endpoint behavior.

Closes https://github.com/espressif/esp-matter/issues/1741
2026-03-27 14:35:38 +05:30
Shu Chen 292e94d685 Merge branch 'backport/v1.4.2/cluster-destroy-unlink' into 'release/v1.4.2'
[v1.4.2] components/esp-matter: unlink cluster from endpoint on cluster::destroy

See merge request app-frameworks/esp-matter!1472
2026-03-25 03:10:11 +00:00
Shubham Patil 004798130a fix(data_model): unlink cluster from endpoint on cluster::destroy
cluster::destroy() freed the cluster memory and its children (attributes,
commands, events) but never removed the cluster from the parent endpoint's
linked list, leaving a dangling pointer. This caused use-after-free crashes
when creating a new cluster on the same endpoint after destroying one.

Fix: look up the parent endpoint via the endpoint_id stored in the cluster
struct and unlink before freeing, consistent with how attribute::destroy,
command::destroy and event::destroy handle their parent lists.
2026-03-24 23:04:00 +05:30
Hrishikesh Dhayagude 8a6d0f4643 Merge branch 'fix/refactor-update-report-attribute-utils-1-4-2' into 'release/v1.4.2'
[v1.4.2] propagate error code from attribute update/report

See merge request app-frameworks/esp-matter!1467
2026-03-24 21:13:06 +08:00
Shubham Patil 60adb53d75 ci: use the target branch for comapring typos 2026-03-23 16:20:16 +05:30
Shubham Patil 3b7f1d4ca6 components/esp_matter: propagate error code from attribute report on v1.4.2
attribute::report() was ignoring the return value from set_val() and
always returning ESP_OK. This hid errors like ESP_ERR_NOT_SUPPORTED
for internally managed attributes (e.g., BooleanState::StateValue).

This fix:
- Propagates the error from set_val() back to the caller
- Checks return value of get_val() in report()
- Adds void cast to intentionally unchecked get_data_from_attr_val()
  call in update()

Related: https://github.com/espressif/esp-matter/issues/1724
Backport of !1441 (main)
2026-03-23 16:14:08 +05:30
Hrishikesh Dhayagude 11a6b46cf9 Merge branch 'cherry_pick/resource_group_1.4.2' into 'release/v1.4.2'
[v1.4.2] gitlab-ci.yml: Added gitlab resource groups logic to avoid arbitary build failures.

See merge request app-frameworks/esp-matter!1466
2026-03-18 14:50:21 +08:00
shripad621git 25b9985490 [v1.4.2] gitlab-ci.yml: Added gitlab resource groups logic to avoid arbitary build failures. 2026-03-18 11:10:23 +05:30
Hrishikesh Dhayagude 1843e5b4ec Merge branch 'duplicate_commands' into 'release/v1.4.2'
[v1.4.2] components/esp_matter: Prevent creation of duplicate commands.

See merge request app-frameworks/esp-matter!1363
2026-02-18 14:22:43 +08:00
Hrishikesh Dhayagude 9b127bd1ac Merge branch 'esp_matter/fix_python_cert_test_v1_4_2' into 'release/v1.4.2'
esp-matter: fix python certificate testing failure(v1.4.2)

See merge request app-frameworks/esp-matter!1416
2026-02-18 12:45:16 +08:00
Shu Chen c26df8c020 Merge branch 'esp_matter_v1_4_2_1_component' into 'release/v1.4.2'
esp_matter managed component: v1.4.2~1

See merge request app-frameworks/esp-matter!1419
2026-01-30 12:32:24 +00:00
Shu Chen e5d9b15524 Merge branch 'fix-rac-dt-version' into 'release/v1.4.2'
[v1.4.2] components/esp_matter: fix the RAC device type version

See merge request app-frameworks/esp-matter!1413
2026-01-30 12:32:07 +00:00
Rohit 8cd47a826f components/esp_matter: Prevent creation of duplicate commands. 2026-01-29 10:58:12 +05:30
chendejin 52f63c0b81 esp_matter managed component: v1.4.2~1 2026-01-28 16:46:58 +08:00
WanqQixiang 4c29f272d7 esp-matter: fix python certificate testing failure(v1.4.2) 2026-01-26 09:37:26 +08:00
Shubham Patil 65da2b9706 components/esp_matter: fix the RAC device type version
Room AC Device Type version should be 2 but its listed as 3.

Fixes https://github.com/espressif/esp-matter/issues/1656
2026-01-22 16:16:49 +05:30
Shu Chen 1560327e99 Merge branch 'add_network_diag_clusters_v1_4_2' into 'release/v1.4.2'
esp_matter: Add WiFiNetworkDiagnotics and ThreadNetworkDiagnostics clusters by default(v1.4.2)

See merge request app-frameworks/esp-matter!1384
2026-01-08 09:33:19 +00:00
WanqQixiang ff7d578058 esp_matter: Add WiFiNetworkDiagnotics and ThreadNetworkDiagnostics cluster by default 2026-01-04 11:29:33 +08:00
Shu Chen a436d1f509 Merge branch 'fix/compile_icd_without_data_model_1_4_2' into 'release/v1.4.2'
components/esp_matter: fix compile error for icd without esp data model (v1.4.2)

See merge request app-frameworks/esp-matter!1360
2025-12-29 02:02:52 +00:00
chendejin e158ae8dc1 components/esp_matter: fix compile error for icd without esp data model 2025-12-24 19:53:19 +08:00
Hrishikesh Dhayagude 49e4e98562 Merge branch 'fix-attribute-types-1-4-2' into 'release/v1.4.2'
[v1.4.2] components/esp-matter: fix types for on_time and off_wait_time

See merge request app-frameworks/esp-matter!1345
2025-12-18 14:44:24 +08:00
Shubham Patil 46cac96d3b components/esp-matter: fix types for on_time and off_wait_time
These are non-nullable uint16's, so removed the nullable type
2025-12-16 14:34:04 +05:30
Hrishikesh Dhayagude ca1759c0e0 Merge branch 'bump-submodule-1-4-2' into 'release/v1.4.2'
[v1.4.2] connectedhomeip: update submodule to use the correct ESP32SecureCertDataProvider.h

See merge request app-frameworks/esp-matter!1248
2025-12-03 13:54:18 +08:00
Shubham Patil 6a2ed584eb connectedhomeip: update submodule to 2960abcbcf
- Use the correct ESP32SecureCertDataProvider.h
- update the readme to list v1.4.2
- ci: bump idf-component-manager to v2.2 for external platform builds
- idf.py build complaining about older v2.1.2 of idf-component-manager so
  bumping it.
- components/esp_matter: run the generate_zap_common_files.py, and
  commit delta
2025-12-02 20:07:55 +05:30
Hrishikesh Dhayagude 3a4ae18eb7 Merge branch 'backport/v1.4.2/fix/add_mandatory_attribute' into 'release/v1.4.2'
[v1.4.2]: Add missing pending_dataset_timestamp mandatory attribute

See merge request app-frameworks/esp-matter!1299
2025-11-12 22:55:10 +08:00
Hrishikesh Dhayagude 5d95031e03 Merge branch 'backport/v1.4.2/null_check' into 'release/v1.4.2'
[v1.4.2]: Add null check for config before pointer dereference

See merge request app-frameworks/esp-matter!1297
2025-11-12 22:54:07 +08:00
Hrishikesh Dhayagude 9d89b5e92a Merge branch 'fix-scenes-dup-1-4-2' into 'release/v1.4.2'
[v1.4.2] components/esp_matter: remove duplicate scenes mgmt create from extended color light

See merge request app-frameworks/esp-matter!1292
2025-10-31 18:18:01 +08:00
mahesh 0d85755562 components/esp_matter: Add missing pending_dataset_timestamp mandatory attribute for thread border router management cluster 2025-10-31 14:36:45 +05:30
mahesh e24cab6242 components/esp_matter:Add null check for config before pointer dereference 2025-10-31 13:49:03 +05:30
Hrishikesh Dhayagude d556f67bb4 Merge branch 'mtr-uniq-data-in-sec-cert-1-4-2' into 'release/v1.4.2'
[v1.4.2] mfg_test_app: read and print the matter unique data from secure cert partition

See merge request app-frameworks/esp-matter!1285
2025-10-31 15:34:02 +08:00
Shu Chen 9d4cd7afbc Merge branch 'fix-icd-1-4-2' into 'release/v1.4.2'
[v1.4.2] components/esp-matter: add icd_management::maximum_check_in_backoff

See merge request app-frameworks/esp-matter!1293
2025-10-31 06:59:17 +00:00
Shu Chen 498a96bed0 Merge branch 'compat-fixes-1-4-2' into 'release/v1.4.2'
[v1.4.2] compatibility fixes for air quality and temperature unit attributes

See merge request app-frameworks/esp-matter!1276
2025-10-31 06:58:18 +00:00
Shubham Patil 0fea830743 components/esp_matter: add IDs to the attribute exception list
This is still easily parsable, and still have IDs which can be consumed
by the automations.
2025-10-29 17:51:24 +05:30
Shubham Patil b89f2989a9 components/esp_matter: remove the internally-managed flag for thermostat attributes: local-temperature and remote-sensing 2025-10-29 17:41:56 +05:30
Shubham Patil e09bf34324 components/esp-matter: add icd_management::maximum_check_in_backoff
Create API was missing for this and we did create this when adding check
in protocol support feature.
2025-10-27 17:47:25 +05:30
Shubham Patil dabf52f1fc components/esp_matter: remove duplicate scenes mgmt create from extended color light 2025-10-27 17:44:52 +05:30
Shubham Patil f87a4cd119 components/esp_matter: implement temperature unit handling with
compatibility adjustments

Added global variable for temperature unit for deferred
setting when enabling endpoint. Compatibility functions to
handle temperature unit attribute reads and writes,
ensuring seamless integration with previous versions.

Also, added a function to retrieve the cluster id and endpoint id for
internally managed attribues.
2025-10-27 16:06:25 +05:30
Hrishikesh Dhayagude 694c19bc27 Merge branch 'remove-provisional-features' into 'release/v1.4.2'
Remove provisional features from esp_matter

See merge request app-frameworks/esp-matter!1286
2025-10-24 21:04:08 +08:00
Shubham Patil 1131d08855 mfg_test_app: read and print the matter unique data from secure cert partition
examples/mfg_test_app: include CONFIG_MBEDTLS_HKDF_C in sdkconfig.defaults
2025-10-24 18:25:13 +05:30
mahesh cc74d88286 components/esp_matter:Remove provisional features from esp_matter 2025-10-17 17:24:43 +05:30
Shubham Patil 37a2c7d0b7 components/esp_matter: move air quality attribute storage to external
Storage of this attribute was moved from esp-matter to
connectedhomeip during the v1.4.2 release by implementing the AAI in
connectedhomeip. For most clusters, AAI registration occurs in the
cluster-init callback, but for this Air Quality cluster, it is
delegated to the application layer. So, in the esp-matter's workflow,
no one registers the AAI. And, as this attribute is of primitive type,
we can discard the ATTRIBUTE_FLAG_MANAGED_INTERNALLY flag and storage
can be managed by esp-matter.
2025-10-16 09:46:51 +05:30