#Create (virtual) devices via yaml (or GUI)

1 messages · Page 1 of 1 (latest)

limber kernel
#

Hi,

I would still describe myself as an HA beginner compared to some people on the forum here, but I am not new and I am using HA since 2022 ...
I still use various integrations that are configured via YAML (e.g. MODBUS). Sometimes I also use it to create complex configurations.

I can now create many helper entities via the GUI and assign them to a device.
That's great!

But I have not yet found a way to do this via YAML....
Some integrations such as MQTT have their own way of defining devices.

Is it still the case that you generally cannot create a device via YAML?

If so, I would like a universal way to define a device via YAML (some variables such as name, device type or firmware could also be assigned to entities or a static text) and then assign individual entities via the Unique_IDs.

e.g. that way:

`- devices:

  • name: "{{ states('sensor.xyz_name_of the device') }}"
  • identifiers: "static text"
  • manufacturer: "text"
  • model: "{{ states('sensor.xyz_name_of the device') }}"
  • unique_ids:
    • unique_entity_id1
    • unique_entity_id2
    • unique_entity_id3
    • ...
      `
      Is this idea totally wrong or are there other ways to achieve this?
      Maybe this configuration even could be made possibe via GUI as devices are more in the GUI than in yaml

I have not yet found a feature request about this at https://community.home-assistant.io/c/feature-requests/13.
Is there any discussion about this going on somewhere?

I have to say, I love the device overview because you can see all the entities there and their current state...