Skip to content

How to quickly update the status of the Matter device (CON-1946) #1676

@dadasxsasda

Description

@dadasxsasda

I want to create a windowcovering device that can dynamically switch between lift and tilt functions.
First, I create a device with both lift and tilt functions.
window_covering_device_config.window_covering.feature_flags |= cluster::window_covering::feature::lift::get_id(); window_covering_device_config.window_covering.feature_flags |= cluster::window_covering::feature::tilt::get_id(); endpoint_t *window_covering_endpoint = esp_matter::endpoint::window_covering_device::create(node, &window_covering_device_config, ENDPOINT_FLAG_NONE, NULL);
Then, I modify the feature map to remove the tilt function.
attribute_t *featuremap = attribute::get(cluster, Globals::Attributes::FeatureMap::Id); esp_matter_attr_val_t featuremap_val = esp_matter_invalid(NULL); attribute::get_val(featuremap, &featuremap_val); featuremap_val.val.u32 = 0x5; attribute::set_val(featuremap, &featuremap_val);
After pairing it with Apple Home, the tilt slider has disappeared. It is effective.
However, if you reconfigure the tilt without disconnecting the pairing, it will take a long time for AppHome to update the tilt slider. Is there any way to quickly update the status of the device?
This is the log during the equipment update process.

log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions