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

Exception when loading MatterController #11

Open
Nik19792000 opened this issue Jan 1, 2024 · 5 comments
Open

Exception when loading MatterController #11

Nik19792000 opened this issue Jan 1, 2024 · 5 comments

Comments

@Nik19792000
Copy link

Hi, I played around with node-red-matter, and I was even able to add one Device to Google Home, but shortly afterwards, Node Red failed to restart due to the following error:

1 Jan 12:03:45 - [info] [matter-server:MatterServer] Starting matter server
1 Jan 12:03:45 - [info] [matter-server:MatterServer] Added commissioning controller for 7e8198ecd6d4ee69
1 Jan 12:03:45 - [info] [matter-server:MatterServer] All related nodes added (1/1)
1 Jan 12:03:45 - [info] [matter-server:MatterServer] Starting matter server
1 Jan 12:03:45 - [info] Started modified flows
1 Jan 12:04:00 - [red] Uncaught Exception:
1 Jan 12:04:00 - [error] Error: No device discovered using identifier {"shortDiscriminator":15}! Please check that the relevant device is online.
    at MatterController.<anonymous> (/config/node_modules/@project-chip/matter.js/src/MatterController.ts:181:19)
    at Generator.next (<anonymous>)
    at fulfilled (/config/node_modules/@project-chip/matter.js/dist/cjs/MatterController.js:10:58)
[12:04:00] INFO: Service Node-RED exited with code 1 (by signal 0)

I re-installed node-red-matter and I can narrow it down to just adding a MatterControllerStatusNode and defining a MatterController and MatterServer. As soon as I do this, I get this error. Any idea, what's the problem?

@Nik19792000
Copy link
Author

I guess, I misinterpreted the purpose of the MatterController node. If I only want to create virtual Matter devices in NodeRed, then I shouldn't use MatterController node, right?
It's still a bit ideal to have the whole thing crash, if I pick a wrong node. I had to start NodeRed in safe mode to be able to delete the node.

@Apollon77
Copy link

Correct, The MatterController is used to pair with a matter device

@Apollon77
Copy link

Bu tin fact yes the code need to catch the error ideally :-)

@FezVrasta
Copy link
Owner

Do you have a configuration to share to reproduce the crash?

@Nik19792000
Copy link
Author

You can just add a Matter Controller Status node. Then add a new Matter Controller and use a valid pairing code (e.g. 749701123365521327694). When you deploy the flow, the error will show and node-red will stop.

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

No branches or pull requests

3 participants