Hi I am having serious problems with my configuration file. it appears to correct Green tick on each line but when I confirm configuration , i receive the following error messages.
`` Logger: homeassistant.components.hassio
Source: components/hassio/init.py:420
Integration: Hass.io (documentation, issues)
First occurred: 7:55:25 AM (1 occurrences)
Last logged: 7:55:25 AM
Invalid config for [switch]: expected a dictionary. Got OrderedDict([(‘default_config’, {}), (‘tts’, [‘platform:google_translate’]), (‘group’, {}), (‘automation’, {}), (‘script’, {}), (‘mqtt’, {}), (‘switch’, ‘-platform:mqtt name:“Pond” state_topic:“tele/pond/state” command_topic:“cmnd/Pond/power” payload_on:“on” payload_off:“off” availability_topic:“tele/Pond/LWT” payload_available:“online” payload_not_avaialble:“offline” qos:1 retain:false’), (‘sensor’, '-platform:mqtt name:“Pond Temperature” state_topic:“tele/pond/Hass_state” value_template:"{{… (See ?, line ?). Invalid config for [tts]: expected a dictionary. Got OrderedDict([(‘default_config’, {}), (‘tts’, [‘platform:google_translate’]), (‘group’, {}), (‘automation’, {}), (‘script’, {}), (‘mqtt’, {}), (‘sensor’, ‘-platform:mqtt name:“Pond Temperature” state_topic:“tele/pond/Hass_state” value_template:"{{value_json[‘DS18B20’].Temperature}}" unit_of_measurement:"*C" availability_topic:“tele/Pond/LWT” payload_available:“online” payload_not_available:“offline” device_class:“temperature”’)]). (See /config/configuration.yaml, line 6). Invalid config for [sensor]: expected a dictionary. Got OrderedDict([(‘default_config’, {}), (‘group’, {}), (‘automation’, {}), (‘script’, {}), (‘mqtt’, {‘port’: 1883, ‘discovery’: True, ‘birth_message’: {‘topic’: ‘homeassistant/status’, ‘payload’: ‘online’, ‘qos’: 0, ‘retain’: False}, ‘will_message’: {‘topic’: ‘homeassistant/status’, ‘payload’: ‘offline’, ‘qos’: 0, ‘retain’: False}, ‘discovery_prefix’: ‘homeassistant’, ‘protocol’: ‘3.1.1’, ‘keepalive’: 60, ‘tls_version’: ‘auto’}), (‘sensor’, '-platform:mqtt name:“Pond Temperature” state_topic:"te… (See ?, line ?).
Yaml file
``# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
Text to speech
tts:
- platform:google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mqtt:
switch:
-platform:mqtt
name:“Pond”
state_topic:“tele/pond/state”
command_topic:“cmnd/Pond/power”
payload_on:“on”
payload_off:“off”
availability_topic:“tele/Pond/LWT”
payload_available:“online”
payload_not_avaialble:“offline”
qos:1
retain:false
sensor:
-platform:mqtt
name:“Pond Temperature”
state_topic:“tele/pond/Hass_state”
value_template:"{{value_json[‘DS18B20’].Temperature}}"
unit_of_measurement:"*C"
availability_topic:“tele/Pond/LWT”
payload_available:“online”
payload_not_available:“offline”
device_class:“temperature”
any help would be appreciated a is have been trying to install this switch for a few days now . I think my Yaml config file is corrupt ? Thanks in anticipation.