Commit Graph

779 Commits

Author SHA1 Message Date
Piyush Shah
b442dfcf3c node_info: Add an optional field "readme" in node info
This can point to some README url that the phone apps can fetch and show
at appropriate places.
2025-12-08 12:43:45 +05:30
Piyush Shah
cf3d30cb31 Merge branch 'rmaker/decouple_rcp_update' into 'master'
esp_rainmaker: decouple esp_rcp_update from esp_rainmaker

See merge request app-frameworks/esp-rainmaker!600
v1.8.0
2025-12-08 01:56:44 +05:30
Wang Qixiang
209087c7a5 esp_rainmaker: decouple esp_rcp_update from esp_rainmaker 2025-12-08 01:56:43 +05:30
Piyush Shah
bf99e8d8f5 Merge branch 'bugfix/homekit_switch' into 'master'
homekit_switch: rmaker_app_network was getting used instead of custom app_network

See merge request app-frameworks/esp-rainmaker!591
2025-11-15 09:03:52 +05:30
Piyush Shah
da577d7cb4 homekit_switch: rmaker_app_network was getting used instead of custom app_network
HomeKit has its own logic for network provisioning, including support
for Apple WAC and so, uses its own app_network component.
Recent restructuring pulled in the common rmaker_app_network component
instead.
2025-11-14 19:34:37 +05:30
Piyush Shah
e70ad69f0a Merge branch 'task/common_components' into 'master'
common: Prepare common example components for component registry

See merge request app-frameworks/esp-rainmaker!588
2025-11-14 17:57:17 +05:30
Piyush Shah
da838cbf13 rmaker_common: Remove the submodule and its references 2025-11-13 09:42:38 +05:30
Piyush Shah
8a816fc6c3 examples: Update the names for the common example components 2025-11-13 09:42:38 +05:30
Piyush Shah
d91538695d examples/common: Prepare common example components for component registry 2025-11-13 00:03:13 +05:30
Piyush Shah
f0e70ffd64 Merge branch 'task/cli-params' into 'master'
rmaker_console: Add set-param, update-param and get-param commands

See merge request app-frameworks/esp-rainmaker!583
v1.7.9
2025-11-12 23:17:44 +05:30
Piyush Shah
2de5cd5a56 examples: Enable parameter console commands in some examples 2025-11-12 20:50:06 +05:30
Piyush Shah
33d60a567b rmaker_console: Add set-param, update-param and get-param commands
- Add set-param command to set device parameter values, invoke respective callbacks and report to cloud
  Usage: set-param <device_name> <param_name> <value>
- Add update-param command to just report param value to cloud, without invoking callbacks
  Usage: update-param <device_name> <param_name> <value>
- Add get-param command to get device parameter values
  Usage: get-param <device_name> <param_name>
- Support all parameter types: boolean, integer, float, string

This enables easy interaction with ESP RainMaker devices through console interface.
2025-11-12 20:50:06 +05:30
Piyush Shah
9e4d1a683e esp_rmaker_params: Add "Firmware" as a new request source for set-params
Useful for identifying set params triggered from the firmware itself,
like from the CLI
2025-11-12 20:50:06 +05:30
Piyush Shah
df092ad76b Merge branch 'task/led-light' into 'master'
examples: Remove dependency on ws2812 and ledc components

See merge request app-frameworks/esp-rainmaker!587
2025-11-12 20:26:44 +05:30
Piyush Shah
b6d12121d7 Merge branch 'task/wifi-prov-retries' into 'master'
app_network: Use new wifi retry count field for better resilience in poor network conditions

See merge request app-frameworks/esp-rainmaker!590
v1.7.8
2025-11-12 18:08:19 +05:30
Piyush Shah
7dedfad9f7 app_network: Use new wifi retry count field for better resilience in poor network conditions
If network connection fails even once, the firmware reports so to
clients (like phone apps) and the clients declare failure and abort
immediately, even if the firmware eventually connects. With this
change, a failure will be reported only after a few retries (whise
number is configurable)
2025-11-12 17:01:19 +05:30
Piyush Shah
4820d8d83f esp_rainmaker: Make version dependency for network_provisioning more flexible 2025-11-12 17:01:19 +05:30
Piyush Shah
a640b220de examples: Remove dependency on ws2812 and ledc components
- Use led_indicator component from component manager for ws2812 and RGB
  LEDs
- Add other components from examples/common via idf_component.yml
  instead of adding as EXTRA_COMPONENT_DIRS in CMakeLists.txt
2025-11-11 19:56:43 +05:30
Piyush Shah
c18a11fe6a Merge branch 'feature/aws_credential_api' into 'master'
Added AWS credential provider APIs

See merge request app-frameworks/esp-rainmaker!567
v1.7.7
2025-11-11 18:43:11 +05:30
Piyush Shah
62297229bc Merge branch 'task/esp_schedule_migration' into 'master'
esp_schedule: migration to idf-extra-components

See merge request app-frameworks/esp-rainmaker!589
2025-11-04 21:37:47 +05:30
Junius Pun
925b69f959 esp_schedule: migration to idf-extra-components 2025-11-04 21:37:47 +05:30
Piyush Shah
354f22eb5b Merge branch 'task/app-reset' into 'master'
app_reset: Remove dependency on local gpio_button component

See merge request app-frameworks/esp-rainmaker!586
2025-10-28 02:02:22 +05:30
Piyush Shah
1dc2fc3130 examples: Use modified app_reset APIs and upstream button component 2025-10-27 18:00:42 +05:30
Piyush Shah
2a879fb485 app_reset: Remove dependency on local gpio_button component
Use the upstream espressif/button component instead.
Made other changes to make the component independent enough to
be uploaded on component registry.
2025-10-27 18:00:29 +05:30
Vikram Dattu
54ff0faf20 Added AWS credential provider APIs
- Two APIs added: get_aws_region and get_security_token
 - Useful, if an application needs to get credentials for a role
 - Also, added the facility to set MQTT_CRED_HOST
2025-10-27 10:27:55 +05:30
Hrishikesh Dhayagude
57ddb532c0 Merge branch 'fix/example/matter-light-switch' into 'master'
refactor(matter_switch): update endpoint name to on_off_light_switch

See merge request app-frameworks/esp-rainmaker!584
2025-10-21 14:36:19 +08:00
Piyush Shah
895db65a4e Merge branch 'support/esp32p4_no_ota_bt_controller_checks' into 'master'
Disabled esp_bt code from rmaker_ota

See merge request app-frameworks/esp-rainmaker!579
v1.7.6
2025-10-17 17:04:38 +05:30
Vikram Dattu
712a277d05 Renamed wifi_start and wifi_init APIs defined in app_wifi_internal
- The API names are too common/generic
 - Conflict with hosted APIs and hence needs to be renamed
2025-10-17 15:49:02 +05:30
Vikram Dattu
f9b1948fdf Disabled esp_bt code from rmaker_ota
- There is no esp_bt.h and controller available on P4/hosted.
 - Disabled this for now
2025-10-17 15:48:56 +05:30
mahesh
2ab59d7858 example/matter: Update the device type name in the light_switch example as per the esp-matter updates
ci: update matter build image to include updated namespaces change
2025-10-17 15:33:29 +05:30
Piyush Shah
b02b4651fd Merge branch 'task/minor-changes' into 'master'
esp_rainmaker: Change default MQTT HOST and add guards for cmd-resp configs

See merge request app-frameworks/esp-rainmaker!580
v1.7.5
2025-09-24 19:55:36 +05:30
Piyush Shah
42af2bd344 esp_daylight: Remove component as it was moved to idf-extra-components 2025-09-24 16:08:42 +05:30
Piyush Shah
b57b750fb4 cmd_resp: Code guards were missing for some config options 2025-09-23 16:49:11 +05:30
Piyush Shah
a131a00490 esp_rainmaker: Change default MQTT HOST for public RainMaker
The MQTT Host is now under a proper domain: mqtt.rainmaker.espressif.com
2025-09-22 14:34:53 +05:30
Piyush Shah
a485ba518f Merge branch 'rmaker/network_type' into 'master'
rmaker: use OpenThread Partition ID as the network-id and add it to node attributes

See merge request app-frameworks/esp-rainmaker!494
2025-09-18 16:18:17 +05:30
Hrishikesh Dhayagude
467d29da6e Merge branch 'fix-matter-build' into 'master'
examples/matter: add the include directory to fix build

See merge request app-frameworks/esp-rainmaker!578
2025-09-16 16:30:08 +08:00
Shubham Patil
0686cddb16 examples/matter: add the include directory to fix build
data-model-provider changes moved few macros around,
so builds are failing on main branch.
Add the include directory into cmake file and include the required
header file at required source files.
2025-09-15 14:18:30 +05:30
WanqQixiang
11acb5496e rmaker: use OpenThread Partition ID as the network-id and add it to node attributes 2025-09-15 14:37:00 +08:00
Piyush Shah
c2089284d9 Merge branch 'task/params-cmd-resp' into 'master'
feature: Add parameter updates via command-response (command id 1)

See merge request app-frameworks/esp-rainmaker!566
v1.7.3
2025-09-15 11:56:33 +05:30
Piyush Shah
2ab70b5d06 feature: Add parameter updates via command-response (command id 1)
Adds support for triggering parameter updates through the command-response
framework using the special command id 1. The feature is controlled by the new
CONFIG_ESP_RMAKER_PARAM_CMD_RESP_ENABLE option and is enabled by default
when command-response is enabled.

The status and updated params are returned in the response data

Sample command payload: {"params":{"Light":{"Power":false}}}
Sample response payload: {"status":"success","params":{"Light":{"Power":false}}}

This will also update the values in the params DB returned via the
regular get params APIs like GET /user/nodes/params
2025-09-12 19:51:00 +05:30
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