home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.9k stars 30.98k forks source link

KNX integration: set up HA's physical address #130944

Open SSSlee opened 4 days ago

SSSlee commented 4 days ago

The problem

Hi,

I've configured HA to connect with my KNX-IP gateway. It turns out that the HA integration choose the physical address 1.0.1 by default and there is no possibility to change in the configuration setup. Is there a workaround to change the physical address? I have to change it to prevent mismatches with my existing KNX-Projects

What version of Home Assistant Core has the issue?

core-2024.11.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 days ago

Hey there @julius2342, @farmio, @marvin-w, mind taking a look at this issue as it has been labeled with an integration (knx) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `knx` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign knx` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


knx documentation knx source (message by IssueLinks)

farmio commented 3 days ago

Hi 👋! In KNX tunnelling the tunnel server (your IP interface) defines the clients (xknx / HA) individual address. You can set that in ETS.

SSSlee commented 2 days ago

Hi 👋! In KNX tunnelling the tunnel server (your IP interface) defines the clients (xknx / HA) individual address. You can set that in ETS.

I'm not sure about it. Homeassitant is no native KNX device. Within ETS there is no possiblity to upload a configuration to HA. What I can do is, adding a so called "dumme device" which I advise the address of the Homeassistant knx interface:

Screenshot 2024-11-21 110401

Here HA gets the physical address 1.0.7. That's all I can do within ETS. But now the question is how to tell Homeassistant to send KNX objects from the physical adress 1.0.7?

My knx configuration file shows the following content:

"data": { "xknx": { "version": "3.3.0", "current_address": "1.0.1" }, "config_entry_data": { "connection_type": "tunneling_tcp", "device_authentication": null, "host": "192.168.2.202", "individual_address": "0.0.240", "local_ip": null, "multicast_group": "224.0.23.12", "multicast_port": 3671, "port": 3671, "rate_limit": 0, "route_back": false, "state_updater": true, "telegram_log_size": 200, "tunnel_endpoint_ia": null, "user_id": null, "user_password": null },`

The entry "current address": "1.0.1" is the address which Home Assistant uses to send objects and that's the address which I now need to change it to 1.0.7.

Maybe your statement refers to the entry: "individual_address": "0.0.240", but that's not the one I'm interested in.

Below, a screenshot from the KNX group monitor log in Homeassistant:

Bild1

The association between device name Theben AG FHEM and the address 1.0.6 comes from the imported knx project file while the device name Home Assistant and the address 1.0.1 was defined by HA itself

Michael

farmio commented 2 days ago

I am very sure about that 😉 When using tunnelling, you don't need a dummy device in ETS. If you want to have a different IA, you can change the tunnel endpoint IAs of your IP interface. Just click the grey triangle icon next to it (1.0.2) and you'll find its tunnel addresses. One of them will be assigned to HA when the connection is made.