Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Connection Issue]: #342

Closed
5 of 7 tasks
learnlinuxnow opened this issue Dec 21, 2024 · 5 comments
Closed
5 of 7 tasks

[Connection Issue]: #342

learnlinuxnow opened this issue Dec 21, 2024 · 5 comments
Labels
connection-issue Connection issues

Comments

@learnlinuxnow
Copy link

learnlinuxnow commented Dec 21, 2024

Version

3.0.0-alpha.57

Matter Controller

Google Home App

Things you tried

Running HAOS as a KVM.
Installed Addon as described under 1.1 Native Home-Assistant AddOn

Whil trying to connect from phone via Google Home App getting always this meassage:

"Geräte-Anmeldedaten konnten nicht erstellt werden"

Configration of Matter Hub:

{
  "name": "HA_toGoogle",
  "port": 5541,
  "filter": {
    "include": [
      {
        "type": "label",
        "value": "matterhub"
      }
    ],
    "exclude": []
  },
  "featureFlags": {
    "matterSpeakers": true,
    "matterFans": true
  }
}

On host System I turned ufw temporaily off

as well checked while bridge is in run mode on host:

srvadmin@homesrv01:~$ nmap 192.168.30.30 -p 5540
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-12-21 16:28 UTC
Nmap scan report for homesrv01.smart.xhome.xxx (192.168.30.30)
Host is up (0.00015s latency).

PORT     STATE  SERVICE
5540/tcp closed sdreport

Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds
srvadmin@homesrv01:~$ nmap 192.168.30.30 -p 62063
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-12-21 16:28 UTC
Nmap scan report for homesrv01.smart.xhome.xxx  (192.168.30.30)
Host is up (0.00014s latency).

PORT      STATE  SERVICE
62063/tcp closed unknown

Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds
srvadmin@homesrv01:~$ nmap 192.168.30.40 -p 62063
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-12-21 16:28 UTC
Nmap scan report for homeassistant.smart.xhome.xxx  (192.168.30.40)
Host is up (0.00021s latency).

PORT      STATE SERVICE
62063/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds
srvadmin@homesrv01:~$ nmap 192.168.30.40 -p 5540
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-12-21 16:28 UTC
Nmap scan report for homeassistant.smart.xhome.xxx (192.168.30.40)
Host is up (0.00025s latency).

PORT     STATE  SERVICE
5540/tcp closed sdreport

as well checked while bridge is in run mode on homeassistant os:

➜  ~ nmap 192.168.30.40 -p 5541
Starting Nmap 7.95 ( https://nmap.org ) at 2024-12-21 17:54 CET
Nmap scan report for homeassistant.smart.henkehome.net (192.168.30.40)
Host is up (0.000063s latency).

PORT     STATE  SERVICE
5541/tcp closed unknown

Nmap done: 1 IP address (1 host up) scanned in 0.08 seconds
➜  ~ nmap 192.168.30.40 -p 62063
Starting Nmap 7.95 ( https://nmap.org ) at 2024-12-21 17:54 CET
Nmap scan report for homeassistant.smart.henkehome.net (192.168.30.40)
Host is up (0.000066s latency).

PORT      STATE SERVICE
62063/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds

Relevant log output

6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
-----------------------------------------------------------
 Add-on: Home-Assistant-Matter-Hub
 Publish your entities from Home Assistant to any Matter-compatible controller like Alexa, Apple Home or Google Home.
-----------------------------------------------------------
 Add-on version: 3.0.0-alpha.57
 You are running the latest version of this add-on.
 System: Home Assistant OS 14.1  (amd64 / qemux86-64)
 Home Assistant Core: 2024.12.5
 Home Assistant Supervisor: 2024.12.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[ 2024-12-21T16:29:06.156Z ] [ INFO  ] [ Matter / ServerNodeStore                           ]: Opened *20d7540a2dc349559b1cd6f56095de37* storage at /config/data/20d7540a2dc349559b1cd6f56095de37
[ 2024-12-21T16:29:06.238Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37* ready endpoint#: 0 type: RootNode (0x16) behaviors: 💤parts ✓index ✓basicInformation ✓accessControl ✓groupKeyManagement ✓generalCommissioning ✓administratorCommissioning ✓operationalCredentials ✓generalDiagnostics ✓commissioning ✓network 💤productDescription 💤sessions 💤controller ✓descriptor
[ 2024-12-21T16:29:06.244Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37.aggregator* ready endpoint#: 1 type: Aggregator (0xe) behaviors: 💤parts ✓index ✓descriptor
[ 2024-12-21T16:29:06.418Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37.aggregator.switch_hmip_ps_00021a49a86be2* ready endpoint#: 6 type: OnOffPlugInUnit (0x10a) behaviors: ✓identify ✓groups ✓onOff ✓bridgedDeviceBasicInformation ✓homeAssistantEntity ✓descriptor
[ 2024-12-21T16:29:06.420Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37.aggregator.scene_kaffee* ready endpoint#: 11 type: OnOffPlugInUnit (0x10a) behaviors: ✓identify ✓groups ✓onOff ✓bridgedDeviceBasicInformation ✓homeAssistantEntity ✓descriptor
[ 2024-12-21T16:29:06.422Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37.aggregator.light_kuche_licht* ready endpoint#: 7 type: OnOffLight (0x100) behaviors: ✓identify ✓groups ✓onOff ✓bridgedDeviceBasicInformation ✓homeAssistantEntity ✓descriptor
[ 2024-12-21T16:29:06.424Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37.aggregator.climate_hmip_etrv_2_000a1d89b4e372* ready endpoint#: 2 type: Thermostat (0x301) behaviors: ✓identify ✓bridgedDeviceBasicInformation ✓homeAssistantEntity ✓thermostat ✓descriptor
[ 2024-12-21T16:29:06.425Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37.aggregator.climate_hmip_etrv_2_000a18a996e3da* ready endpoint#: 3 type: Thermostat (0x301) behaviors: ✓identify ✓bridgedDeviceBasicInformation ✓homeAssistantEntity ✓thermostat ✓descriptor
[ 2024-12-21T16:29:06.426Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37.aggregator.climate_hmip_etrv_2_000a1be99b5689* ready endpoint#: 4 type: Thermostat (0x301) behaviors: ✓identify ✓bridgedDeviceBasicInformation ✓homeAssistantEntity ✓thermostat ✓descriptor
[ 2024-12-21T16:29:06.427Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37.aggregator.climate_hmip_etrv_2_000a1709b23f57* ready endpoint#: 5 type: Thermostat (0x301) behaviors: ✓identify ✓bridgedDeviceBasicInformation ✓homeAssistantEntity ✓thermostat ✓descriptor
[ 2024-12-21T16:29:06.428Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37.aggregator.climate_hmip_etrv_2_000a18a996e277* ready endpoint#: 8 type: Thermostat (0x301) behaviors: ✓identify ✓bridgedDeviceBasicInformation ✓homeAssistantEntity ✓thermostat ✓descriptor
[ 2024-12-21T16:29:06.428Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37.aggregator.climate_hmip_etrv_2_000a18a996e3a2* ready endpoint#: 9 type: Thermostat (0x301) behaviors: ✓identify ✓bridgedDeviceBasicInformation ✓homeAssistantEntity ✓thermostat ✓descriptor
[ 2024-12-21T16:29:06.429Z ] [ INFO  ] [ Matter / Endpoint                                  ]: *20d7540a2dc349559b1cd6f56095de37.aggregator.climate_hmip_heating_int0000001* ready endpoint#: 10 type: Thermostat (0x301) behaviors: ✓identify ✓bridgedDeviceBasicInformation ✓homeAssistantEntity ✓thermostat ✓relativeHumidityMeasurement ✓descriptor
[ 2024-12-21T16:29:06.433Z ] [ INFO  ] [ Matter / Node                                      ]: *20d7540a2dc349559b1cd6f56095de37* going online
[ 2024-12-21T16:29:06.601Z ] [ INFO  ] [ Matter / Node                                      ]: *20d7540a2dc349559b1cd6f56095de37* is online
[ 2024-12-21T16:29:06.612Z ] [ INFO  ] [ Matter / AccessControlServer                       ]: initializing ACL manager with ACL 
[ 2024-12-21T16:29:06.636Z ] [ INFO  ] [ Matter / Commissioning                             ]: *20d7540a2dc349559b1cd6f56095de37* is uncommissioned passcode: 72129805 discriminator: 3291 manual pairing code: 30743744028
  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  █ ▄▄▄▄▄ ██▀▄█▄█ ▄▄▄▄▄ █
  █ █   █ █▄▀▄ ▀█ █   █ █
  █ █▄▄▄█ ██ ▀▀▄█ █▄▄▄█ █
  █▄▄▄▄▄▄▄█ █ ▀▄█▄▄▄▄▄▄▄█
  █  ▄█▄▄▄▄▄█ ▄   █▀█ █▀█
  █ ▄▀█ ▀▄██ ▀ ▄█▄█  ▀█▀█
  ██████▄▄██▀  █▀█ ▄▄▀▄▀█
  █ ▄▄▄▄▄ █ █ ▄ ██▀ ▄ █ █
  █ █   █ █▄▀▀▄▄ ▀ ▀▄ ▀██
  █ █▄▄▄█ █ ▀▄▄▀▀ ▀█  ▀ █
  █▄▄▄▄▄▄▄█▄█▄██▄█▄██▄█▄█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  QR code URL: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT:Y.K90YDA13N8FV1ZJ10
[ 2024-12-21T16:29:06.647Z ] [ INFO  ] [ WebApi                                             ]: HTTP server (API & Web App) listening on port 62063

What deployment method do you use?

Home Assistant AddOn

Did you already check the following?

  • Does your network include any VLAN setup?
  • Do you have any special firewall rules / services in place?
  • Is IPv6 enabled in your LOCAL network?
  • If you are using the docker deployment: Is IPv6 enabled within your docker daemon config?
  • If you are using the docker deployment: Do you run the container with host network?

Documentation & Issues

  • I have reviewed the documentation and the linked troubleshooting guide.
  • I have searched the issues for a similar problem.
@learnlinuxnow learnlinuxnow added the connection-issue Connection issues label Dec 21, 2024
@t0bst4r
Copy link
Owner

t0bst4r commented Dec 22, 2024

So... your log does not show ANY trial of your voice assistant to connect. I'd assume that the voice assistant is not able to connect to the addon at all.

You checked the VLAN and firewall questions. What is your exact setup? Having the Addon and the voice assist in different subnets / vlan will require manual setup in your firewalls / gateways.

Matter uses port 5353/udp for mDNS and the bridge port with udp (immediate) and tcp after pairing.

Additionally you verified that ipv6 is really working between those devices? No gateway / router in between which breaks ipv6?

@exolab
Copy link

exolab commented Dec 22, 2024

Not OP, but also struggling. As per this discussion, home assistant does not really support ipv6?

home-assistant/supervisor#2133 (comment)

When I check the docker daemon.json, ipv6 does not seem to be enabled at all.

Am I missing something?

@exolab
Copy link

exolab commented Dec 22, 2024

PS: To be more precise, I am running home assistant using libvirt and trying to run the Matter hub addon. If I just run the Matter hub as a separate docker container, everything works fine.

@learnlinuxnow
Copy link
Author

So after figuring out it seams that Docker and homeassistant running via libvirt partly not using IPv6 properly.

This is leading for me now to a situation in where i have to think about my conceots and maybe ending up with a different setup. actually masqueraded the homeassistant virtuall machine as well behind an external nginx revers prox without ipv6 connections allowed.

@meijieru
Copy link

meijieru commented Dec 28, 2024

I am in the exactly the same situation. Running HAOS in a VM, cannot connect or telnet to it. Have you already solved the problem? @learnlinuxnow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connection-issue Connection issues
Projects
None yet
Development

No branches or pull requests

4 participants