求助大神,HomeAssistant 部署IFTTT后,开关配置文件怎么搞
1,上传完配置重启服务一直报错,我为以下代码
[]##开关自动化
automation:
- alias: turn on input_boolean.light1
hide_entity: true
trigger:
platform: state
entity_id: input_boolean.light1
from: 'oof'
to: 'on'
action:
service: ifttt.trigger
data: {"event":"input_boolean.light1on"}
- alias: turn off input_boolean.light1
hide_entity: true
trigger:
platform: state
entity_id: input_boolean.light1
from: 'on'
to: 'off'
action:
service: ifttt.trigger
data: {"event":"input_boolean.light1off"}
2,IFTTT服务测试过,没有问题。
3,如果在前端面板添加开关面板实现 触发条件
4,我借鉴论坛别的大神代码添加后,无法实现 触发条件,代码如下
#开关控制面板及自动化
homeassistant:
customize:
input_boolean.light1:
friendly_name: '二楼书房灯'
homebridge_hidden: false
homebridge_name: '二楼书房灯'
#开关控制面板
group:
ewelink_garden_input_booleans:
view: no
name: '灯'
entities:
- switch.pw
- input_boolean.light1
#定义易微联的开关名称
input_boolean:
light1:
name: light1
initial: off
|