Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre release 3.5.7 #115

Merged
merged 41 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
a2f1d51
refactored and completed EZPI-351_https://jira.mios.com/browse/EZPI-351
ezlo-rikenm Apr 9, 2024
d43f452
added a code to free 'fields->user_arg'
ezlo-rikenm Apr 9, 2024
b3857c7
Scene block status reset feature
NDJ-EZLO Apr 10, 2024
f78818a
Scene reset latch
NDJ-EZLO Apr 10, 2024
fc7bcbd
testing reset_latch_then_method
ezlo-rikenm Apr 10, 2024
9758357
testing min_free_heap when hub.create.scene
ezlo-rikenm Apr 10, 2024
c4dc6c7
added EZPI-349_toggle_value_method ; https://jira.mios.com/browse/EZP…
ezlo-rikenm Apr 11, 2024
03aeb97
added isHouseMode_changed_from_method
ezlo-rikenm Apr 11, 2024
e6bc745
implemented switch_house_mode then-method; EZPI-367: https://jira.mio…
ezlo-rikenm Apr 12, 2024
b96bc41
fixed a parsing bug
ezlo-rikenm Apr 15, 2024
a5c3af0
refactoring code
ezlo-rikenm Apr 15, 2024
9c04c5b
added then-method_reset_Scene_latches
ezlo-rikenm Apr 16, 2024
b4ba25f
added isHouseModeAlarmPhaseRange
ezlo-rikenm Apr 16, 2024
616a33f
added is_house_mode_switch_toRange
ezlo-rikenm Apr 17, 2024
5e7e3b2
adding expression evaluation in 'compare_number_method'
ezlo-rikenm Apr 18, 2024
3a57b39
refactoring compare_number,compare_num_range,strings,string_opr,inArray
ezlo-rikenm Apr 19, 2024
a78b796
refactored compare_value, atleast_one_dictionary_value , firmware_upd…
ezlo-rikenm Apr 22, 2024
b757f07
merged EZPI-351_scene_function_refactor
ezlo-rikenm Apr 23, 2024
53c1fd7
Merge branch 'meshbot_development' into development_pre_release
ezlo-rikenm Apr 23, 2024
1416a66
Merge branch 'EZPI-349_then_method_toogle_value' into development_pre…
ezlo-rikenm Apr 23, 2024
63fc2d7
Merge branch 'EZPI-366_isHouseMode_changed_from_method' into developm…
ezlo-rikenm Apr 23, 2024
7e21344
Merge branch 'EZPI-367_then_method_switchHouseMode' into development_…
ezlo-rikenm Apr 23, 2024
05d0325
merged EZPI-371_reset_scene_latches
ezlo-rikenm Apr 23, 2024
5ea120a
merged EZPI-372_isHouseModeAlarmPhaseRange
ezlo-rikenm Apr 23, 2024
524362a
merged EZPI-373_isHouseModeSwitchToRange
ezlo-rikenm Apr 23, 2024
cb2b955
349-toggle_value_expression refactoring
ezlo-rikenm Apr 24, 2024
215c736
refactored code
ezlo-rikenm Apr 26, 2024
c4d410c
refactoring code
ezlo-rikenm Apr 28, 2024
f871b34
merged development_add_expression_condition
ezlo-rikenm Apr 28, 2024
b8618ff
need to fix missing function_cj_population
ezlo-rikenm Apr 29, 2024
23ed138
refactored tested code
ezlo-rikenm Apr 29, 2024
7fd02eb
added cJSON fix and other.
lomasSE89 Apr 29, 2024
306a248
test and tweak on progress.
lomasSE89 Apr 29, 2024
0f56ef3
issue on different libs.
lomasSE89 Apr 29, 2024
f93bfd5
code refactoring & bug fixes for latch
ezlo-rikenm Apr 30, 2024
62e39c0
initial integration done, cleaning.
lomasSE89 Apr 30, 2024
179e014
code refactoring for repeat and latch
ezlo-rikenm May 1, 2024
b03e158
cleaned.
lomasSE89 May 1, 2024
1bf866f
function feature ready for merge
ezlo-rikenm May 1, 2024
645709f
'funtion' features are ready to merge into 3.5.7
ezlo-rikenm May 1, 2024
8d5fb7e
Merge pull request #114 from ezloteam/dev_function_to_be_merged_into_…
lomasSE89 May 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const char* ezlopi_sender_str = "sender";
const char* ezlopi_name_str = "name";
const char* ezlopi_value_str = "value";
const char* ezlopi_method_str = "method";
const char* ezlopi_function_str = "function";
const char* ezlopi_msg_id_str = "msg_id"; // message counter, number of data transferred to ezlopi-cloud
const char* ezlopi_msg_subclass_str = "msg_subclass";
const char* ezlopi_ui_broadcast_str = "ui_broadcast";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ extern const char* ezlopi_sender_str;
extern const char* ezlopi_name_str;
extern const char* ezlopi_value_str;
extern const char* ezlopi_method_str;
extern const char* ezlopi_function_str;
extern const char* ezlopi_msg_id_str; // message counter, number of data transferred to ezlopi-cloud
extern const char* ezlopi_msg_subclass_str;
extern const char* ezlopi_ui_broadcast_str;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const char *method_hub_reboot = "hub.reboot";
// const char *method_hub_network_enabled_set = "hub.network.enabled.set";
// const char *method_hub_detection_devices_scan_start = "hub.detection.devices.scan.start";
// const char *method_hub_detection_devices_scans_top = "hub.detection.devices.scan.stop";
const char *method_hub_scene_run_progress = "hub.scene.run.progress";
const char *method_hub_scene_run_progress = "hub.scene.run.progress";
const char *ezlopi_rpc_method_notfound_str = "rpc.method.notfound";
const char *ezlopi_hub_scene_changed_str = "hub.scene.changed";
const char *ezlopi_hub_scene_added_str = "hub.scene.added";
Expand Down
2 changes: 1 addition & 1 deletion ezlopi-cloud/ezlopi-cloud-info/ezlopi_cloud_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "freertos/FreeRTOS.h"

#include "sdkconfig.h"
#include "../../build/config/sdkconfig.h"
#include "ezlopi_core_factory_info.h"
#include "ezlopi_cloud_info.h"
#include "ezlopi_util_trace.h"
Expand Down
2 changes: 1 addition & 1 deletion ezlopi-cloud/ezlopi-cloud-items/ezlopi_cloud_items.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "ezlopi_cloud_items.h"
#include "ezlopi_util_trace.h"
#include "sdkconfig.h"
#include "../../build/config/sdkconfig.h"

#include "cjext.h"
#include "ezlopi_core_cjson_macros.h"
Expand Down
2 changes: 1 addition & 1 deletion ezlopi-cloud/ezlopi-cloud-scenes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set(EZLOPI_CLOUD_COMPONENTS
)


idf_component_register(SRCS "ezlopi_cloud_scenes.c" "ezlopi_cloud_scenes_block_list.c" "ezlopi_cloud_scenes_block_data_list.c" "${src_files}"
idf_component_register(SRCS "ezlopi_cloud_scenes_scripts.c" "ezlopi_cloud_scenes.c" "ezlopi_cloud_scenes_block_list.c" "ezlopi_cloud_scenes_block_data_list.c" "${src_files}"
INCLUDE_DIRS "."
REQUIRES
${ESP_COMPONENTS}
Expand Down
36 changes: 35 additions & 1 deletion ezlopi-cloud/ezlopi-cloud-scenes/ezlopi_cloud_scenes.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "ezlopi_cloud_constants.h"
#include "ezlopi_core_scenes_operators.h"
#include "ezlopi_core_scenes_notifications.h"
#include "ezlopi_core_scenes_when_methods_helper_functions.h"

void scenes_list(cJSON* cj_request, cJSON* cj_response)
{
Expand Down Expand Up @@ -344,7 +345,40 @@ void scenes_notification_remove(cJSON* cj_request, cJSON* cj_response)
}
}

/////////// updater for scene
void scenes_block_status_reset(cJSON* cj_request, cJSON* cj_response)
{
cJSON* cj_result = cJSON_AddObjectToObject(cj_response, ezlopi_result_str);
cJSON* cj_params = cJSON_GetObjectItem(cj_request, ezlopi_params_str);
if (cj_result && cj_params)
{
char* scene_id_str = NULL;
CJSON_GET_VALUE_STRING(cj_params, ezlopi_sceneId_str, scene_id_str);
if (scene_id_str)
{
uint32_t scene_id = strtoul(scene_id_str, NULL, 16);
if (scene_id)
{
l_scenes_list_v2_t* scene_node = ezlopi_scenes_get_scenes_head_v2();
while (scene_node)
{
if (scene_node->_id == scene_id)
{
s_when_function_t* function_state = (s_when_function_t*)scene_node->when_block->fields->user_arg;
if (function_state)
{
function_state->current_state = false;
}
break;
}
scene_node = scene_node->next;
}
}
}
}
}


////// updater for scene
////// useful for 'hub.scenes.enabled.set'
void scene_changed(cJSON* cj_request, cJSON* cj_response)
{
Expand Down
1 change: 1 addition & 0 deletions ezlopi-cloud/ezlopi-cloud-scenes/ezlopi_cloud_scenes.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ extern "C"
void scenes_enable_set(cJSON* cj_request, cJSON* cj_response);
void scenes_notification_add(cJSON* cj_request, cJSON* cj_response);
void scenes_notification_remove(cJSON* cj_request, cJSON* cj_response);
void scenes_block_status_reset(cJSON* cj_request, cJSON* cj_response);

///////////// updaters
void scene_changed(cJSON* cj_request, cJSON* cj_response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,16 @@ static cJSON* __add_scenes_blocks_by_item_ids(e_scenes_block_type_v2_t block_typ
l_scenes_list_v2_t* scene_node = ezlopi_scenes_get_scenes_head_v2();
while (scene_node)
{
TRACE_D("Here");
// TRACE_D("Here");

switch (block_type)
{
case SCENE_BLOCK_TYPE_WHEN:
{
TRACE_D("Here");
// TRACE_D("Here");
if (scene_node->when_block)
{
TRACE_D("Here");
// TRACE_D("Here");
if (__found_item_in_field(scene_node->when_block->fields, item_list->cloud_properties.item_id))
{
TRACE_D("Here");
Expand Down
Loading