本帖最后由 nelsonnick 于 2017-8-8 16:42 编辑
请教楼主:在触发某个条件后,想执行自定义的service。已经按照https://home-assistant.io/developers/development_services/上的说明,注册了service,在页面的Services上可以正常执行,但automation.yaml中的action应该怎么写?我尝试写成如下内容:
trigger:
platform: time
at: '16:00:00'
action:
- service: send_message.send
data:
message: 'XXXXX'
,发现不起作用。
|