-
Notifications
You must be signed in to change notification settings - Fork 215
Description
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.