I can see that an operations state cluster is created when the dish_washer::add method is called
Code: Select all
operational_state::create(endpoint, &(config->operational_state), CLUSTER_FLAG_SERVER);Code: Select all
cluster_t *operational_state_cluster = cluster::get(endpoint, OperationalState::Id);
esp_matter::attribute_t *phase_list_attr = esp_matter::attribute::get(operational_state_cluster, chip::app::Clusters::OperationalState::Attributes::PhaseList::Id);
I tried this:
Code: Select all
uint8_t phase_list[] = { 0x00, 0x01, 0x02 };
esp_matter::attribute::set_val(phase_list_attr, &phase_val);
esp_matter_core: set_val(1098): Attribute is not managed by esp matter data model
The phase list attribute is also supposed to be strings, but I don't know how to use the uint8_t type with string values.
There don't appear to be any examples of this. Can anyone help?