Skip to content

Commit 3e03cea

Browse files
committed
Add device type speaker
1 parent d683aac commit 3e03cea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

matter/src/data_model/device_types.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,13 @@ const DEV_TYPE_ON_OFF_LIGHT: DeviceType = DeviceType {
7373
drev: 2,
7474
};
7575

76+
pub const DEV_TYPE_ON_SMART_SPEAKER: DeviceType = DeviceType {
77+
dtype: 0x0022,
78+
drev: 2,
79+
};
80+
7681
pub fn device_type_add_on_off_light(node: &mut WriteNode) -> Result<u32, Error> {
7782
let endpoint = node.add_endpoint(DEV_TYPE_ON_OFF_LIGHT)?;
7883
node.add_cluster(endpoint, OnOffCluster::new()?)?;
7984
Ok(endpoint)
80-
}
85+
}

0 commit comments

Comments
 (0)