Hello, trying to turn on w2812 leds on startup.
here is the code., here is the error:
Pls help me!
Emanuele
INFO ESPHome 2024.9.2
INFO Reading configuration /config/esphome/gasalarm.yaml…
ERROR Error while reading config: Invalid YAML syntax:
mapping values are not allowed here
- in “/config/esphome/gasalarm.yaml”, line 19, column 7*
*substitutions:*
* name: gasalarm*
* friendly_name: allarme gas*
*esphome:*
* name: ${name}*
* friendly_name: ${friendly_name}*
* min_version: 2024.6.0*
* name_add_mac_suffix: false*
* project:*
* name: esphome.web*
* version: dev*
*esp8266:*
* board: esp01_1m*
* early_pin_init: false*
*on_boot:*
*priority: 550.0*
* then:*
* - switch.turn_on: GAS_STATUS*
* colors:*
* - state: true*
* brightness: 20%*
* red: 100%*
* green: 0%*
* blue: 0%*
*# Enable logging*
*logger:*
*# Enable Home Assistant API*
*api:*
* encryption: *
* key: "7NLf2WUzYlrb2EXA8x9hpDbiT2KH6DUrnJkPy/PrtDo="*
* *
*# Allow Over-The-Air updates*
*ota:*
*- platform: esphome*
*# Allow provisioning Wi-Fi via serial*
*improv_serial:*
*wifi:*
* ssid: "TIM-18220364"*
* password: "xH76xpkVVvfraC4RNaEpe8mJ"*
* use_address: 192.168.1.14*
* # Set up a wifi access point*
* ap:*
* ssid: "fall back"*
* password: ""*
*# In combination with the `ap` this allows the user*
*# to provision wifi credentials to the device via WiFi AP.*
*captive_portal:*
*dashboard_import:*
* package_import_url: github://esphome/example-configs/esphome-web/esp8266.yaml@main*
* import_full_config: true*
*# To have a "next url" for improv serial*
*web_server:*
*# update_interval: 30s*
*light:*
*- platform: neopixelbus*
* variant: ws2812*
* pin: GPIO14*
* num_leds: 3*
* type: GRB*
* id: GAS_STATUS*
* name: "LED ALLARME GAS"*
* restore_mode: ALWAYS_ON*
* default_transition_length: 0s*
* *
*binary_sensor:*
*- platform: gpio*
* pin:*
* number: GPIO12*
* inverted: true*
* name: "GAS CUCINA"*
* device_class: GAS*
* filters: *
* delayed_on: 1s*
*switch:*
* - platform: gpio*
* #restore_mode: RESTORE_DEFAULT_OFF*
* pin: GPIO4*
* id: relay_11*
* name: "VALVOLA GAS"*
* inverted: true*
* on_turn_on:*
* - logger.log: "Switch Turned On!"*
* - light.addressable_set:*
* id: GAS_STATUS*
* range_from: 0*
* range_to: 2*
* red: 1*
* green: 0*
* blue: 0*
* *
* on_turn_off:*
* - logger.log: "Switch Turned Off!"*