如果用收到的遥控码作为触发,收到后加个虚拟开关开的判断,延时200毫秒关闭虚拟开关,
然后延迟1秒开始你的动作,最后打开虚拟开关。就是模拟关闭自动化
flowstest.rar
(1.2 KB, 下载次数: 5)
其实你可以把你后面的动作做成一个script放到HA遥控器里去
我不清楚你的目的是什么…(达到的使用效果)…
hdmi3:
sequence:
- service: broadlink.send
data:
host: 192.168.203.231
packet:
- "JgBOAJOUExMTOBU2FDcUEhQTEhQSFBITFTcUNxQ3ExMTExIUExMTOBI5ExMUEhQ3FRETOBQSEhQSFBI5FTYVERM4ExMUNhQABfmUkxQ3FAANBQAAAAAAAAAAAAA="
- delay:
seconds: 2
- service: broadlink.send
data:
host: 192.168.203.231
packet:
- "JgBOAJOVEhQSORI4EjkTExIUEhQUExIUETkTNxM4EhQSFBMTFBMSFBI5ExMSFBMTEhQSORIUEjkSFBI4EjkSOBI5ExMSORIABfqSlRI5EgANBQAAAAAAAAAAAAA="
- delay:
seconds: 0.5
- service: broadlink.send
data:
host: 192.168.203.231
packet:
- "JgBOAJKVEhQSOBI5EjkSExQSEhQSFBIUEzgRORI5EhMTExIUEhQSFBI4FDgSExIUEhQTNxIUEjkSFBITEjkTOBI4EhUSNxIABfqSlRI6EQANBQAAAAAAAAAAAAA="
|