Hi all,
a fairly new, newbie here, looking at coding via templates to update calculations for weather conditions, and hitting the following problem:
Failed to restart Home Assistant
The system cannot restart because the configuration is not valid: Invalid config for [weather]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 13).
Please don’t say this is an obvious error, otherwise I believe I would have sorted it before now.
Configuration.yaml has the following include:
weather: !include weather_details.yaml
weather_details.yaml is defined as:
alias: "update_statistics"
trigger:
- platform: state
entity_id: sensor.netatmo_thermostat_indoor_rain_rain
# action:
# - service: input_number.set_value
# value_template:
## rainfall today
# entity_id: input_number.daily_rain_total_today
# value: >
# {% sensor.netatmo_thermostat_indoor_rain_rain_today|float %}
# weekly rainfall total
# - service: input_number.set_value
# value_template:
# entity_id: input_number.weekly_rain_total_today
# value: >
# {% sensor.netatmo_thermostat_indoor_rain_rain_today|float + input_number.weekly_rain_total %}
## monthly rainfall total
# - service: input_number.set_value
# value_template:
# entity_id: input_number.monthly_rain_total_today
# value: >
# {% sensor.netatmo_thermostat_indoor_rain_rain_today|float + input_number.monthly_rain_total %}
## yearly rainfall total
# - service: input_number.set_value
# value_template:
# entity_id: input_number.yearly_rain_total_today
# value: >
# {% sensor.netatmo_thermostat_indoor_rain_rain_today|float + input_number.yearly_rain_total %}
I’ve commented out the lines, to try and determine where the problem lies, but even with these lines commented, the error is persisting.
Would anyone have any thoughts on how to resolve?
Thanks
Tony