enamaryn
(Enamaryn)
August 15, 2022, 10:23am
1
Hi !
Newbie in install of HASS, i try install my station weather. But i block with one error :
Error loading /home/homeassistant/.homeassistant/configuration.yaml: mapping values are not allowed here
voici my configuration yaml :
- scan_interval: 60
resource: https://api.ecowitt.net/api/v3/device/real_time?application_key=XXXXXXXX&api_key=XXXXX&mac=XXXXXX&....
sensor:
- name: outdoor_temperature
value_template: "{{ value_json.data.outdoor.temperature.value }}"
device_class: temperature
unit_of_measurement: "°C"
- name: outdoor_humidity
value_template: "{{ value_json.data.outdoor.humidity.value }}"
device_class: humidity
unit_of_measurement: "%"
- name: wind_speed
value_template: "{{ value_json.data.wind.wind_speed.value }}"
unit_of_measurement: "m/s"
- name: wind_dir
value_template: "{{ value_json.data.wind.wind_direction.value }}"
unit_of_measurement: "none"
- name: indoor_temperature
value_template: "{{ value_json.data.indoor.temperature.value }}"
device_class: temperature
unit_of_measurement: "°C"
- name: indoor_humidity
value_template: "{{ value_json.data.indoor.humidity.value }}"
device_class: humidity
unit_of_measurement: "%"
- name: yeu_pressure_QNH
value_template: "{{ value_json.data.pressure.relative.value }}"
device_class: pressure
unit_of_measurement: "hPa"
one idea for this problem ? sorry my english is very bad.
Thanks for your helps !
tom_l
August 15, 2022, 11:01am
2
Your indentaion is not correct. try this:
- scan_interval: 60
resource: https://api.ecowitt.net/api/v3/device/real_time?application_key=XXXXXXXX&api_key=XXXXX&mac=XXXXXX&....
sensor:
- name: outdoor_temperature
value_template: "{{ value_json.data.outdoor.temperature.value }}"
device_class: temperature
unit_of_measurement: "°C"
- name: outdoor_humidity
value_template: "{{ value_json.data.outdoor.humidity.value }}"
device_class: humidity
unit_of_measurement: "%"
- name: wind_speed
value_template: "{{ value_json.data.wind.wind_speed.value }}"
unit_of_measurement: "m/s"
- name: wind_dir
value_template: "{{ value_json.data.wind.wind_direction.value }}"
unit_of_measurement: "none"
- name: indoor_temperature
value_template: "{{ value_json.data.indoor.temperature.value }}"
device_class: temperature
unit_of_measurement: "°C"
- name: indoor_humidity
value_template: "{{ value_json.data.indoor.humidity.value }}"
device_class: humidity
unit_of_measurement: "%"
- name: yeu_pressure_QNH
value_template: "{{ value_json.data.pressure.relative.value }}"
device_class: pressure
unit_of_measurement: "hPa"
enamaryn
(Enamaryn)
August 15, 2022, 11:17am
3
I don’t look the difference. Where is the modification ? i try and error similar… my complete configuration yaml :
# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
- scan_interval: 60
resource: https://api.ecowitt.net/api/v3/device/real_time?application_key=4>
sensor:
- name: outdoor_temperature
value_template: "{{ value_json.data.outdoor.temperature.value }}"
device_class: temperature
unit_of_measurement: "°C"
- name: outdoor_humidity
value_template: "{{ value_json.data.outdoor.humidity.value }}"
device_class: humidity
unit_of_measurement: "%"
- name: wind_speed
value_template: "{{ value_json.data.wind.wind_speed.value }}"
unit_of_measurement: "m/s"
- name: wind_dir
value_template: "{{ value_json.data.wind.wind_direction.value }}"
unit_of_measurement: "none"
- name: indoor_temperature
value_template: "{{ value_json.data.indoor.temperature.value }}"
device_class: temperature
unit_of_measurement: "°C"
- name: indoor_humidity
value_template: "{{ value_json.data.indoor.humidity.value }}"
device_class: humidity
unit_of_measurement: "%"
- name: yeu_pressure_QNH
value_template: "{{ value_json.data.pressure.relative.value }}"
device_class: pressure
unit_of_measurement: "hPa"
Error is :
Error loading /home/homeassistant/.homeassistant/configuration.yaml: mapping values are not allowed here in "/home/homeassistant/.homeassistant/configuration.yaml", line 13, column 18
tom_l
August 15, 2022, 11:21am
4
All of this is not a scene:
scene: !include scenes.yaml
- scan_interval: 60
resource: https://api.ecowitt.net/api/v3/device/real_time?application_key=4>
sensor:
- name: outdoor_temperature
...etc
Did you perhaps miss the rest:
integration:
scene: !include scenes.yaml
rest:
- scan_interval: 60
resource: https://api.ecowitt.net/api/v3/device/real_time?application_key=4>
sensor:
- name: outdoor_temperature
...etc