I’m trying to reset the sever because I have some changes in the code but the following error appears
Error loading /config/configuration.yaml: expected ‘’, but found ‘’ in “/config/scripts.yaml”, line 2, column 3
The code in the configuration is the following
‘default_config:
Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
Text to speech
tts:
platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor:
platform: command_line
name: pi temperature
command: “cat /sys/class/thermal/thermal_zone0/temp”
unit_of_measurement: “°C”
value_template: ‘{{ value | multiply(0.001) | round(1) }}’
scan_interval: 3
platform: command_line
name: Duino
command: “curl https://server.duinocoin.com/balances/ferr_ari | jq ‘.result.balance’”
unit_of_measurement: ‘Ducos’
unique_id: ‘Duino_test’
value_template: “{{ value | round (3) }}”
homeassistant:
name: Home
unit_system: metric
etc
customize:
sensor.duino:
entity_picture: https://raw.githubusercontent.com/revoxhere/duino-coin/master/Resources/duco-alt.png’
What am I doing wrong. I’m kinda noob so… I use home assistant for two weeks
WallyR
(Wally)
November 27, 2022, 3:29am
2
You need to mark your pasted text from one line above the first line and to one line below and then click the </> icon in the text editor.
This will set the marked text as formatted code and make it visible to us with all the special characters.
Sometimes the error you see is done to some copy/paste from a place that use other quotation characters than the default ones, like word processing software that wants nice characters.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor:
- platform: command_line
name: pi temperature
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
scan_interval: 3
- platform: command_line
name: Duino
command: "curl https://server.duinocoin.com/balances/ferr_ari | jq '.result.balance'"
unit_of_measurement: 'Ducos'
unique_id: 'Duino_test'
value_template: "{{ value | round (3) }}"
homeassistant:
name: Home
unit_system: metric
# etc
customize:
sensor.duino:
entity_picture: https://raw.githubusercontent.com/revoxhere/duino-coin/master/Resources/duco-alt.png
WallyR
(Wally)
November 27, 2022, 10:31am
4
That file you posted seems to be configuration.yaml. not scripts.yaml
Ohhh it was so obvious… Thanks for your time