Dilbert66 / esphome-dsckeybus

Esphome custom configuration for interfacing to a DSC POWERSERIES alarm system
187 stars 34 forks source link

can't validate yaml #19

Closed 17844 closed 3 years ago

17844 commented 3 years ago

Hello thanks for in general great work.

After latest update of Esphome I get this error when I try to validate:

INFO Reading configuration /config/esphome/DscAlarm.yaml... ERROR Error while reading config: Invalid YAML syntax:

while scanning a simple key in "/config/esphome/DscAlarm.yaml", line 41, column 3: auto DSCkeybus = new DSCkeybusho ... ^ could not find expected ':' in "/config/esphome/DscAlarm.yaml", line 43, column 3: DSCkeybus->accessCode="$accessCode"; ^

Here is my yaml: substitutions: systemName: "tradgards_alarm" accessCode: !secret tradgards_access_code #Only comes into effect if a password prompt occurs when arming eg. night mode cmdWaitTime: "0" # milliseconds. set how long to delay before accepting a new 05 cmd as valid to filter out intermittent short duration bogus commands that some panels send. default = 0

esphome: name: $systemName platform: ESP8266 board: nodemcuv2

includes:

wifi: ssid: !secret wifi_ssid password: !secret wifi_password

ap: ssid: "$systemName" password: !secret wifi_password

logger: baud_rate: 0 level: info

api: password: !secret api_password

ota: password: !secret ota_password safe_mode: True

status_led: pin: number: D4 inverted: yes

custom_component:

binary_sensor:

zone status

text_sensor:

general system status online/disconnected

switch:

Dilbert66 commented 3 years ago

You have an invalid character or formating issue somewhere in the yaml before line 43. It might have happened while you were editing. I can't see it in what you posted since the formating is missing from your paste. Also not sure if this is a cut and paste issue but the normal dash (-) yaml character looks like a dot in your post.