@@ -535,8 +535,6 @@ esp_err_t add(cluster_t *cluster, config_t *config)
535535
536536 /* Attributes not managed internally */
537537 attribute::create_remaining_time (cluster, config->remaining_time );
538- attribute::create_min_level (cluster, config->min_level );
539- attribute::create_max_level (cluster, config->max_level );
540538 attribute::create_start_up_current_level (cluster, config->start_up_current_level );
541539
542540 return ESP_OK;
@@ -755,13 +753,11 @@ uint32_t get_id()
755753 return (uint32_t )WindowCovering::Feature::kLift ;
756754}
757755
758- esp_err_t add (cluster_t *cluster, config_t *config )
756+ esp_err_t add (cluster_t *cluster)
759757{
760758 VerifyOrReturnError (cluster, ESP_ERR_INVALID_ARG, ESP_LOGE (TAG, " Cluster cannot be NULL" ));
761759 update_feature_map (cluster, get_id ());
762760
763- attribute::create_number_of_actuations_lift (cluster, config->number_of_actuations_lift );
764-
765761 return ESP_OK;
766762}
767763
@@ -774,13 +770,11 @@ uint32_t get_id()
774770 return (uint32_t )WindowCovering::Feature::kTilt ;
775771}
776772
777- esp_err_t add (cluster_t *cluster, config_t *config )
773+ esp_err_t add (cluster_t *cluster)
778774{
779775 VerifyOrReturnError (cluster, ESP_ERR_INVALID_ARG, ESP_LOGE (TAG, " Cluster cannot be NULL" ));
780776 update_feature_map (cluster, get_id ());
781777
782- attribute::create_number_of_actuations_tilt (cluster, config->number_of_actuations_tilt );
783-
784778 return ESP_OK;
785779}
786780
@@ -798,10 +792,8 @@ esp_err_t add(cluster_t *cluster, config_t *config)
798792 VerifyOrReturnError (cluster, ESP_ERR_INVALID_ARG, ESP_LOGE (TAG, " Cluster cannot be NULL" ));
799793 uint32_t lift_feature_map = feature::lift::get_id ();
800794 if ((get_feature_map_value (cluster) & lift_feature_map) == lift_feature_map) {
801-
802795 update_feature_map (cluster, get_id ());
803796
804- attribute::create_current_position_lift_percentage (cluster, config->current_position_lift_percentage );
805797 attribute::create_target_position_lift_percent_100ths (cluster, config->target_position_lift_percent_100ths );
806798 attribute::create_current_position_lift_percent_100ths (cluster, config->current_position_lift_percent_100ths );
807799
@@ -849,17 +841,13 @@ esp_err_t add(cluster_t *cluster, config_t *config)
849841 return ESP_ERR_NOT_SUPPORTED;
850842 }
851843 if ((get_feature_map_value (cluster) & abs_and_pa_lf_and_lf_feature_map) == abs_and_pa_lf_and_lf_feature_map) {
852- attribute::create_physical_closed_limit_lift (cluster, config->physical_closed_limit_lift );
853- attribute::create_current_position_lift (cluster, config->current_position_lift );
854844 attribute::create_installed_open_limit_lift (cluster, config->installed_open_limit_lift );
855845 attribute::create_installed_closed_limit_lift (cluster, config->installed_closed_limit_lift );
856846 } else {
857847 ESP_LOGW (TAG, " Lift related attributes were not created because cluster does not support Position_Aware_Lift feature" );
858848 }
859849
860850 if ((get_feature_map_value (cluster) & abs_and_pa_tl_and_tl_feature_map) == abs_and_pa_tl_and_tl_feature_map) {
861- attribute::create_physical_closed_limit_tilt (cluster, config->physical_closed_limit_tilt );
862- attribute::create_current_position_tilt (cluster, config->current_position_tilt );
863851 attribute::create_installed_open_limit_tilt (cluster, config->installed_open_limit_tilt );
864852 attribute::create_installed_closed_limit_tilt (cluster, config->installed_closed_limit_tilt );
865853 } else {
@@ -898,7 +886,6 @@ esp_err_t add(cluster_t *cluster, config_t *config)
898886
899887 update_feature_map (cluster, get_id ());
900888
901- attribute::create_current_position_tilt_percentage (cluster, config->current_position_tilt_percentage );
902889 attribute::create_target_position_tilt_percent_100ths (cluster, config->target_position_tilt_percent_100ths );
903890 attribute::create_current_position_tilt_percent_100ths (cluster, config->current_position_tilt_percent_100ths );
904891
@@ -1391,6 +1378,7 @@ esp_err_t add(cluster_t *cluster, config_t *config)
13911378
13921379 update_feature_map (cluster, get_id ());
13931380
1381+ attribute::create_spin_speeds (cluster, NULL , 0 , 0 );
13941382 attribute::create_spin_speed_current (cluster, config->spin_speed_current );
13951383
13961384 return ESP_OK;
@@ -1412,6 +1400,7 @@ esp_err_t add(cluster_t *cluster, config_t *config)
14121400 update_feature_map (cluster, get_id ());
14131401
14141402 attribute::create_number_of_rinses (cluster, config->number_of_rinses );
1403+ attribute::create_supported_rinses (cluster, NULL , 0 , 0 );
14151404
14161405 return ESP_OK;
14171406}
@@ -1437,8 +1426,6 @@ esp_err_t add(cluster_t *cluster)
14371426 update_feature_map (cluster, get_id ());
14381427
14391428 attribute::create_smoke_state (cluster, 0 );
1440- attribute::create_contamination_state (cluster, 0 );
1441- attribute::create_smoke_sensitivity_level (cluster, 0 );
14421429
14431430 event::create_smoke_alarm (cluster);
14441431 event::create_interconnect_smoke_alarm (cluster);
@@ -2723,9 +2710,6 @@ esp_err_t add(cluster_t *cluster)
27232710
27242711 /* Attributes not managed internally */
27252712 attribute::create_door_state (cluster, 0 );
2726- attribute::create_door_open_events (cluster, 0 );
2727- attribute::create_door_close_events (cluster, 0 );
2728- attribute::create_open_period (cluster, 0 );
27292713
27302714 /* events */
27312715 event::create_door_state_change (cluster);
@@ -2798,7 +2782,6 @@ esp_err_t add(cluster_t *cluster, config_t *config)
27982782 attribute::create_number_of_total_users_supported (cluster, config->number_of_total_user_supported );
27992783 attribute::create_credential_rules_support (cluster, config->credential_rules_supported );
28002784 attribute::create_number_of_credentials_supported_per_user (cluster, config->number_of_credentials_supported_per_user );
2801- attribute::create_expiring_user_timeout (cluster, config->expiring_user_timeout );
28022785
28032786 /* Commands */
28042787 command::create_set_user (cluster);
0 commit comments