我尝试在automations.yaml里添加如下:
- id: ‘13374’
alias: "台灯"
initial_state: true
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: '台灯'
action:
- service: switch.turn_on
data:
entity_id: switch.sonoff_2
添加后手表里面并不能显示相应开关,而通过IOS APP---应用配置---动作---里面添加一个动作按钮又没法和automations.yaml文件里的自动化步骤互相绑定起来。
到底该怎么操作。
|