Commit Graph

209 Commits

Author SHA1 Message Date
Chirag Atal 743f5cd90e light: Change color_dimmable_light to color_temperature_light
Added support for temperature in app_driver.
Adding hue and saturation after the color_temperature_light endpoint has been created.
Similar changes in other light examples.
2022-05-28 07:43:20 +08:00
Chirag Atal 2e91ab095f docs: Minor docs changes
readme: Replacing the example rst files in the docs with the readme files in the example directories.
2022-05-28 07:43:20 +08:00
Chirag Atal 3cadeddde8 app_ble: Add support to disable BLE
examples: Disabled BLE once commissioning is complete.
2022-05-28 07:43:10 +08:00
Chirag Atal 58ede577ef esp-matter: Minor miscellaneous fixes
examples: Changes to events and comments.
switch: Rename to light_switch.
docs: Minor changes.
2022-05-28 07:42:00 +08:00
Chirag Atal 28b385d228 esp_matter: Change all IDs to their correct data types. 2022-05-28 07:42:00 +08:00
Shubham Patil 9ec2d301ac Remove esp-insights support for now 2022-05-27 15:51:30 +05:30
Shu Chen a803cb1f15 ci: add external platform test 2022-05-16 19:34:54 +08:00
Hrishikesh Dhayagude 71a690244b Merge branch 'task/hollow_button' into 'main'
hollow_button: Add support for hollow button driver

See merge request app-frameworks/esp-matter!116
2022-05-11 13:39:47 +08:00
Shubham Patil ef93c9f5f4 Enable insights support in light app 2022-05-10 21:33:52 +05:30
Chirag Atal 6582643a37 zap-generated: Updating the files with changes from submodule. 2022-05-06 15:16:16 +05:30
Chirag Atal 96c6a92a40 app_reset: Add support for factory reset on button.
esp_matter: Supporting factory reset API.
app_driver: Enabling factory reset on button.
2022-05-04 10:43:44 +05:30
Chirag Atal 82ecf9fa05 device_hal: Restructuring to make the usage flexible.
button_driver: Add support for gpio and adc from esp-iot-solution.
led_driver: Renamed light_driver to led_driver.
app_driver: Using this restructured device_hal.
app_driver: Added toggle based on button_driver.
2022-05-04 10:38:24 +05:30
WangQixiang 860ab38e86 Fix lighting app of esp32h2 and bridge-zigbee app errors 2022-04-28 20:40:03 +08:00
Chirag Atal 55e9c353f5 submodule: Update the submodule to 6109d1434
esp_matter_core: Some changes for device type id.
esp_matter_command: Corresponding changes for renaming of command flags.
esp_matter_ota: Corresponding changes from upstream examples.
zap-generated: Added a common access.h with all the clusters and other corresponding changes in endpoint_config.h.
zap_light: Regenerated zap-generated with the same light.zap file.
2022-04-25 19:55:53 +05:30
Chirag Atal 0685068c26 esp_matter: Using namespaces for IDs instead of using macros from submodule
examples: Similar changes
esp_matter_rainmaker: Adding rainmaker namespace and similar IDs instead of macros.
2022-04-07 15:45:07 +05:30
Chirag Atal dc92697de8 esp_matter: API documentation
Also some other minor restructurings.
2022-04-07 11:36:02 +05:30
Chirag Atal b4d240e4a1 esp_matter: Using namespaces everywhere
Adding constructors to structs for default values of the cluster configs.
esp_matter_command: Removing the support for custom command callbacks and instead using the standard command callback itself. Also some other minor changes to make it easier for the application to use the standard command callback.
2022-04-06 10:55:58 +05:30
Chirag Atal 8a14138e17 esp_matter_feature: Add support for cluster features
esp_matter_endpoint: Adding these features to the cluster based on the device types.
esp_matter_cluster: Calling the feature APIs based on the features selected.
2022-04-05 11:13:22 +05:30
Chirag Atal 5a70c12bdb app_rainmaker: Remapping the param values
Also minor restructuring of files in the examples.
Also minor change to the default values to fix remapping.
2022-04-04 11:21:51 +05:30
Chirag Atal c4adabf075 examples/app_main: Making the endpoint_configs local instead of global
The attributes values are now allocated and copied internally. So not using the endpoint_config as the storage for the attributes.
app_main: Adding default for hue. Also adding defaults for zap_light.
2022-03-29 11:05:21 +05:30
Chirag Atal 2f41c1d7a1 submodule: Updating submodule to current master (commit id: 10b804696)
esp_matter_command: Removing the response commands support. This is now managed internally for each command separately.
esp_matter_command: Adding another flag for commands. This is used to generate the command lists.
esp_matter_core: Add support for client generated and server generated command lists in clusters.
esp_matter_core: Add support for data versions for endpoints and minor restructuring.
esp_matter_core: Add support to lock and unlock chip_stack. Using this lock in esp_matter_attribute for reading and writing attributes.
esp_matter_client: Binding changes.
esp_matter_cluster: Changing binding commands to binding attribute.
esp_matter_cluster: Adding the clusters/attributes/commands which were 'not implemented' before and are supported now.

esp_matter_cluster: Minor renames.
esp_matter_attribute: Minor changes.
esp_matter_ota: Minor changes.

zap-generated: Removing CHIPClusters.cpp and CHIPClientCallbacks.cpp and updating their corresponding header files.
zap-generated: Minor changes in gen_config.h, callback-stub.cpp and endpoint_config.h.
zap-generated: Added new empty files to prevent cmake warnings.
zap-generated: Updated zap_light's zap-generated.
2022-03-15 14:42:38 +05:30
Hrishikesh Dhayagude 771e4c41fd Merge branch 'bugfix/attribute_values' into 'main'
esp_matter_attribute: Fix attribute values for uint16 and strings

See merge request app-frameworks/esp-matter!92
2022-03-14 17:32:17 +08:00
Chirag Atal 01e00cbf7d esp_matter_attribute: Passing esp_matter_attr_val_t by reference instead of passing it as value everywhere. 2022-03-10 20:15:49 +05:30
Chirag Atal cc83b3db4b esp_matter_attribute: Moving the console commands for get/set attributes from the application to esp_matter
These commands support both zap data model and esp matter data model applications.
2022-03-10 19:09:54 +05:30
PSONALl ee7a45f8f1 Add default configs for light 2022-03-09 13:21:03 +05:30
Chirag Atal ddf15359ea esp_matter: Using the flags enums instead of mask macros for endpoints, clusters, attributes, commands. 2022-02-17 16:42:36 +05:30
WanqQixiang b75040657b Move app_ota to esp_matter_ota component 2022-02-10 15:10:09 +08:00
Chirag Atal 3d03223f3a cmake: Minor change to remove the example's directory name
This makes it easier for adding new examples
2022-02-04 17:12:51 +05:30
Chirag Atal 1fc7c1485f esp_matter_core: Assigning the endpoint id internally
Also added support for endpoint's device_type_id
2022-02-02 11:53:54 +05:30
Chirag Atal 169feb9e16 esp_matter: Add support for endpoint_delete() API
Also added some additional checks for the data model APIs.
2022-01-31 14:27:18 +05:30
Chirag Atal 1e265d93bc zap-generated: Making the plugin init callbacks generic by using a common callback instead
esp_matter_cluster: Setting cluster plugin init callback dynamically. The callbacks are then called from the common callback.
2022-01-28 18:26:46 +05:30
Chirag Atal 3f364de9af zap_common: Moving callback-stup to zap_common
Removing cluster specific weak functions from the file
2022-01-28 18:06:18 +05:30
Chirag Atal 83b9e28590 zap_common: Added common zap code here which overrides the zap-generated
Removed the generic files for light and rainmaker_light examples.
2022-01-28 18:05:22 +05:30
Hrishikesh Dhayagude bb1e9aa101 Merge branch 'update_matter_repo' into 'main'
Matter: Update Matter repo to 1a65c20ed9 based on upstream commit 77ab003e5f

See merge request app-frameworks/esp-matter!64
2022-01-27 17:10:46 +00:00
WanqQixiang 9c16cbf318 Add ESP32-S3 Target in device_hal 2022-01-27 18:55:59 +08:00
WanqQixiang 0708e5ba19 Update matter repo to 1a65c20ed9 base on origin 77ab003e5f 2022-01-27 18:41:46 +08:00
Chirag Atal e20183a04e app_driver: Setting the default attribute values for the driver
Getting the default values from the data model and updating the driver with those values.
2022-01-19 16:40:24 +05:30
WanqQixiang 80909ccc20 Rename app_openthread to esp_matter_openthread 2022-01-14 19:39:07 +08:00
WanqQixiang 83dbaf5795 Fix ESP32H2 errors after refactor 2022-01-11 15:49:45 +08:00
Chirag Atal a270477e16 esp_matter: Adding data model APIs for endpoints, clusters, attributes and commands.
This is a middle layer between application and chip submodule.
esp_matter_core: Data model APIs in the form of linked lists. It also has the APIs for initialisations for matter.
esp_matter_endpoint: APIs for endpoint. This adds the mandatory clusters for the endpoint.
esp_matter_cluster: APIs for cluster. This adds the mandatory attributes and commands for the cluster.
esp_matter_attribute: APIs for attribute value. It also manages the attribute related matter callbacks.
esp_matter_command: Callback APIs for commands.
esp_matter_attribute: Giving 2 callbacks to the application, pre_attribute and post_attribute.

app_main: Dynamically creating the data model using the top level APIs.
app_matter: Moved to esp_matter_start() in esp_matter. Also moved the post_attribute_callback to esp_matter_attribute and moved the event_callback to app_main.
app_driver: Moved with app_main. Using IDs instead of macros.
app_driver: Changing the console usage from names to IDs.
app_rainmaker: Dynamically creating the rainmaker data model from the matter data model. The endpoint_id, cluster_id, attribute_id need to be handled accordingly.

cmake: Moved the chip submodule sources and includes from app_main to esp_matter.
zap-generated: Using esp_matter_command instead of IMClusterCommandHandler. Dynamically creating the data model instead of using macros from endpoint_config.
zap-generated: Regenerated using the zap tool with matter_root_node and matter_color_dimmable_light device types. Also enabled wifi and thread for network commissioning cluster.
device_hal: Added support for esp32s2 with hollow drivers.

zap_light: Adding another example which uses the zap-generated data model instead of the esp_matter data model.
ci: Added zap_light example to ci.
2022-01-10 14:19:50 +05:30
WanqQixiang 26a49b27cb Add OTA Requestor for light app and fix on-off command bug 2021-12-17 19:00:22 +08:00
Jiacheng Guo bb835d7baf Support ICMPv6 RIO handling
* Add support for ICMPv6 RIO handling for ESP32
* Update ESP-IDF release to v4.4 for route hook support
2021-12-09 12:15:15 +08:00
Jiacheng Guo 5b383fb9f9 submodule: update connectedhomeip to version 2e85d48cf
* Update ZAP file to include required clusters and commands
* Regenerate ZAP
* Fix build & pairing
* Move OpenThread launch to examples
2021-12-03 11:44:06 +08:00
Hrishikesh Dhayagude 10139666e6 Merge branch 'task/diagnostics_console' into 'main'
esp_matter_console: Add diagnostcs commands support

See merge request app-frameworks/esp-matter!51
2021-12-01 11:01:40 +00:00
Chirag Atal 45fff75fcc esp_matter_console: Add console diagnostcs commands support 2021-11-26 19:29:33 +05:30
Jiacheng Guo ff861b03be ci: format current code 2021-10-25 17:41:34 +08:00
Jiacheng Guo c40bf209b4 examples: post Matter initialization to the scheduler
This MR moves Matter stack initialization to the scheduler to prevent
stack overflow on the main task.
2021-10-22 16:38:53 +08:00
WanqQixiang a54b1e0f42 Submodule: update connectedhomeip submodule to test_event_6_esp branch
The test_event_6_esp branch fixes some errors for esp32h2 platform based on TE6 branch
2021-10-14 20:21:59 +08:00
Chirag Atal 0411e34a9b esp_matter_console: Separating console/shell into another component
The removes the shell APIs from app_main and also adds provision for other components to add their own commands.
2021-10-13 14:43:28 +05:30
Chirag Atal 9fe6acd7d3 app_qrcode: Added qrcode to be displayed on the device console for commissioning.
qrcode: Using the qrcode component from esp-idf/examples/common_components.
2021-10-12 18:34:50 +05:30