我现在用的是松下的吸顶灯,红外控制,博联是RM4C_mini跟RM4 Pro。用HA添加以后发现一个switch只能加两个command on/off,但是我的灯有很多功能都用的到的,比如冷光暖光,夜灯,定时,亮暗调校。我现在就做了个开关跟冷光暖光(硬用command on/off 套红外码,官方页面里好像只支持这两个命令),用了两个switch去套用,随之而来的问题就是面板里很丑,要开两个entity,随之而来并入到home kit里面的时候会变成两个开关按钮。请问有什么替代或者解决方案吗?谢谢
switch:
- platform: broadlink
host: 192.168.1.13
mac: 24:df:a7:4f:6c:7a
type: rm4c_mini
switches:
led_lamp:
friendly_name: Study Room Ceiling Lamp
command_on: JgCsAHA6DRANDw0sDSwODw0sDQ8ODw0PDiwNDw0QDSwNDw0sDg8NLA0PDg8NLA0QDQ8NEA0PDRANDw0sDRANLA0sDQ8ODw0sDQ8OLA0sDSwNLA0PDg8NAAmXcDoNEA0PDisOKw4PDSwNEA0PDRANLA0PDRANLA0PDSwODw0sDQ8ODw0sDRANDw0QDQ8NEA0PDSwODw0sDSwNEA0PDSwNEA0sDSwNLA0sDQ8ODw0ADQUAAAAAAAAAAAAA
command_off: JgCsAHA6DQ8ODw0sDSwNEA0sDQ8ODw0PDisODw0QDSwNDw0sDRANLA0PDg8NLA0PDg8NEA0PDSwNLA0sDg8NLA0sDRANDw0QDSwNLA8qECkQKRAMEA0QAAmUczgPDQ0QDyoNLBAMDiwPDRANDw0QKRANDw0OKxANECkQDBAqDw0QDQ8qEAwODxAMEA0QKRApECkQDQ8qDyoQDBANEAwQKRAqDyoPKhApEAwQDRAADQUAAAAAAAAAAAAA
led_lamp1:
friendly_name: Study Room Ceiling Lamp warm and cold
command_on: JgCsAHI4DQ8ODw0sDSwNDw4sDQ8NEA0PDSwODw0PDisODw0sDQ8OLA0PDRANLA0sDSwNDw4PDSwNDw4sDSwNDw0QDQ8OKw4PDQ8OKw4PDSwNLA0QDSwNAAmXcDoPDg8NDyoPKg8ODyoPDRANDw4PKg8NDw4PKg8NDyoPDg8qDw0QDQ8qD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