请教一下各位大佬,博联rm4学码成功后怎么在hass中添加对应硬件,比如说空调,开关,电扇。是不是说要在ymal用填写设备(调用remote命令)。
官方给了一个添加开关的例子,
[size=1.2]SETTING UP CUSTOM IR/RF SWITCHES
The first step is to configure the device normally via the configuration flow. Then add these lines to your configuration.yaml: # Example configuration.yaml entryswitch: - platform: broadlink mac: MAC_ADDRESS switches: - name: Philips TV command_on: JgAcAB0dHB44HhweGx4cHR06HB0cHhwdHB8bHhwADQUAAAAAAAAAAAAAAAA= command_off: JgAaABweOR4bHhwdHB4dHRw6HhsdHR0dOTocAA0FAAAAAAAAAAAAAAAAAAA=[backcolor=rgba(224, 224, 224, 0.2)][size=0.8em]YAML
Copy
The above example creates switch.philips_tv, which sends IR/RF codes using the universal remote with the MAC address provided.
但是这样添加的设备好像没有unique id,是否有其他方法添加使用万能遥控器的设备(比如开关,风扇,空调)? 还有就是怎么添加一个空调? 望各位大佬相助,十分感谢 |