ESPHOME control of Venetian blinds, tilt only, DC motor(not stepper motor) no MQTT

I need some help please. I am not a YAML programmer. I run my code through an online YAML code checker and it checks out valid/fine, but when I past it into the ESPHOME interface and try to install it onto the ESP8266 board - I get errors.
This will be to control Venetian blinds and just to tilt it, no up or down of the blinds itself.
Also, I am planning to use 12V DC motor, not stepper motor.
Can anyone please help and tell me what I am doing wrong/missing?

Thanks. Here is the code:
esphome:

name: blind1

friendly_name: Blind1

platform: ESP8266

board: esp01_1m

logger: null

api:

encryption:

key: "e...="

ota:

password: 7…d

wifi:

manual_ip:

# Set this to the IP of the ESP

static_ip: 192.168.1.19x

# Set this to the IP address of the router. Often ends with .1

gateway: 192.168.1.1

# The subnet of the network. 255.255.255.0 works for most home networks.

subnet: 255.255.255.0

dns1: 192.168.1.247

ssid: “A…”

password: “12…”

ap:

ssid: Blind1 Fallback Hotspot

password: "u5mD09Nqflfw"

output:

  • platform: esp8266_pwm

    id: motor_pwm

    pin: D1

    frequency: 1000Hz

cover:

  • platform: template

    name: Blinds Tilt

    optimistic: true

    tilt_command_topic: blinds_tilt/tilt

    tilt_status_topic: blinds_tilt/tilt_status

    tilt_min: -90

    tilt_max: 90

    tilt_closed_value: 0

    tilt_opened_value: 0

    tilt_invert_state: false

custom_component:

  • lambda:

    name: Blinds Tilt Controller

    update_interval: 50ms

    on_startup:

    - output.set_level: motor_pwm
    

    on_lambda:

    - int angle = id(blinds_tilt).current_tilt
    
    - int speed = map(angle, -90, 90, -1023, 1023)
    
    - if:
    
        condition:
    
          lambda: return speed < 0;
    
        then:
    
          - output.turn_on: motor_pwm
    
        else:
    
          - output.turn_off: motor_pwm
    
    - endif
    
    - output.set_level:
    
        id: motor_pwm
    
        level: return abs(x);
    

    on_tilt_command:

    - cover.template.set_tilt: blinds_tilt
    
      position: return x;
    

captive_portal: null

Also, I do not plan to use MQTT (will this even be possible) and I do not want any physical switches to press - if that is the case, I can just as well pull the string on the blind and then this will all be useless.
As I said - it appears to be clean when I run this through an online YAML checker, but when I paste it into ESPHOME, I get’s all kinds of errors - which I clearly do not understand.

Thanks for the help