如何对不同的项目使用相同的特征

How to use the same traits for different item

我们有一个带泵和鼓风机的智能浴缸。我需要能够说:

转 pump/blower on/off(使用相同的特征)

但是google拒绝我们有多个id

有没有超过 1 个 ID 的方法?

如果您想要一个可以打开和关闭多个功能的设备,您可以使用 Toggle trait:

This trait belongs to any devices with settings that can only exist in one of two states. In other words, this trait covers all available custom binary settings on a device.