project-chip / rs-matter

Rust implementation of the Matter protocol. Status: Experimental
Apache License 2.0
310 stars 43 forks source link

dimmable light mvp #113

Closed newcomertv closed 5 months ago

newcomertv commented 11 months ago

Level Control Server cluster implementation with dimmable light example.

Not everything is implemented but enough to control it within Homekit.

Still buggy due to phantom attributes being read attr_id : 8, 12, 13 and

[2023-10-06T22:57:11Z ERROR rs_matter::data_model::cluster_level_control] Level Control read attr error: Error::AttributeNotFound: { disabled backtrace} on: 8 , aka 00001000 Level Control read attr id: 12 [2023-10-06T22:57:11Z ERROR rs_matter::data_model::cluster_level_control] Level Control read attr error: Error::AttributeNotFound: { disabled backtrace} on: 12 , aka 00001100 Level Control read attr id: 13 [2023-10-06T22:57:11Z ERROR rs_matter::data_model::cluster_level_control] Level Control read attr error: Error::AttributeNotFound: { disabled backtrace} on: 13 , aka 00001101

ACL issues :

[2023-10-06T22:57:11Z ERROR rs_matter::acl] ACL Disallow for subjects [6934092719869286764, ] fab idx 1 [2023-10-06T22:57:11Z ERROR rs_matter::acl] ACLS: [ { AclEntry { privilege: V | O | M | A | VIEW | OPERATE | MANAGE | ADMIN, auth_mode: Case, subjects: [Some(6934092719869286764), None, None, None], targets: Null, fab_idx: Some(1) } }, { AclEntry { privilege: V | O | M | A | VIEW | OPERATE | MANAGE | ADMIN, auth_mode: Case, subjects: [Some(5108307113279525795), None, None, None], targets: NotNull([None, None, None]), fab_idx: Some(2) } }, ] [2023-10-06T22:57:11Z ERROR rs_matter::acl] ACL Disallow for subjects [6934092719869286764, ] fab idx 1 [2023-10-06T22:57:11Z ERROR rs_matter::acl] ACLS: [ { AclEntry { privilege: V | O | M | A | VIEW | OPERATE | MANAGE | ADMIN, auth_mode: Case, subjects: [Some(6934092719869286764), None, None, None], targets: Null, fab_idx: Some(1) } }, { AclEntry { privilege: V | O | M | A | VIEW | OPERATE | MANAGE | ADMIN, auth_mode: Case, subjects: [Some(5108307113279525795), None, None, None], targets: NotNull([None, None, None]), fab_idx: Some(2) } }, ] [2023-10-06T22:57:11Z ERROR rs_matter::acl] ACL Disallow for subjects [6934092719869286764, ] fab idx 1 [2023-10-06T22:57:11Z ERROR rs_matter::acl] ACLS: [ { AclEntry { privilege: V | O | M | A | VIEW | OPERATE | MANAGE | ADMIN, auth_mode: Case, subjects: [Some(6934092719869286764), None, None, None], targets: Null, fab_idx: Some(1) } }, { AclEntry { privilege: V | O | M | A | VIEW | OPERATE | MANAGE | ADMIN, auth_mode: Case, subjects: [Some(5108307113279525795), None, None, None], targets: NotNull([None, None, None]), fab_idx: Some(2) } }, ]