The console shows:
Testing configuration at /home/homeassistant/.homeassistant
ERROR:homeassistant.util.yaml.loader:while parsing a block collection
in "/home/homeassistant/.homeassistant/configuration.yaml", line 288, column 7
expected <block end>, but found '<block mapping start>'
in "/home/homeassistant/.homeassistant/configuration.yaml", line 295, column 8
Failed config
General Errors:
- Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block collection
in "/home/homeassistant/.homeassistant/configuration.yaml", line 288, column 7
expected <block end>, but found '<block mapping start>'
in "/home/homeassistant/.homeassistant/configuration.yaml", line 295, column 8
The next part of https://www.home-assistant.io/docs/installation/hassbian/common-tasks/#manually-launch-home-assistant says to read the home assistant log file. Following the instructions, it shows:
2019-06-12 14:10:13 ERROR (Thread-2) [homeassistant.util.yaml.loader] while par$
in "/home/homeassistant/.homeassistant/configuration.yaml", line 288, column 7
expected <block end>, but found '<block mapping start>'
in "/home/homeassistant/.homeassistant/configuration.yaml", line 295, column 8
2019-06-12 14:10:13 ERROR (MainThread) [homeassistant.bootstrap] Error loading $
in "/home/homeassistant/.homeassistant/configuration.yaml", line 288, column 7
expected <block end>, but found '<block mapping start>'
in "/home/homeassistant/.homeassistant/configuration.yaml", line 295, column 8
I’m a little confused. Yes I know that’s not surprising
You say the platform renamed from “google” to “google_translate” but I never used the line: platform: google. I used platform: template
The linked page for the TTS docs say to write:
tts:
- platform: google_translate
My confusion relates to where, and how, does my script get changed. I’m really sorry for being thick.
Currently, (looking at just my “Daytime” section), it reads:
- alias: 'Someone At The Front Door'
trigger:
platform: template
value_template: '{{states.switch.front_door_15.attributes.device_tripped}}'
# The Condition Syntax from https://www.home-assistant.io/docs/scripts/conditions/
condition:
condition: time
# At least one of the following is required.
after: '08:00:00'
before: '20:00:00'
# Text to Speech
action:
- service: tts.google_say
entity_id: media_player.whole_house_doorbell
data:
message: 'Motion Detected At The Front Door'
# Bedroom Light On - Red at Full Brightness
# - service: light.turn_on
# entity_id: light.yeelight_bedside_7811dc9201bd
# data:
# brightness: 254
# color_name: Red
Because you say the platform should be changed to google_translate, should the top part read:
- alias: 'Someone At The Front Door'
trigger:
platform: google_translate
value_template: '{{states.switch.front_door_15.attributes.device_tripped}}'
or should I be changing the “Action” setting part of the trigger-condition-action from:
action:
- service: tts.google_say
entity_id: media_player.whole_house_doorbell
data:
message: 'Motion Detected At The Front Door'
to
action:
- platform: google_translate
entity_id: media_player.whole_house_doorbell
data:
message: 'Motion Detected At The Front Door'
Anyway, getting back to the error in the logs, it says it expected a block end at line 288 but found a block mapping start. I know a block mapping start is indicated by the dash -, but not sure what a block end would look like.
Furthermore, since my nighttime section (which contains line 288) is virtually the same as the “daytime” section above it other than the 8am to 8pm section and the name of the speaker group, why is there no errors with line 266??
Thanks for all your help guys. I really am trying to understand the coding.