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
