Invalid config for 'template' at configuration.yaml

日志记录器: homeassistant.config
来源: config.py:357
首次出现: 08:56:34 (4 次总计出现)
上次记录: 08:56:34

Invalid config for ‘template’ at configuration.yaml, line 43: ‘entity_id’ is an invalid option for ‘template’, check: entity_id Invalid config for ‘template’ at configuration.yaml, line 43: expected dict for dictionary value ‘event_data’, got None
Invalid config for ‘template’ at configuration.yaml, line 59: ‘entity_id’ is an invalid option for ‘template’, check: entity_id Invalid config for ‘template’ at configuration.yaml, line 59: expected dict for dictionary value ‘event_data’, got None
Invalid config for ‘template’ at configuration.yaml, line 131: ‘entity_id’ is an invalid option for ‘template’, check: entity_id Invalid config for ‘template’ at configuration.yaml, line 131: expected dict for dictionary value ‘event_data’, got None
Invalid config for ‘template’ at configuration.yaml, line 147: ‘entity_id’ is an invalid option for ‘template’, check: entity_id Invalid config for ‘template’ at configuration.yaml, line 147: expected dict for dictionary value ‘event_data’, got None

The error says that you got an “entity_id” option inside a “template” which is not correct.
Docs for template sensors
Posting a SHORT code for “template” part of your config would be useful.