#device name -> entity id why in the name double

5 messages · Page 1 of 1 (latest)

old pollen
#

Hi everyone,

I have follow esphome configuration:

Why is the entity id in Home assistant like this: binary_sensor.schlafzimmer_bettsensor_schlafzimmer_bettsensor?

`esphome:
name: schlafzimmer-bettsensor
friendly_name: Schlafzimmer Bettsensor
platform: ESP32
board: esp32dev
comment: "Bettsensor"

substitutions:
device_name: "schlafzimmer-bettsensor"
sensor_name: "Schlafzimmer Bettsensor"

<<: !include .base.yaml

esp32_touch:
setup_mode: true

binary_sensor:

  • platform: esp32_touch
    name: None
    pin: GPIO04
    threshold: 10
    filters:
    • delayed_on: 5s
    • delayed_off: 5s`
astral goblet
#

Entities have the device name added to the front so change one or the other as you want, or simply rename the entity.

old pollen
#

hmm ok, but why is the displayname "correct"? How did you handle that?

astral goblet
#

You will need to look at your base yaml to see how it is using your substitutions.

old pollen
#

ota:
password: !secret ota
safe_mode: true

web_server:
port: 80

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: .home.domain.com
ap:
ssid: ${device_name} AP
password: !secret wifi_hotspot_pass

captive_portal:
logger:

api:
encryption:
key: !secret api_key

time:

  • platform: homeassistant
    id: homeassistant_time
    timezone: Europe/Zurich