OK
Well, what I do, is scan the NodeRED bridge QR code,
I then get offered to connect to SmartTHings but since that is some sort of Samsung propriety thingy I select use "add to different app"
It then comes up and suggests Google Home (but says it's not installed) but I don't have any Google home so I select "Choose other app"
Get offered a list of apps and I choose Amazon Alexa
It then scans for devices but doesn't find any
@sammachin I thought I would give this a try with my Alexa setup, to see if it worked for me but it seems to be crashing NR ?
Started Node-RED graphical event wiring tool.
23 Nov 16:38:28 - [info]
Welcome to Node-RED
===================
23 Nov 16:38:28 - [info] Node-RED version: v4.0.4
23 Nov 16:38:28 - [info] Node.js version: v20.18.0
23 Nov 16:38:28 - [info] Linux 6.1.21-v8+ arm64 LE
23 Nov 16:38:28 - [info] Loading palette nodes
23 Nov 16:38:43 - [info] Worldmap version 5.0.4
23 Nov 16:38:43 - [info] Dashboard version 3.6.5 started at /ui
23 Nov 16:38:45 - [info] Settings file : /home/pi/.node-red/settings.js
23 Nov 16:38:45 - [info] HTTP Static : /home/pi/.node-red/public > /
23 Nov 16:38:45 - [info] Context store : 'default' [module=localfilesystem]
23 Nov 16:38:45 - [info] Context store : 'memoryOnly' [module=memory]
23 Nov 16:38:45 - [info] User directory : /home/pi/.node-red
23 Nov 16:38:45 - [warn] Projects disabled : editorTheme.projects.enabled=false
23 Nov 16:38:45 - [warn] Flows file name not set. Generating name using hostname.
23 Nov 16:38:45 - [info] Flows file : /home/pi/.node-red/flows_pi-server.home.net.json
23 Nov 16:38:45 - [info] Server now running at http://127.0.0.1:1880/
23 Nov 16:38:45 - [info] +-----------------------------------------------------
23 Nov 16:38:45 - [info] | uibuilder v7.0.4 initialised 📗
23 Nov 16:38:45 - [info] | root folder: /home/pi/.node-red/uibuilder
23 Nov 16:38:45 - [info] | Using Node-RED's webserver at:
23 Nov 16:38:45 - [info] | http://0.0.0.0:1880/
23 Nov 16:38:45 - [info] | Installed packages:
23 Nov 16:38:45 - [info] +-----------------------------------------------------
23 Nov 16:38:46 - [info] Starting flows
node id 1439c001_b8134
SecuritySystemCurrentState_1439c001_b8134
Loading Bridge node f911c6e0eaebb4e7
Trying
Not Starting yet, more devices to load
Bridge Created, awaiting child nodes
Server Ready
loading the deviceId and deviceKey from config ...
23 Nov 16:38:54 - [info] [tuya-smart-device:left blind] Setting custom log level as log-level-debug
23 Nov 16:38:54 - [info] [tuya-smart-device:left blind] Auto start probe on connect...
loading the deviceId and deviceKey from config ...
23 Nov 16:38:54 - [info] [tuya-smart-device:right blind] Setting custom log level as log-level-debug
23 Nov 16:38:54 - [info] [tuya-smart-device:right blind] Auto start probe on connect...
23 Nov 16:38:56 - [error] [function:Setup haspTheme] TypeError: flow.get(...) is not a function
23 Nov 16:38:56 - [warn] [function:Store Functions] Adding calculateGridValues function
23 Nov 16:38:56 - [warn] [function:Store Functions] Adding rowsColumns function
23 Nov 16:38:56 - [warn] [function:Store Functions] Adding findKeyByButton function
23 Nov 16:38:56 - [warn] [function:Store Functions] Adding timestamp function
23 Nov 16:38:56 - [warn] [function:Store Functions] Adding scaleBtn function
Loading Device node e043b1889a10a665
Registering Child......
Registering e043b1889a10a665 with f911c6e0eaebb4e7
{
systemMode: 0,
localTemperature: 0,
controlSequenceOfOperation: 4,
minHeatSetpointLimit: 500,
maxHeatSetpointLimit: 3500,
absMinHeatSetpointLimit: 500,
absMaxHeatSetpointLimit: 3500,
minCoolSetpointLimit: 0,
absMinCoolSetpointLimit: 0,
maxCoolSetpointLimit: 2100,
absMaxCoolSetpointLimit: 2100
}
adding device to aggregator
Trying
Starting Bridge
23 Nov 16:38:56 - [info] Started flows
2024-11-23 16:38:57.672 FATAL Logger Unhandled error detected: MdnsService unavailable due to initialization error
at crashedError (/home/pi/.node-red/node_modules/@project-chip/matter.js/dist/cjs/util/Construction.js:323:24)
at handleRejection (/home/pi/.node-red/node_modules/@project-chip/matter.js/dist/cjs/util/Construction.js:114:63)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
23 Nov 16:38:57 - [red] Uncaught Exception:
23 Nov 16:38:57 - [error] Error: MdnsService unavailable due to initialization error
at crashedError (/home/pi/.node-red/node_modules/@project-chip/matter.js/dist/cjs/util/Construction.js:323:24)
at handleRejection (/home/pi/.node-red/node_modules/@project-chip/matter.js/dist/cjs/util/Construction.js:114:63)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Consumed 33.987s CPU time.
No you just need a matter controller like an echo.
It sounds like a network issue,
Is your node-red instance on the same local network as your echo?
Not running in docker or anything?
Have you selected the right interface on the node-red machine under the bridge config node? Eg eth0 or something?
What's your main machine OS, I assume from those hostnames its Linux?
Looks like the multicast address isn't initialising which would be why Alexa can't discover the device,
I installed that discovery node on my main Pi but unfortunately it just crashes NR
24 Nov 09:49:24 - [info] Stopping modified nodes
24 Nov 09:49:24 - [info] Stopped modified nodes
24 Nov 09:49:24 - [info] Updated flows
24 Nov 09:49:25 - [info] Starting modified nodes
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
24 Nov 09:49:26 - [info] You may ignore the warning about Bonjour compatability.
24 Nov 09:49:26 - [info] Started modified nodes
# node-red[2904]: void node::cares_wrap::{anonymous}::GetAddrInfo(const v8::FunctionCallbackInfo<v8::Value>&) at ../src/cares_wrap.cc:1575
# Assertion failed: args[4]->IsUint32()
----- Native stack trace -----
----- JavaScript stack trace -----
1: getaddrinfo_0_11 (/home/pi/.node-red/node_modules/mdns/lib/resolver_sequence_tasks.js:117:21)
2: /home/pi/.node-red/node_modules/mdns/lib/resolver_sequence_tasks.js:153:7
3: getaddrinfo (/home/pi/.node-red/node_modules/mdns/lib/resolver_sequence_tasks.js:152:14)
4: next (/home/pi/.node-red/node_modules/mdns/lib/browser.js:109:21)
5: on_resolver_done (/home/pi/.node-red/node_modules/mdns/lib/resolver_sequence_tasks.js:33:11)
6: MDNSService.self.watcher.callback (/home/pi/.node-red/node_modules/mdns/lib/mdns_service.js:18:40)
Aborted
pi@pi128gb:~/.node-red $
Sorry yes realised that after I'd written the response(although also interesting it doesn't have avahi)
Try the discover node on your desktop machine and see if you get the same error.
I think it should discover the matter node on the same machine anyway but it doesn't quite prove the messages are making it across your network that way.
Unfortunaley, we are just going further down a rabbit hole
Installed discovery node on main desktop machine and it too crashed
Checked and avahi-demon is installed
simon@simon-HP-Desktop-M01-F1xxx:~/.node-red$ sudo apt install avahi-daemon
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
avahi-daemon is already the newest version (0.8-5ubuntu5.2).
Checked my pi as well as its installed there as well
pi@pi128gb:~ $ sudo apt install avahi-daemon
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
avahi-daemon is already the newest version (0.8-5+deb11u2).
0 upgraded, 0 newly installed, 0 to remove and 225 not upgraded.
pi@pi128gb:~ $
Hmm all very strange, I'm away at the moment but I'll do a clean test run on a dev setup when I get home as close as I can you your setup.
So you have Node-RED running nativly on a Mint Linux machine? Which version?
Only other thing to suggest is running matter on the Pi, that should work fine as I do most of my dev & testing with it on Pi's and Mac
I'll also try the discover node on a Pi and see if I get those errors.