- 积分
- 478
- 金钱
- 355
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 478
- 金钱
- 355
- HASS币
- 0
|
自己拿网上代码改了一个 auto
- id: '1549874815630'
alias: rokid tts
trigger:
- platform: state
entity_id: input_text.text_tts
action:
- condition: template
value_template: '{{ states("input_text.text_tts") != "unknown" and states("input_text.text_tts") != "" }}'
- service: rokid_tts.speak
data_template:
message: {{ states("input_text.text_tts") }}
但会报错
Error loading /config/configuration.yaml: invalid key: "OrderedDict([('states("input_text.text_tts")', None)])"
in "/config/automations.yaml", line 170, column 0
不知道错在哪里。。。
|
|