Hi all,
I’m quite experienced with home assistant and I have two instances in two houses running.
I feel ashamed to ask for help to understand what am I doing wrong with this configuration in terms of yaml? I get the folllowing error:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/homeassistant/__init__.py:170
Integration: Home Assistant WebSocket API
First occurred: 10:53:15 AM (5 occurrences)
Last logged: 11:14:34 AM
[1827832784] The system cannot restart because the configuration is not valid: Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block collection in "/home/homeassistant/.homeassistant/configuration.yaml", line 31, column 3 expected <block end>, but found '<block sequence start>' in "/home/homeassistant/.homeassistant/configuration.yaml", line 56, column 4
[1826324544] The system cannot restart because the configuration is not valid: Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block collection in "/home/homeassistant/.homeassistant/configuration.yaml", line 31, column 3 expected <block end>, but found '?' in "/home/homeassistant/.homeassistant/configuration.yaml", line 32, column 3
[1826681832] The system cannot restart because the configuration is not valid: Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block mapping in "/home/homeassistant/.homeassistant/configuration.yaml", line 1, column 1 expected <block end>, but found '<block sequence start>' in "/home/homeassistant/.homeassistant/configuration.yaml", line 41, column 3
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1495, in async_call
task.result()
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1530, in _execute_service
await handler.job.target(service_call)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 733, in admin_handler
await result
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/homeassistant/__init__.py", line 170, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block collection
in "/home/homeassistant/.homeassistant/configuration.yaml", line 31, column 3
expected <block end>, but found '<block sequence start>'
in "/home/homeassistant/.homeassistant/configuration.yaml", line 56, column 4
Logger: homeassistant.util.yaml.loader
Source: util/yaml/loader.py:127
First occurred: 10:53:15 AM (10 occurrences)
Last logged: 12:38:42 PM
while parsing a block collection in "/home/homeassistant/.homeassistant/configuration.yaml", line 31, column 3 expected <block end>, but found '<block sequence start>' in "/home/homeassistant/.homeassistant/configuration.yaml", line 56, column 4
while parsing a block collection in "/home/homeassistant/.homeassistant/configuration.yaml", line 31, column 3 expected <block end>, but found '?' in "/home/homeassistant/.homeassistant/configuration.yaml", line 32, column 3
while parsing a block mapping in "/home/homeassistant/.homeassistant/configuration.yaml", line 1, column 1 expected <block end>, but found '<block sequence start>' in "/home/homeassistant/.homeassistant/configuration.yaml", line 41, column 3
while parsing a block collection in "/home/homeassistant/.homeassistant/configuration.yaml", line 31, column 2 expected <block end>, but found '<block sequence start>' in "/home/homeassistant/.homeassistant/configuration.yaml", line 41, column 3
while parsing a block collection in "/home/homeassistant/.homeassistant/configuration.yaml", line 26, column 3 expected <block end>, but found '<block sequence start>' in "/home/homeassistant/.homeassistant/configuration.yaml", line 51, column 4
Ok I did some find & replace with the spaces, saved with Sublime, put a little bit of cinnamon and it worked.
Thank you so much for the support @tomdudu38