Renamed ESPhome devices being discovered as ZHA devices

Hi All,

I’ve renamed some ESPhome devices, as I’ve re-purposed them.

They’ve been discovered as new ESPhome devices, which is fine, but they’ve also been discovered as Zigbee/ZHA devices. The hardware in question is connected via wifi, so this doesn’t make sense to me.

Has anyone else seen this before? Any ideas?

Regards,

Luke

Still there, after upgrading to 23.4, and rebooting plenty of times.

Does anybody have any ideas?

I still have the same issue.

Can anyone help?

That’s very strange. Can you share the config for one of your devices?

Hi Tom,

Thanks for moving this back to ESPhome. It started out here a while ago, I think :slight_smile:

All four devices have similar config files, and all four are re-flashed Sonoff Mini R1s.

The config is based on the example Sonoff Mini config.

substitutions:
  devicename:           tube-heater-1
  friendly_devicename:  Tube Heater 1
  api_key:              ****
  ota_password:         ****
  ap_password:          ****

#  devicename:           sonoff-mini-1000b*****
#  friendly_devicename:  Sonoff Mini 1000b*****

esphome:
  name: ${devicename}

esp8266:
  board: esp8285

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "${api_key}"

ota:
  password: "${ota_password}"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Remove or comment out use_address
  # use_address: sonoff-mini-1000b****.local

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "${devicename}"
    password: "${ap_password}"

captive_portal:

sensor:
  - platform: wifi_signal
    name: ${friendly_devicename} Wifi Signal Strength
    update_interval: 60s
  - platform: uptime
    name: ${friendly_devicename} Uptime    

binary_sensor:
  # the 7 lines below define the reset button
  - platform: gpio
    pin: GPIO00
    id: reset
    internal: true  # hides reset switch from HomeAssistant
    filters:
      - invert:
      - delayed_off: 10ms
  # the 3 lines below toggle the main relay on press of reset button
  #  on_press:
  #    - light.toggle:
  #        id: light_id

  # the 13 lines below toggle the main relay on command
  - platform: gpio
    name: ${friendly_devicename} Input
    #internal: true  # hides relay toggle from HomeAssistant
    pin: GPIO04
    id: gpio_light_id
    filters:
      - invert:
      - delayed_on: 50ms
      - delayed_off: 50ms
      - delayed_on_off: 50ms
    #on_press:
    #  then:
    #    - light.turn_on:
    #        id: light_id
    #on_release:
    #  then:
    #    - light.turn_off:
    #        id: light_id

  # the 2 lines below create a status entity in HomeAssistant.
  - platform: status
    name: ${friendly_devicename} Status

status_led:
  pin:
    number: GPIO13
    inverted: true

output:
  # the 3 lines below control the main relay
  - platform: gpio
    pin: GPIO12
    id: main_relay  

  # the 3 lines below control the Blue LED
  - platform: esp8266_pwm
    id: blue_led
    pin: GPIO13
    inverted: True

light:
  # the 4 lines below define the main relay as a light
  #- platform: binary
  #  name: "${friendly_devicename} Light" # you can enter a custom name to appear in HomeAsistant here.
  #  output: main_relay  
  #  id: light_id

  # the 4 lines below define the Blue LED light on Sonoff Mini, to expose in HomeAssistant remove line "internal: true"
  - platform: monochromatic
    name: "${devicename} blue LED"
    output: blue_led
    internal: true # hides the Blue LED from Homeassistant    

switch:
  - platform: output
    name: "${friendly_devicename}" # you can enter a custom name to appear in HomeAsistant here.
    output: main_relay  
    id: light_id

I have no idea why this is happening. Perhaps open a new issue here.