148 Commits

Author SHA1 Message Date
Hrishikesh Dhayagude 2cb668c95d Merge branch 'migrated-clusters-testing' into 'main'
[example] Add example to test optional attributes of migrated clusters.

See merge request app-frameworks/esp-matter!1462
2026-04-24 13:19:09 +08:00
Mahesh Pimpale 4209c20359 data_model_gen: treat clusters with codegen implementation as non-SCI/non-migrated 2026-04-23 14:12:54 +05:30
Rohit 85a04cf3bf [example] Add example to tests optional attributes of migrated clusters along with the script to verify.
Add pytest to CI

Fix CI
2026-04-21 14:06:52 +05:30
Shu Chen 30b0f6ea74 Merge branch 'fix/network-diag-cluster-guard' into 'main'
components/esp_matter: gate network diagnostics clusters on transport config

See merge request app-frameworks/esp-matter!1495
2026-04-20 10:02:31 +00:00
Shubham Patil 588322c892 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
Mahesh Pimpale 42075d5c75 components/esp_matter: generated data model using automated script
- data_model/legacy/: moved old data model to this folder
- data_model/generated/: contain the automatically generated data model
- tools/data_model_gen: contains the script to generate the data model
2026-04-15 17:05:50 +05:30
Mahesh Pimpale deca4d8f40 components/esp_matter: Add webrtc transport requestor integration 2026-04-15 16:27:32 +05:30
Shu Chen da3910cec5 Merge branch 'components/update_device_type_revision_for_matter1_5' into 'main'
components: update device type revision base on matter1.5

See merge request app-frameworks/esp-matter!1450
2026-04-08 04:18:26 +00:00
Shubham Patil c466b7ce81 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-06 17:13:27 +05:30
liyashuai ad78aadb95 components: update device type revision base on matter1.5 2026-03-31 05:51:51 +00:00
Shu Chen b5275f458b Merge branch 'fix_start_up_event' into 'main'
components/esp_matter: call init callbacks for endpoints created before esp_matter::start

See merge request app-frameworks/esp-matter!1478
2026-03-31 05:49:32 +00:00
chendejin cade5352c4 components/esp_matter: call init callbacks for endpoints created before esp_matter::start 2026-03-27 11:02:43 +08:00
Rohit cbd05e669d components/esp-matter: Fix API name as per the spec. 2026-03-26 11:29:01 +05:30
liyashuai 341e5fbefc data_model/change identify type attribute flag to ATTRIBUTE_FLAG_NONE to fix init failed
fixes: issue:https://github.com/espressif/esp-matter/issues/1612
2026-03-25 19:07:33 +08:00
Hrishikesh Dhayagude 7e54fc7251 Merge branch 'fix/device-energy-mgmt-mode-init' into 'main'
Fix Device Energy Management Mode Cluster Initialization

See merge request app-frameworks/esp-matter!1461
2026-03-24 21:14:24 +08:00
Shubham Patil daf12f3421 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-18 09:03:28 +05:30
Mahesh Pimpale 9a87312bd7 components/esp_matter: Fix device energy management mode cluster initialization 2026-03-16 16:28:47 +05:30
Hrishikesh Dhayagude 94d54bc335 Merge branch 'feat/irrigation_system_device_type' into 'main'
Add irrigation system device type data model

See merge request app-frameworks/esp-matter!1445
2026-03-12 16:19:48 +08:00
Hrishikesh Dhayagude b40a9f6380 Merge branch 'fix/refactor-update-report-attribute-utils' into 'main'
components/esp-matter: propagate error code from attribute update/report and refactoring

See merge request app-frameworks/esp-matter!1441
2026-03-11 01:00:06 +08:00
Shubham Patil a2926640e9 components/esp-matter: propogate error code from attribute update/report
and refactoring

attribute::update and attribute::report were eating up the error code
returned by set_val and returning ESP_OK. This hide all the errors
reported by set_val.

attribute::update and attribute::report are identical with a simple
delta of whether to call the attribute callback or not. So, refactored
it into as helper function.
2026-03-10 12:27:30 +05:30
Mahesh Pimpale 96ab773bbc components/esp_matter: Add irrigation system device type data model 2026-03-05 11:19:24 +05:30
Hrishikesh Dhayagude d1966151a2 Merge branch 'pr_1720' into 'main'
[GH_PR] fix(data_model): silence spurious "Cluster cannot be NULL" error during dynamic endpoint init (CON-1987)

See merge request app-frameworks/esp-matter!1439
2026-03-03 13:48:56 +08:00
Shubham Patil 039026f8cf components/esp_matter: handle meter identification cluster init's return
value
2026-02-25 17:13:27 +05:30
Chris Leishman c718d9b504 fix(data_model): silence spurious "Cluster cannot be NULL" error during dynamic endpoint init
When using the esp_matter data model (CONFIG_ESP_MATTER_ENABLE_DATA_MODEL=y),
attribute::get(endpoint_id, cluster_id, attribute_id) is called during endpoint
registration via emberAfExternalAttributeReadCallback. If the cluster doesn't
exist on the endpoint, the lookup returns NULL, which is then passed to the
two-argument get(cluster_t*, attribute_id) overload that logs at error level.

Add a NULL guard in the three-argument overload to return nullptr early,
consistent with how command::get(endpoint_id, cluster_id, command_id) already
handles this case.

Fixes #1692
2026-02-24 07:32:17 -08:00
Hrishikesh Dhayagude 599247e215 Merge branch 'pr_1719' into 'main'
[GH_PR] Fix: Correct MinSetpointDeadBand bounds to use int8_t (CON-1986)

See merge request app-frameworks/esp-matter!1433
2026-02-18 16:29:49 +08:00
Hrishikesh Dhayagude bc7c3eb7f1 Merge branch 'fix/feature-validation-check' into 'main'
Update Feature Validation check for clusters

See merge request app-frameworks/esp-matter!1423
2026-02-18 12:44:46 +08:00
Szilveszter Szebeni 3a721c2541 Fix: Correct MinSetpointDeadBand bounds to use int8_t
MinSetpointDeadBand is defined as an int8_t, but the bounds were incorrectly created using int16_t. Updated bounds to use int8_t with the correct range (0–127).
2026-02-15 15:51:55 +01:00
Hrishikesh Dhayagude 67db90b84d Merge branch 'feat/add-zone_management-cluster' into 'main'
Add zone_management cluster in esp_matter

See merge request app-frameworks/esp-matter!1397
2026-02-13 17:51:33 +08:00
Shu Chen 77a7e01716 Merge branch 'fix_endpoint_report' into 'main'
components/esp_matter: report attribute change in endpoint::enable and disable

See merge request app-frameworks/esp-matter!1427
2026-02-10 11:06:19 +00:00
mahesh 8164d351b1 components/esp_matter:Add missing feature for device energy management cluster
Replace at most validation check with exact one for closure dimension
cluster
- removed at most validation macro
- add features for door lock, microwave oven, device energy management,
  energy evse devices in all device type app to make them conformant
2026-02-09 12:23:21 +05:30
mahesh 11b6a1d113 components/esp_matter: add zone_management cluster in esp_matter 2026-02-09 12:04:22 +05:30
chendejin dd9d4d9c53 components/esp_matter: report attribute change in endpoint::enable and disable 2026-02-09 10:51:22 +08:00
WanqQixiang 968ff042a8 CI: add astyle pre-commit hook 2026-02-03 15:30:42 +08:00
chendejin f3a727930b components/esp_matter: call init function in endpoint::enable 2026-01-30 14:09:50 +08:00
WanqQixiang 063f5c606d esp_matter: add soil sensor device type 2026-01-27 14:30:43 +08:00
Shu Chen 6456f3fbe2 Merge branch 'submodule/update_8f943388af' into 'main'
submodule: update connectedhomeip submodule to commit id 8f943388af

See merge request app-frameworks/esp-matter!1404
2026-01-26 07:45:05 +00:00
Hrishikesh Dhayagude 3f65036765 Merge branch 'attribute_update_cb' into 'main'
components/esp_matter: Add attribute update callback in case of attribute managed by SCI and AAI.

See merge request app-frameworks/esp-matter!1371
2026-01-22 16:02:46 +08:00
Hrishikesh Dhayagude be6172fb98 Merge branch 'feat/add-soil_measurement-cluster' into 'main'
Add soil_measurement cluster in esp_matter

See merge request app-frameworks/esp-matter!1396
2026-01-22 15:57:54 +08:00
WanqQixiang baf5959df1 submodule: update connectedhomeip submodule to commit id 8f943388af 2026-01-19 08:37:19 +08:00
Rohit 651c1c6db9 components/esp_matter: Add attribute update callback in case of attribute managed by SCI and AAI. 2026-01-16 11:51:49 +05:30
Shu Chen 40b9d1413e Merge branch 'feat/add-destroy-methods' into 'main'
Add Destroy API Support for Commands, Attributes, and Events

See merge request app-frameworks/esp-matter!1336
2026-01-15 11:16:23 +00:00
Hrishikesh Dhayagude c77ff4be94 Merge branch 'fix/delegate_initialisation' into 'main'
components/esp-matter: Fix the delegate initialization flow

See merge request app-frameworks/esp-matter!1387
2026-01-14 22:08:34 +08:00
Hrishikesh Dhayagude 2a3d3e2299 Merge branch 'pr_1638' into 'main'
[GH_PR] Fix MeterIdentification cluster AttributeAccessInterface initialization (CON-1910)

See merge request app-frameworks/esp-matter!1388
2026-01-14 15:57:36 +08:00
Rohit 5e56b173d2 components/esp-matter: Fix the delegate initialization flow. Fixes:https://github.com/espressif/esp-matter/issues/1630 2026-01-13 17:12:18 +05:30
mahesh d07487cdf7 components/esp_matter: add soil_measurement cluster in esp_matter 2026-01-11 16:42:56 +05:30
Shu Chen b9ab5160e8 Merge branch 'add_network_diag_clusters' into 'main'
esp_matter: Add WiFiNetworkDiagnotics and ThreadNetworkDiagnostics clusters by default

See merge request app-frameworks/esp-matter!1381
2026-01-07 10:27:28 +00:00
Ludovic BOUÉ 1db3abc215 feat: add Meter Identification delegate initialization callback
feat: add Meter Identification delegate initialization callback

feat: clarify initialization callback in Meter Identification delegate

feat: clarify initialization callback in Meter Identification delegate

feat: update initialization callback for Meter Identification delegate
2026-01-07 07:15:29 +00:00
WanqQixiang 8163ff16a5 esp_matter: Add WiFiNetworkDiagnotics and ThreadNetworkDiagnostics cluster by default 2026-01-04 09:24:43 +08:00
Shu Chen 1cbceb0d43 Merge branch 'add_calling_for_doorlock_cluster_init' into 'main'
Doorlock: Add calling for emberAfDoorLockClusterInitCallback function

See merge request app-frameworks/esp-matter!1343
2026-01-03 04:05:42 +00:00
Hrishikesh Dhayagude 2e20fa03a6 Merge branch 'feat/add-electrical-device-types' into 'main'
Add electrical device types

See merge request app-frameworks/esp-matter!1369
2025-12-31 16:24:17 +08:00