Mqtt entities created but no device created by my config.yaml

wondering why my new energy sensor is showing up in mqtt integration as entities but no device shows up. does the state topic need to have /homeassistant/sensors before my topic? I have another device that showed up without that, but I’ve been at this all day and getting nowhere. this is just a snippet of the full code. GE Dryer is working as expected but SEM meter isn’t… thanks for any assistance

mqtt:
  # - =========================================
  # - MQTT GE Dryer Sensors
  # - =========================================
  sensor:
    - name: Model Number
      unique_id: dryer_modelnumber
      state_topic: "geappliances/GEDryer/erd/0x0001/value"
      value_template: >
        {%- set line = value %}
        {%- set chars = " !'#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" %}
        {%- set n = 2 %}
        {%- set ns = namespace(value='') %}
        {%- for i in range(0, line | length, n) %}
        {%- set c = chars[line[i:i+n] | int('', 16) - 32 ] %}
        {%- if c is defined %}
        {%- set ns.value = ns.value ~ c %}
        {%- endif %}
        {%- endfor %}
        {{ ns.value[0:12] }}
      device:
        name: "GE Dryer"
        identifiers: "GE Dryer"
        manufacturer: "GE Appliances"
    # - =========================================
    # - MQTT SEM Meter
    # - =========================================
    # my doubled circuits are 1,2,3,8,9,10,11
    - name: "MAIN current"
      state_topic: "SEMMETER/A085E3FD19FA/HA"
      value_template: "{{ value_json.sense[16][1] | float | multiply(0.01) +  value_json.sense[17][1] | float | multiply(0.01) + value_json.sense[18][1] | float | multiply(0.01) }}"
      unit_of_measurement: "A"
      icon: "mdi:current-ac"
      device:
        name: "SEM Meter"
        identifiers: "SEM Meter"
        manufacturer: "Fusion Energy"

    - name: "MAIN active power"
      state_topic: "SEMMETER/A085E3FD19FA/HA"
      value_template: "{{ value_json.sense[16][2] | float | multiply(0.01) + value_json.sense[17][2] | float | multiply(0.01) + value_json.sense[18][2] | float | multiply(0.01)}}"
      unit_of_measurement: "W"
      icon: "mdi:power-plug"
      device:
        name: "SEM Meter"
        identifiers: "SEM Meter"
        manufacturer: "Fusion Energy"

For sensors to create a device, a unique_id: must be set. You have one for the dryer but not the energy sensors.

device map (optional)

Information about the device this sensor is a part of to tie it into the device registry. Only works when unique_id is set. At least one of identifiers or connections must be present to identify the device.

1 Like

thanks for responding! I added the
device:
name: “SEM Meter”
identifiers: “SEM Meter”
manufacturer: “Fusion Energy”

hoping that would accomplish that part. so go to each sensor and make a unique_id: for each sensor? make up a naming convention? does the part I added do anything useful?

Just add a unique id for each sensor - name doesn’t matter as long as it’s unique. Something like sem_main_current and sem_main_active_power. The rest of the sensor definitely remains unchanged.

perfect! thanks!