Issue in YAML code installation

Platform not found: ‘binary_sensor.gpio pin:GPIO02 name:“My_Button” on_press:“My_Button” then - output.toggle:my_led’.
Following is the code for reference:
esphome:
name: jasp
friendly_name: JASP

esp8266:
board: esp01_1m

Enable logging

logger:
level: DEBUG

Enable Home Assistant API

api:
port: 6053
batch_delay: 50ms
encryption:
key: “Rolf77F5uhYXHqP1XfLoBFWHvPJo9byNbHnwQsxbixY=”
reboot_timeout: 30min

ota:

  • platform: esphome
    password: “24ba7319d809755381074a9ac805a649”

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: “Jasp Fallback Hotspot”
password: “VbxoP2OjmKoL”

captive_portal:

… (rest of your configuration)

output:

  • platform: gpio
    pin: GPIO05
    id: my_led

binary_sensor:

  • platform: gpio
    pin:GPIO02
    name:“My_Button”
    on_press:“My_Button”
    then
    - output.toggle:my_led
    - light.turn_on:

sensor:

  • platform: adc
    pin: A0 # Corrected pin for ESP8266 ADC
    name: “Living Room Brightness”
    update_interval: 60s

**one more issue found as below..

mapping values are not allowed here
in “/config/esphome/jasp.yaml”, line 47, column 24

I moved your post to the ESPHome category since it belongs there.

Please format your YAML as a code block. Select the YAML and then click the </> icon.

Still not formatted properly. See here for more details.

Hello Amarpal Singh Oberoi,

I do appreciate the effort, but maybe posting your keys and a login/password to your WIFI (back-up or not) is something you should consider hiding. If someone that don’t like you finds this post, they could have some fun.

Thanks for the advice… really appreciate…

f6be36681e0da431418ec7781fb6c62712941803

1 Like