貼上後執行卻有錯誤提示,看不出哪邊有錯誤..
Logger: homeassistant.config
Source: config.py:868
First occurred: 23:31:55 (1 occurrences)
Last logged: 23:31:55 Invalid config for [template]: invalid template (TemplateSyntaxError: expected token ',', got 'bd729447cd4_action') for dictionary value @ data['sensor'][0]['state']. Got None. (See /config/packages/doorlock.yaml, line 234).
template:
- trigger:
- platform: state
entity_id:
- sensor.9bd729447cd4_action
attribute: message
to:
- 'Unlock outside the door'
- 'Lock'
- 'Turn on anti-lock'
- 'Turn off anti-lock'
- 'Unlock inside the door'
- 'Lock inside the door'
- 'Turn on child lock'
- 'Turn off child lock'
- 'Knock on the door'
- 'Breaking the door'
- 'Door is stuck'
not_from:
- unknown
- unavailable
|