Get no entity with uln2003 Motor Driver -solved-

I’m stuck with a very big problem. Namely, I ordered a 28BYJ-48 Stepper Motor and ULN2003 Stepper Motor Driver, this should actually switch the switch of my heater control… I plugged the ULN2003 into a D1 Mini…

here the yaml

esphome:
  name: heizungssteuerung

esp8266:
  board: d1_mini

mqtt:
  broker: 192.168.178.77
  username: broker
  password: MQTT_PASSWORD

ota:
  password: "OTA_PASSWORD"

wifi:
  ssid: "kleine geile Nonne"
  password: "SSID_PASSWORD"
  fast_connect: true

  ap:
    ssid: "Heizungssteuerung"
    password: "AP_PASSWORD"

web_server:
  port: 80

logger:

api:
  encryption:
    key: "API_KEY"

  services:
    - service: control_stepper
      variables:
        target: int
      then:
        - stepper.set_target:
            id: my_stepper
            target: !lambda 'return target;'

captive_portal:

stepper:
  - platform: uln2003
    id: my_stepper
    sleep_when_done: False
    pin_a: D5
    pin_b: D6
    pin_c: D7
    pin_d: D8
    max_speed: 250 steps/s
    step_mode: FULL_STEP

    acceleration: inf
    deceleration: inf

in the configuration.yaml 

input_number:
stepper_control:
   name: Stepper Control
   initial: 0
   min: -1000
   max: 1000
   step: 1
   mode: slider

 and last in the automations.yaml alias: 

-   alias: Write stepper Value to ESP
  trigger:
  - platform: state
    entity_id: input_number.stepper_control
  action:
  - service: esphome.stepper_control_stepper
    data_template:
      my_stepper: '{{ trigger.to_state.state | int }}'

no matter what I do, the ULN does not appear under the entities. I thought the D1mini was damaged and fortunately I had a second one there… Even there, it doesn’t show up. Neither in MQTT broker, nor in ESPHome. Only the status of the D1 Mini and firmware. It should actually appear at least as a device that is not connected if the connections are wrong I’m getting desperate, I don’t know what to do anymore. It can’t be the ULN2003, the motor was successfully controlled with a demo sketch flashed with Arduino IDE

Please edit your post and correctly format your esp and home assistant configuration for the forum.

Please also include the serial logs from the esp device.

1 Like

There is nothing in your configuration that would create an entity in HA, as explained in the note at the top in the documentation.

You can define a template switch that would then tell the stepper motor what to do.

Problem is solved…

If you could share the resolution, you might be able to help others in the future?

1 Like

What was your solution? I’m struggling with the same thing…