node-red-matter icon indicating copy to clipboard operation
node-red-matter copied to clipboard

Can't find devices

Open jemarr opened this issue 2 years ago • 42 comments

Hi.

I used Node-Red for years with Virtual-Smart-Home plugin, but now I would like to start with Matter.

I've installed your node and imported the example (I just keep one light for simplicity).

Deploying the flow is ok, but Alexa nor Apple Home can't detect the light device.

I tested Alexa app in ios and android without success.

Apple Home says that the device needs a 'Central de accesorios' in spanish to complete configuration, seems to need a bridge or Hub.

My system is a RaspberryPi with Dietpi linux and it is connected via ethernet to my internet router.

Thanks for your nice work.

jemarr avatar Sep 07 '23 14:09 jemarr

Hi, could you please provide your flow backup and the Node-RED debug logs from when you start the flow to when the pairing fails through Apple Home?

FezVrasta avatar Sep 07 '23 14:09 FezVrasta

Matter flow.zip

This is the flow,

jemarr avatar Sep 07 '23 14:09 jemarr

Thanks, the flow looks in order, I will need the logs to tell you more

FezVrasta avatar Sep 07 '23 15:09 FezVrasta

Would you tell me how to get the logs, I've never do it before, sorry

jemarr avatar Sep 07 '23 15:09 jemarr

I just have access to RBPi via SSH or Node-Red web

jemarr avatar Sep 07 '23 15:09 jemarr

You would have to start Node-RED while logged in through SSH, first you will have to update your Node-RED config to set logging level to trace or debug

FezVrasta avatar Sep 07 '23 15:09 FezVrasta

image image

jemarr avatar Sep 07 '23 15:09 jemarr

and now ?

jemarr avatar Sep 07 '23 15:09 jemarr

journalctl -u node-red should give you all the logs. Check that, then try to pair to the virtual matter device, reproduce the issue, check the logs again and post them here

FezVrasta avatar Sep 07 '23 15:09 FezVrasta

After start nodered.txt After detect device.txt

Those are the logs, just after starting Node-Red, and after trying to detect from iPhone Home app

jemarr avatar Sep 07 '23 15:09 jemarr

Can't see anything wrong, but I'm no expert in matter.js, you could try asking in the Discord channel to see if someone else can provide more help.

FezVrasta avatar Sep 07 '23 15:09 FezVrasta

ok, thanks

jemarr avatar Sep 07 '23 15:09 jemarr

Installed, your example set up, using my Google Home Speaker hub device -.. Cant seem to find the QR code to feed into the Google Home device. Your info says documentation on the WIKI but I could ontly find one line of text in there. Am I missing something major here?

scargill avatar Sep 08 '23 08:09 scargill

Just, deploy in Node-Red and go to configure the device node again, then QR code should be there. image

jemarr avatar Sep 08 '23 09:09 jemarr

In fact the above logs just show the announcements but noone that tries to catch up or connect. This most likely means issues in UDP/MDNS/IPv6 data flows.

  • So make sure (especially with Google) your network has enabled IPv6
  • make sure all parties (the host with the device running on/node-red, the hub, the mobile app) and all interact with each other and are in the same network and UDP package flow is not blocked

Especially with Docker (no idea if you use it) that all might get interesting

Once it works and after scanning the qr code you should see at least "incoming" traffic when the mobile app was able to discover the device

Apollon77 avatar Sep 08 '23 10:09 Apollon77

Thanks Apollon, I'll check.

jemarr avatar Sep 08 '23 10:09 jemarr

i've checked IPv6 on router and NanoPi and both are enabled NanoPi is connected to the router via Ethernet cable and my iPhone/Android devices via WiFi to the same router, means same network.

image

Don't know how to check UDP flow

I don't use docker, just installed DietPi on my NanoPi Neo and Node-Red (with Dietpi-Software) Quite simple installation. And just Matter node plugin

jemarr avatar Sep 08 '23 11:09 jemarr

Its there any Firewall active on the device?

Apollon77 avatar Sep 08 '23 11:09 Apollon77

Not on NanoPi-Dietpi device, May be in the Router for in-outgoing traffic

jemarr avatar Sep 08 '23 12:09 jemarr

Check all router settings

Apollon77 avatar Sep 08 '23 12:09 Apollon77

What does "ip a" outouts onthe dietpi?

Apollon77 avatar Sep 08 '23 12:09 Apollon77

What does "ip a" outouts onthe dietpi?

Where do you see it ?, Sorry I can't find this item

jemarr avatar Sep 08 '23 12:09 jemarr

I've checked all menus on router and nothing wrong I guess

jemarr avatar Sep 08 '23 12:09 jemarr

Just, deploy in Node-Red and go to configure the device node again, then QR code should be there. image

Not entirely sure what I'm supposed to put in the matter server section. I have the Google Home Speaker unit which makes other Matter devices work..

I went to the example and.. Pairing Unable to retrieve pairing data. Make sure you deployed the node first, and that the associated Matter server is running.

scargill avatar Sep 08 '23 13:09 scargill

Where do you see it ?, Sorry I can't find this item

enter in a SSH shell

Apollon77 avatar Sep 08 '23 14:09 Apollon77

root@DietPi:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 02:81:69:a6:58:a3 brd ff:ff:ff:ff:ff:ff inet 192.168.1.13/24 brd 192.168.1.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::81:69ff:fea6:58a3/64 scope link valid_lft forever preferred_lft forever

jemarr avatar Sep 08 '23 14:09 jemarr

Ok that looks ok in general ... sotr honestly no idea ...

Apollon77 avatar Sep 08 '23 15:09 Apollon77

Ok,

Thanks for your time !!!

jemarr avatar Sep 08 '23 15:09 jemarr

But let me phrase it that way: If you find it out that would be cool. In fact if you tried Google maybe also Try Tuya Smartlife App 8works without an App) or Apple (if you have a hub). There mus be a reason. You could also try the "ESP Rainmaker app" ... just to try other things

I personally have this issue that all ecosystems do work beside Alex ... it also never finds and I have no clue why :-(

Apollon77 avatar Sep 08 '23 16:09 Apollon77

PS: mabe try to connect your dietpi via wifi (too) .. if it then works there is maybe an issue with wifi vs lan UDP routing

Apollon77 avatar Sep 08 '23 16:09 Apollon77