本帖最后由 ms2 于 2020-8-20 21:12 编辑
前面要加这个,你得先把设备接入呀
switch:
#下面为博联遥控设置--------------------------------------
- platform: broadlink
host: 192.168.1.10
mac: 'xx:xx:xx:xx:xx:xx'
switches:
#客厅灯
keting_fan_deng:
friendly_name: 客厅灯
value_template: "{% if states('sensor.gonglv_fan1') | int > 30 %} on {% else %} off {% endif %}"
turn_on:
service: broadlink.send
data_template:
host: 192.168.1.10
packet:
- "sgBqASYLJgwNJCcLJgsNJQ0kJgwNwsNAAXcAAAAAAAAAAAAAAAAAAA="
turn_off:
service: broadlink.send
data_template:
host: 192.168.1.10
packet:
- "sgBqASYLJgwNJCcLJgsNJQ0kJgwNJCcLJgsO0kJwsNAAXcAAAAAAAAAAAAAAAAAAA="
|