Unable to write config from ESPHome
Hi, had an ESP32 board laying around so I tried adapting the config to read tags. This is the error I am getting when installing wirelessly or connected via USB. Any idea as to what I may be doing wrong ? Many thanks :) My board type is esp32: board: esp32dev framework: type: arduino
INFO Reading configuration /config/esphome/musicmachine.yaml... Failed config
substitutions: None name: tagreader friendly_name: TagReader
Must be string, got <class 'bool'>. did you forget putting quotes around the value?. name_add_mac_suffix: True project: name: adonno.tag_reader version: 1.4 on_boot: priority: -10 then: - wait_until: api.connected: - logger.log: API is connected! - rtttl.play: success:d=24,o=5,b=100:c,g,b - light.turn_on: id: activity_led brightness: 100% red: 0% green: 0% blue: 100% flash_length: 500ms - switch.turn_on: buzzer_enabled - switch.turn_on: led_enabled
substitutions:
devicename: tagreader32
friendly_name: TagReader32
esphome:
name: $devicename
platform: ESP32
board: esp-wrover-kit
let me know if that solves the issue
I want to add that I had to make additional changes to get this to work with an ESP32. I needed to change the pins to GPIO and the buzzer platform to ledc.
FROM
output:
- platform: esp8266_pwm pin: D7 id: buzzer
TO
output:
- platform: ledc pin: GPIO27 id: buzzer
and
FROM
light:
- platform: neopixelbus variant: WS2812 pin: D8 num_leds: 1 flash_transition_length: 500ms type: GRB id: activity_led name: "${friendly_name} LED" restore_mode: ALWAYS_OFF
TO
light:
- platform: neopixelbus variant: WS2812 pin: GPIO26 num_leds: 1 flash_transition_length: 500ms type: GRB id: activity_led name: "${friendly_name} LED" restore_mode: ALWAYS_OFF