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?



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.

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

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

  name: ${devicename}

  board: esp8285

# Enable logging

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

  password: "${ota_password}"

  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
    ssid: "${devicename}"
    password: "${ap_password}"


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

  # the 7 lines below define the reset button
  - platform: gpio
    pin: GPIO00
    id: reset
    internal: true  # hides reset switch from HomeAssistant
      - 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
      - invert:
      - delayed_on: 50ms
      - delayed_off: 50ms
      - delayed_on_off: 50ms
    #  then:
    #    - light.turn_on:
    #        id: light_id
    #  then:
    #    - light.turn_off:
    #        id: light_id

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

    number: GPIO13
    inverted: true

  # 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

  # 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    

  - 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.