Commit Graph

491 Commits

Author SHA1 Message Date
Piyush Shah
33a943e5fd Merge branch 'fix_matter_light_build' into 'master'
examples: fix matter_light building

See merge request app-frameworks/esp-rainmaker!414
2023-12-27 16:53:26 +08:00
WanqQixiang
1c887053d7 examples: fix matter_light building 2023-12-27 10:49:53 +08:00
Piyush Shah
d6b8f83fae Merge branch 'controller/remove_esp_box_path' into 'master'
remove ESP_BOX_PATH ENV requirement for controller on box

See merge request app-frameworks/esp-rainmaker!412
2023-12-19 14:27:52 +08:00
chendejin
558f2318e4 remove ESP_BOX_PATH ENV require for controller on box 2023-12-11 16:55:10 +08:00
Piyush Shah
18882f737c Merge branch 'code/controller_on_esp32_s3_box_3' into 'master'
matter_support: Controller demo on esp32_s3_box_3

See merge request app-frameworks/esp-rainmaker!410
2023-12-08 17:00:50 +08:00
Piyush Shah
752d91e4b6 Merge branch 'bugfix/unknown_time_t' into 'master'
fix unknown type name 'time_t' error

See merge request app-frameworks/esp-rainmaker!411
2023-12-08 17:00:22 +08:00
chendejin
7d4c1e36f9 fix unknown type name time_t error 2023-12-08 15:18:04 +08:00
chendejin
41ef0bec9c matter_support: Controller demo on esp32_s3_box_3 2023-12-08 14:54:23 +08:00
Piyush Shah
1ef4458c3e Merge branch 'feat/controller_remote_control_cli' into 'master'
matter_controller: Support for remote control via CLI and minor fixes

See merge request app-frameworks/esp-rainmaker!406
2023-12-08 12:10:27 +08:00
Sayon Deep
290f24771a update rainmaker cli submodule to ed097e71 2023-12-07 16:28:00 +05:30
Sayon Deep
555f969bcb matter_controller: Support for remote control via CLI and minor fixes
- Added support for wildcard attribute reads
- Changes to support newly added read_done_cb
2023-12-07 16:28:00 +05:30
Hrishikesh Dhayagude
548f8cc54c Merge branch 'controller/changes_to_support_new_subscribe_command_format' into 'master'
matter_support: Changes to support new subscribe command format

See merge request app-frameworks/esp-rainmaker!407
2023-12-05 19:42:04 +08:00
Sayon Deep
a1dc04151a matter_support: Changes to support new subscribe command format 2023-12-05 11:22:47 +05:30
Piyush Shah
4029393b37 Merge branch 'task/custom_pop' into 'master'
app_wifi: Add an option to provide a custom Proof of Possession (PoP) for provisioning

See merge request app-frameworks/esp-rainmaker!404
2023-11-29 22:15:44 +08:00
Piyush Shah
00bf093167 app_wifi: Add an option to provide a custom Proof of Possession (PoP) for provisioning
POP_TYPE_CUSTOM has been added as an option for app_wifi_start().
app_wifi_set_custom_pop() should be used before this.
2023-11-29 13:56:05 +08:00
Piyush Shah
5afe4cc960 Merge branch 'task/ci-fix' into 'master'
gitlab-ci: Temporary fix for pipeline for idf v5.1

See merge request app-frameworks/esp-rainmaker!405
2023-11-29 11:49:44 +08:00
Piyush Shah
fd75e43f91 gitlab-ci: Temporary fix for pipeline for idf v5.1 2023-11-23 19:02:26 +05:30
Piyush Shah
da29a2fbc7 Merge branch 'task/schedule_with_validity' into 'master'
schedules: Add a concept of start/end of validity of schedules

See merge request app-frameworks/esp-rainmaker!401
2023-11-23 20:00:43 +08:00
Piyush Shah
e781af6fea Merge branch 'code/controller_on_ESP_S3_BOX_example' into 'master'
examples: Add matter controller on esp32-s3-box example

See merge request app-frameworks/esp-rainmaker!395
2023-11-18 22:40:39 +08:00
chendejin
d1354bc4f3 examples: Add matter controller on ESP32-S3-BOX example 2023-11-08 17:30:42 +08:00
Piyush Shah
0fde281942 esp_rmaker_schedule: Use esp_schedule's concept of validity
Allow users to specify start and end time between which the schedule
will be active. A new object "validity" has been introduced for this.
Eg.
{
    "Schedule": {
        "Schedules": [
            {
                "name": "Evening",
                "id": "8D37",
                "operation": "add",
                "validity": {
                    "start": 1698839416,
                    "end": 1698840916
                },
                "triggers": [
                    {
                        "m": 1053,
                        "d": 31
                    }
                ],
                "action": {
                    "Light": {
                        "Power": true
                    }
                }
            }
        ]
    }
}
2023-11-07 23:13:53 +05:30
Piyush Shah
d4d353c5a3 esp_schedule: Add a concept of start/end of validity of schedules
This will allow providing a range between which the schedule should be active.
Eg. Turn on the light at 6:00pm everyday, only between 1-Nov-2023 to
30-Nov-2023. The ranges are to be specified as UTC epoch time.
2023-11-07 23:13:46 +05:30
Piyush Shah
eeed71b63d schedules: Change timing logic to use trigger object instead of schedule object
This will make the code cleaner since timing related logic is linked
only to the trigger object and not the entire schedule object and
additionally, this can allow us to have multiple triggers per schedule
in future.
2023-11-07 23:13:04 +05:30
Piyush Shah
d48789a627 Merge branch 'bugfix/schedule_type' into 'master'
esp_schedule: Handle invalid schedule trigger types

See merge request app-frameworks/esp-rainmaker!402
2023-11-07 13:12:53 +08:00
Piyush Shah
daf3ea7f71 esp_schedule: Handle invalid schedule trigger types
- Do not allow schedules with invalid trigger type
- For existing schedules with invalid trigger type, add handling so that they
  expire after triggering once, similar to one time schedules.
2023-11-06 20:02:40 +05:30
Piyush Shah
fd65c8195e Merge branch 'docs/pin_ubuntu_version_to_20' into 'master'
docs: pin ubuntu version to 20.04 in .readthedocs.yml

See merge request app-frameworks/esp-rainmaker!394
2023-11-01 20:03:05 +08:00
Piyush Shah
b0d02253a0 Merge branch 'bugfix/rel_schedules' into 'master'
esp_schedules: Schedules with "relative seconds" were repeating continuously

See merge request app-frameworks/esp-rainmaker!399
2023-11-01 16:32:22 +08:00
Piyush Shah
37831922eb esp_schedules: Schedules with "relative seconds" were repeating continuously
After a schedule with "relative seconds" executed, the esp_rmaker_schedule
logic was disabling it. However, this was causing incorrect checks in
esp_schedule component logic, causing the schedule to get re-enabled.

Added a check similar to other schedules to prevent this.
2023-10-27 19:31:52 +05:30
Piyush Shah
2278be2dad Merge branch 'support/improve_wifi_prov_cli' into 'master'
wifi-prov cli: Set Wi-Fi creds directly for already provisioned devices

See merge request app-frameworks/esp-rainmaker!387
2023-10-27 21:21:30 +08:00
Vikram Dattu
10361704b4 wifi-prov cli: Set Wi-Fi creds directly for already provisioned devices
When device is already provisioned, `wifi_prov_mgr_configure_sta` API call fails.
This happens because, provisioning manager is in uninitialized state.
We set Wi-Fi credetials directly using `esp_wifi_set_config` in that case.

Also removed error check on `wifi_prov_mgr_is_provisioned` API call, as for
IDF 4.x APIs return `ESP_ERR_INVALID_STATE`
2023-10-27 18:20:00 +05:30
Piyush Shah
ea54ebed64 Merge branch 'support/esp32c6' into 'master'
Extended examples support to esp32c6

See merge request app-frameworks/esp-rainmaker!391
2023-10-27 19:06:11 +08:00
Vikram Dattu
f1d16cf736 examples: Added support for ESP32C6
1. ESP32C6 button configs for RGB LED and Boot GPIO
2. CI: Added entry for C6 in `.gitlab.yaml`
3. Added `partitions_4mb_optimised.csv` which uses flash to the full extent
  - Created sdkconfig.defaults for esp32c6 and used partitions_4mb_optimised.csv as default
  - This is made default for esp32c6 because, for esp32c6, image sizes exceed config from partitions.csv
4. Fixed matter examples CMakeLits.txt files for c6 support
2023-10-26 17:38:53 +05:30
Wang Fang
96472d6766 docs: pin ubuntu version to 20.04 in .readthedocs.yml 2023-10-17 16:42:14 +08:00
Piyush Shah
edb9bad556 Merge branch 'docs/fix_rtd_failure' into 'master'
docs: fix RTD failure

See merge request app-frameworks/esp-rainmaker!393
2023-10-16 14:56:15 +08:00
Wang Fang
1d656e8cbe docs: fix RTD failure 2023-10-13 17:27:16 +08:00
Piyush Shah
df907aa2f3 Merge branch 'docs/update_build_doc_os_in_readthedocs' into 'master'
docs: update build doc OS in .readthedocs.yml

See merge request app-frameworks/esp-rainmaker!392
2023-10-13 16:42:30 +08:00
Wang Fang
9e202c8afa docs: update build doc OS in .readthedocs.yml 2023-10-13 10:47:42 +08:00
Piyush Shah
9be6eda90a Merge branch 'docs/update_readthedoc_yaml_to_use_build_os' into 'master'
docs: update readthedocs.yml to use build.os

See merge request app-frameworks/esp-rainmaker!390
2023-10-12 18:04:15 +08:00
Wang Fang
d7acf544bf docs: update readthedocs.yml to use build.os 2023-10-12 11:39:33 +08:00
Piyush Shah
9689b6942b Merge branch 'code/matter_controller_example' into 'master'
examples: Add matter controller example

See merge request app-frameworks/esp-rainmaker!385
2023-10-10 00:35:08 +08:00
WanqQixiang
b5da8d7d4a examples: Add matter controller example 2023-10-09 15:15:56 +08:00
Piyush Shah
bdbb62d99f Merge branch 'task/idf_component_mgr' into 'master'
Add support for IDF component manager

See merge request app-frameworks/esp-rainmaker!288
2023-09-22 20:06:07 +08:00
Piyush Shah
cfca241575 idf_component_manager: Add components of esp rainmaker to component manager
Includes esp_rainmaker and esp_schedule
2023-09-22 09:40:00 +05:30
Piyush Shah
f6ed0c4994 components: Updated and moved some components
- qrcode, ws2812_led and gpio_button moved to examples/common
- esp-insights and rmaker_common submodules updated
- json_generator and json_parser components copied from component
  manager so that they can be used for component overrides
2023-09-22 09:39:55 +05:30
Piyush Shah
d8e93454f4 Merge branch 'bugfix/ci_builds' into 'master'
Fix CI issues

See merge request app-frameworks/esp-rainmaker!389
2023-09-21 20:16:03 +08:00
Vikram Dattu
9255e94b52 Remove Insights component for IDF >= 5.0 as it is already included by esp-matter
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2023-09-21 11:25:26 +05:30
Vikram Dattu
de9ae4b3ed Use espressif/esp-matter:latest_idf_v5.1.1 image for matter examples
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2023-09-21 11:25:26 +05:30
Vikram Dattu
7a8b26c936 matter examples: Change flag to -std=gnu++17 to fix build errors
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2023-09-21 11:18:24 +05:30
Vikram Dattu
c43cd071fa IRAM optimization fix for ESP32 to all examples
From IDF 5.1 and above, we are out of IRAM for ESP32.
Enabled FreeRTOS functions to flash option to save IRAM. This is same existing fix in other examples

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2023-09-15 16:18:47 +05:30
Piyush Shah
2f7db4be6c Merge branch 'feature/local_ctrl_api' into 'master'
feature: Add APIs to enable/disable local control.

See merge request app-frameworks/esp-rainmaker!348
2023-09-12 13:50:17 +08:00