|
各位好,今天看到有大神写了一个自动播报新闻的帖子,想尝试一下。结果悲剧了,详细信息如下,还请各位大神指教一下,多谢!
automation.yaml:
- alias: 'Weather report'
initial_state: true
trigger:
- platform: time
at: '21:00:00'
action:
- service: tts.iflytek_say
entity_id: media_player.mpd_player
data_template:
message: >
"网上好"
报错信息:
2017-11-29 05:14:24 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [entity_id] is an invalid option for [automation]. Check: automation->entity_id. (See /home/homeassistant/.homeassistant/configuration.yaml, line 77). Please check the docs at https://home-assistant.io/components/automation/
configuration.yaml 部分内容
59 sensor:
60 - platform: rest
61 resource: http://c.m.163.com/nc/article/headline/T1348647853363/0-10.html
62 value_template: '{{ value_json.T1348647853363[1].ltitle,value_json.T1348647853363[2].ltitle,value_json.T1348647853363[3].ltitle,value_json.T1348647853363[4].ltitle,value_json.T1348647 853363[5].ltitle }}'
63 method: GET
64 name: topnews
65
66 # Text to speech
67 tts:
68 - platform: iflytek
69 language: zh
70 person: 小英 #默认=0 取值范围 0-1 person = 0 = 男声 person = 1 = 女声
71
72 media_player :
73 - platform: mpd
74 name: mpd player
75 host: 127.0.0.1
76
77 group: !include groups.yaml
78 automation: !include automations.yaml
79 script: !include scripts.yaml
|
|