Nodes created from ESPHome not showing a entities in Home Assist

System setup:

ESPHome v1.15.2
HassOS 4.13
VirtualBox 6.1 (ubuntu 64 bit)

Hi All,

despite my best efforts I’m unable to get nodes created from ESPhome to show up as entities in home assist.

From Configurations it shows in both integrations and devices however will not show in the home assistant main page or as an entity.

I have tried deleting the device from ESPHome, re-flashing, uninstalling and reinstalling ESPHome, multiple reboots for HASSIO. Restarted the virtual machine. So far nothing I have tried will get it to show up in home assist.

I’ve set the node with a static IP and the default gateway pointing to my home router.

Any suggestions?

Here’s the YAML code:

esphome:
  name: dining_room_curtain_r
  platform: ESP32
  board: firebeetle32

wifi:
  ssid: "blank for this post"
  password: "blank for this post"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Dining Room Curtain R"
    password: "blank for this post"

# Optional manual IP
  manual_ip:
    static_ip: 192.168.1.172
    gateway: 192.168.1.1
    subnet: 255.255.255.0

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API

ota:
api:

  services:
   - service: shaft_target
     variables:
      target: int
     then:
       - stepper.set_target:
           id: dining_curtain_r
           target: !lambda "return target;"
  

stepper:
  - platform: a4988
    id: dining_curtain_r
    dir_pin:
      number: 26
      inverted: True
    step_pin: 27

    max_speed: 1000 steps/s

    # Optional:
    sleep_pin:
      number: 25
      inverted: True
    acceleration: 800
    deceleration: 800

Are your esphome devices in a “different subnet”?
If so, then go to integrations, select esphome, give ip adress of your esphome (192.168.1.172 in your snippet) and it should add to homeassistant.

I’m getting the same result, you can see it in devices but still not in entities.

I can only upload 1 photo so have merged 3 together

Do you get errors in the yaml syntax? In esphome?

1 Like

No

Your config doesn’t have any entities defined. You need to create a sensor, cover, etc in your esphome and they will show up

With the above device configuration you should find a service esphome.dining_room_curtain_r_shaft_target in HA (Developer Tools -> Services). You can then use that service in a script or automation.

1 Like

See if this would help. Motor on a roller blind - ESPHome version. It code to add cover as an entity.

I had a similar problem. In my case it was because I had underscores in the ‘name’ field, and i see the same issue in the OP.

This causes problems with dhcp/dns registration, and in my case caused all sensors entities to become unavailable after HA restarted. I assume this is because HA can’t find the device again after the initial setup.

Removing the underscores solved it for me.

This component does not appear in HA automatically.
Read the Home Assistant Configuration article in the documentation

1 Like

I know this is solved but I thought I’d just add in 4 years later.
You have defined the stepper to have an [id: dining_curtain_r]
I fixed my issue by defining [name: “dining_curtain_r”] instead
populated as a new entity in home assistant straight away for me.