KNX entity configuration.yaml - How to add device/area

Hello,

since I have a lot of KNX devices, I don’t want to create every entity via UI. I want to use the configuration.yaml or knx.yaml. For instance:

configuration.yaml

...
knx: !include knx.yaml
...

knx.yaml

sensor:
    - name: "Windspeed"
      state_address: "6/1/6"
      type: wind_speed_kmh
  1. A have different areas, for instance roof. How do I bind this sensor to the area roof without doing that in the UI!

  2. How do I create a knx device for this entity, (not via UI) and bind the entity to the device (e.g. wheatherstation).

  3. Why are the entities created via configuration.yaml not shown in the knx integration under entities?

  1. At this moment you cannot do that via the yaml. It needs to be done in the GUI
  2. There is no “weather station” device you can add. You will have to setup the entities by yourself 1 at a time.
  3. Not sure, but i believe it has something todo that the GUI will never interfere in your yaml. But the makers would know more about that

Either way you can mix, create some via the GUI and via yaml.
Thats the way i have done it on a few occasions.

1 Like