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"