739 Commits

Author SHA1 Message Date
Piyush Shah
e9676d9da5 Merge branch 'feature/add_ota_resumption' into 'master'
ota: Add resumption ota feature

See merge request app-frameworks/esp-rainmaker!577
v1.7.2
2025-09-12 17:49:38 +05:30
Piyush Shah
ebe3742c0a Merge branch 'support/led_light_pop_config' into 'master'
example(led_light): Add support for setting POP_TYPE from config

See merge request app-frameworks/esp-rainmaker!574
2025-09-12 17:06:44 +05:30
Jim
e0bc3f5e99 ota: Add resumption ota feature 2025-09-12 09:18:40 +08:00
Piyush Shah
0702ea4ddc Merge branch 'task/daylight_schedules' into 'master'
schedules: Add sunrise/sunset based schedules

See merge request app-frameworks/esp-rainmaker!573
v1.7.1
2025-09-10 19:50:58 +05:30
Piyush Shah
726a8e8d06 esp_rainmaker: Add support for sunrise/sunset based schedules
Can be enabled using CONFIG_ESP_RMAKER_SCHEDULE_ENABLE_DAYLIGHT, which
depends on CONFIG_ESP_SCHEDULE_ENABLE_DAYLIGHT=y.

These can be more reliable compared to the cloud driven daylight
automations as the calculations happen locally on the device and
schedules can take effect even when the device is offline.

This also supports offset so that you can schedule actions before/after
sunrise/sunset.

Together, these have a binary size impact of about 12,250 bytes.
CONFIG_ESP_SCHEDULE_ENABLE_DAYLIGHT contributes 11,500 bytes
CONFIG_ESP_RMAKER_SCHEDULE_ENABLE_DAYLIGHT contributes additional 750
bytes.
2025-09-10 18:23:40 +05:30
Piyush Shah
decb722fa4 esp_schedule: Add support for sunrise/sunset schedules
Enable using CONFIG_ESP_SCHEDULE_ENABLE_DAYLIGHT (default enabled)
Has a binary size impact of about 11,500 bytes
2025-09-10 18:23:40 +05:30
Piyush Shah
d7d67e1865 esp_daylight: Add a component to get sunrise/sunset time for a given location
Using NOAA equations as per the reference: https://gml.noaa.gov/grad/solcalc/
2025-09-10 18:23:40 +05:30
Vikram Dattu
151b2603fc example(led_light): Add support for setting POP_TYPE from config
- Three options to chose from 0 (POP_TYPE_MAC), 1 (POP_TYPE_RANDOM) and 2 (POP_TYPE_NONE)
 - CUSTOM_POP option is not provided, because it needs additional API call to set custom pop value
2025-09-10 11:35:12 +05:30
Piyush Shah
ee8107a56c Merge branch 'task/cleanup' into 'master'
cleanup: Remove Makefile related and older esp-idf compatibility code

See merge request app-frameworks/esp-rainmaker!569
v1.7.0
2025-08-31 19:10:58 +05:30
Piyush Shah
1dec6f0d3a homekit_switch: Use network_provisioning component instead of wifi_provisioning 2025-08-31 18:01:47 +05:30
Piyush Shah
3e4df2e5c8 Merge branch 'task/chal-resp-assisted-claiming' into 'master'
chall_resp: Allow challenge-response based mapping with Assisted Claiming

See merge request app-frameworks/esp-rainmaker!571
v1.6.7
2025-08-29 20:34:25 +05:30
Piyush Shah
15922cf7c0 examples: Remove legacy code for esp-idf versions < 5.1 2025-08-29 20:02:57 +05:30
Piyush Shah
5536af3487 app_network: Remove CONFIG_ESP_RMAKER_USING_NETWORK_PROV
Made network prov as default since it is supported for esp-idf v5.1
onwards and esp-idf v5.0 has reached end of life.

This will make the code more readable
2025-08-29 20:02:41 +05:30
Piyush Shah
f3f7f74f4e esp_rainmaker: Remove legacy code for esp-idf versions < 5.1
Also removed CONFIG_ESP_RMAKER_USING_NETWORK_PROV

Made network prov as default since it is supported for esp-idf v5.1
onwards and esp-idf v5.0 has reached end of life.

This will make the code more readable
2025-08-29 19:54:54 +05:30
Piyush Shah
7e2dd9e5db esp_schedule: Remove legacy code for esp-idf versions < 5.1 2025-08-29 19:52:06 +05:30
Piyush Shah
efcb15b137 cleanup: Remove Makefile related files as it is not supported any more
ESP IDF has moved to CMake since long back and these files were anyways
unused
2025-08-29 19:52:06 +05:30
Piyush Shah
eb187e13c1 chall_resp: Allow challenge-response based mapping with Assisted Claiming 2025-08-29 18:54:10 +05:30
Piyush Shah
53e08eaa1a Merge branch 'bugfix/user-mapping' into 'master'
bugfix: User-Node mapping could fail if esp-insights is enabled

See merge request app-frameworks/esp-rainmaker!564
v1.6.6
2025-08-29 17:08:01 +05:30
Piyush Shah
8371bc0bbf bugfix: User-Node mapping could fail if esp-insights is enabled 2025-08-26 16:13:12 +05:30
Piyush Shah
6e8f0d0730 Merge branch 'task/launchpad-idf-update' into 'master'
launchpad: Update esp-idf release version to v5.4.2

See merge request app-frameworks/esp-rainmaker!565
2025-08-14 20:49:12 +05:30
Piyush Shah
7e0ac791a2 launchpad: Update esp-idf release version to v5.4.2 2025-08-14 19:24:21 +05:30
Piyush Shah
7f8076da48 Merge branch 'task/chal_resp' into 'master'
Challenge Response based User-Node Association

See merge request app-frameworks/esp-rainmaker!512
v1.6.5
2025-08-08 22:47:04 +05:30
Piyush Shah
a87c825fbb chal_resp: Add support for challange response based user node association
This is a synchronous user-node mapping method that is performed during
provisioning, but even before sending Wi-Fi credentials and does not require
any communication from the node to the cloud. Check the esp_rainmaker
component CHANGELOG for details.
2025-08-08 20:02:38 +05:30
Piyush Shah
5b4f62ad5d Merge branch 'task/ota-restructure' into 'master'
Add support for MQTT OTA and split HTTP into a separate file

See merge request app-frameworks/esp-rainmaker!561
v1.6.4
2025-08-04 22:51:56 +05:30
Piyush Shah
7e4ec722c1 Merge branch 'bugfix/docs-build' into 'master'
gitlab-ci: Remove invalid dependency for docs build

See merge request app-frameworks/esp-rainmaker!558
2025-08-04 21:45:50 +05:30
sanket.wadekar
cf49ba4219 esp_rmaker_ota: Added OTA Updates over MQTT
The regular OTA upgrades with ESP RainMaker required an additional https
connection to fetch the OTA image, which has a significant impact on
heap usage.

With MQTT OTA, the same MQTT channel used for rest of the RainMaker
communication is used to fetch the OTA image, thereby saving on RAM.
This could be slightly slower and may odd some cost. but the overall
impact would be low enough when compared against the advantages.

Signed-off-by: sanket.wadekar <sanket.wadekar@espressif.com>
Co-authored-by: Piyush Shah <piyush.shah@espressif.com>
2025-08-04 21:27:08 +05:30
Piyush Shah
e6a3741ee0 Merge branch 'bugfix/ota_refetch' into 'master'
bugfix: Duplicate otafetch was causing crashes

See merge request app-frameworks/esp-rainmaker!563
2025-08-04 16:13:51 +05:30
Piyush Shah
b2bd4c1e9a bugfix: Duplicate otafetch was causing crashes
Triggering a new otafetch while one was already in progress was causing
crashes due to incorrect setting/clearing of data.

This happened specifically on rebooting into new firmware after an OTA
when both, CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE and CONFIG_ESP_RMAKER_OTA_AUTOFETCH
are enabled.
v1.6.3
2025-08-04 14:46:19 +05:30
Piyush Shah
5edb7563a9 Merge branch 'bugfix/fix_mqtt_block_issue' into 'master'
esp_rainmaker: make esp_rmaker_params_mqtt_init function execute in queue so that it will not block event task

See merge request app-frameworks/esp-rainmaker!562
2025-08-04 13:49:39 +05:30
jim
4a0ff0d0eb esp_rainmaker: make esp_rmaker_params_mqtt_init function execute in
queue so that it will not block event task
v1.6.2
2025-08-01 14:00:40 +08:00
Piyush Shah
1908682637 Merge branch 'example/add_system_service' into 'master'
example(led_light): Add system service to support factory reset

See merge request app-frameworks/esp-rainmaker!560
2025-07-30 12:14:22 +05:30
Hrishikesh Dhayagude
e364fc4b41 Merge branch 'fix-matter-light' into 'master'
examples/matter/matter_light: set default values using set_val api

See merge request app-frameworks/esp-rainmaker!557
2025-07-30 13:57:03 +08:00
esp
98a76a1ecb example(led_light): Add system service to support factory reset 2025-07-30 10:12:17 +08:00
Piyush Shah
13f02b3453 gitlab-ci: Remove invalid dependency for docs build 2025-07-22 23:50:20 +05:30
Shubham Patil
9899f6b4e6 examples/matter/matter_light: set default values using set_val api
Variable names differ between main and release/v1.4 branches for setting
the member attributes in feature struct, so use the attribute::set_val()
api as a workaround for compatibility.

esp-matter!1002 added the feature config and we updated the rainmaker
examples, but then there were more changes went in which broke the
APIs/structs and was fixed in esp-matter!1146 which again broke the
rainmaker examples.

This fixes the current esp-matter:main and esp-rainmaker:master builds
for rainmaker+matter examples.
2025-07-22 12:52:47 +05:30
Piyush Shah
c149f36cf6 Merge branch 'cmd-response-publish-api' into 'master'
components/esp_rainmaker: make cmd response payload publish api public

See merge request app-frameworks/esp-rainmaker!541
2025-07-13 22:30:29 +05:30
Shubham Patil
af03e62381 components/esp_rainmaker: make cmd response payload publish api public
also bump the minimum required rmaker_common's version to 1.4.12 to use
the newly added payload generator APIs.
v1.6.1
2025-07-13 11:24:26 +05:30
Shubham Patil
8076c0dd76 rmaker_common: update submodule to add tlv payload generator api 2025-07-11 18:14:09 +05:30
Hrishikesh Dhayagude
5facf1b50d Merge branch 'update/matter_readme' into 'master'
examples/matter: Updated the README for matter examples

See merge request app-frameworks/esp-rainmaker!552
2025-06-30 22:18:45 +08:00
shripad621git
a84ba1aa17 examples/matter: Updated the README for matter examples 2025-06-30 11:01:09 +05:30
Piyush Shah
d0d0e27a98 Merge branch 'task/ota_reliability' into 'master'
ota: Enhance OTA fetch reliability with retry mechanism and delivery confirmation

See merge request app-frameworks/esp-rainmaker!548
2025-06-25 06:49:32 +05:30
Piyush Shah
b2dd13214c esp_rainmaker: Bump up component version and dependency for OTA reliability improvements v1.6.0 2025-06-24 19:58:21 +05:30
Piyush Shah
085b5da9cf esp_rmaker_ota: Retry on failure
- Try OTA multiple times (as per `CONFIG_ESP_RMAKER_OTA_MAX_RETRIES`, set to 3 by default) if it fails
- Schedule an OTA fetch as per `CONFIG_ESP_RMAKER_OTA_RETRY_DELAY_MINUTES` if all retries fail
2025-06-24 19:53:32 +05:30
Piyush Shah
552091a6ef Merge branch 'bugfix/fix_srp_max_hostname_length' into 'master'
fix(local_ctrl): Fix srp host name is too short for some node id used with uuid

See merge request app-frameworks/esp-rainmaker!551
2025-06-24 10:25:01 +05:30
Piyush Shah
a96ae30aaa Merge branch 'client-only-matter-controller' into 'master'
Add client-only matter controller example

See merge request app-frameworks/esp-rainmaker!425
2025-06-24 10:19:25 +05:30
esp
8bacc14517 fix(local_ctrl): Fix srp host name is too short for some node id used with uuid 2025-06-24 11:11:46 +08:00
Piyush Shah
d465264179 Merge branch 'fix-matter-nvs-sz' into 'master'
examples/matter: increase the nvs size to recommended 48KB

See merge request app-frameworks/esp-rainmaker!537
2025-06-23 19:00:36 +05:30
WanqQixiang
6a79869068 examples: Add client-only matter controller example 2025-06-23 17:22:40 +08:00
Piyush Shah
e081eef5c2 ota: Enhance OTA fetch reliability with retry mechanism and delivery confirmation
- Monitor message publish acknowledgement for the otafetch message
- Add retry logic if otafetch fails
2025-06-20 14:13:20 +05:30
Hrishikesh Dhayagude
21f5f47686 Merge branch 'feature/add_matter_plus_rainmaker_light_example' into 'master'
Add matter plus rainmaker light example non fabric and dynamic passcode function

See merge request app-frameworks/esp-rainmaker!526
2025-06-20 13:13:51 +08:00