Moin,
I have created some MQTT-sensors in yaml from a device and they pop-up just nicely.
MQTT page:
However if I use the add to dashboard button they show up as
Code creating the first sensor in the screenshots:
# Absolute Barometric Pressure
- name: "Absolute Pressure"
unique_id: "ecopws_gw_absolute_pressure"
state_topic: "ecowitt/devices"
unit_of_measurement: "hPa"
suggested_display_precision: 0
device_class: "pressure"
state_class: "measurement"
value_template: >-
{% set ns = namespace(data={}) %}
{% for item in value | string | regex_findall('([^&=]+)=([^&]*)') %}
{% set ns.data = ns.data | combine({item[0]: item[1]}) %}
{% endfor %}
{{ (ns.data.baromabsin | default(0.0) | float * 33.86389) | round(2) }}
device:
identifiers: "gw2000_gateway"
Much longer friendly names which is annoying due to the space required.
How can I have the shorter friendly name as shown on the MQTT device page?

