脚本
config目录下 script文件添加
turn_on_light_keting: # 脚本名称
alias: 全开-客厅灯 #脚本别称
sequence:
- action: switch.turn_on
data: {}
target:
entity_id:
- switch.ac8c4666dd3a_channel_1
- switch.ac8c4666dd3a_channel_2
- switch.74a34ad2d9cd_channel_2
- switch.b850d818cd1b_switch
- switch.6cd3eec80922_channel_1
- switch.6cd3eec80922_channel_2
- switch.6cd3eec81262_channel_1
- switch.6cd3eec81262_channel_2
- action: light.turn_on
data: {}
target:
entity_id: light.8cd0b263853f_light
根据你的实体修改
统计可以用ha的template,也可以用nodered生成,还可以用nodered+mqtt
我用的是nodered+mqtt
统计.zip
(558 Bytes, 下载次数: 1)
每个都是一个例子,您自行修改
|