Experiences With @sammachin/node-red-matter-controller Node

I don't seem to be able to re-create this.
This test flow starts out with the attrubute as null, reads it, writes a 1 (using msg.payload) reads again, then writes null (typedInput) and then reads it.
All seems to work fine.

Could you set the logging level of the controller node to debug and then recreate the issue and share the log & flow you used with me.

[
    {
        "id": "1b2c4d08d01bf054",
        "type": "inject",
        "z": "e3752776c5edd4fd",
        "name": "read attribute",
        "props": [],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 1590,
        "y": 100,
        "wires": [
            [
                "cc1c2144a3d7cb0b"
            ]
        ]
    },
    {
        "id": "cc1c2144a3d7cb0b",
        "type": "matterreadattr",
        "z": "e3752776c5edd4fd",
        "name": "",
        "controller": "24cb35c0870756c1",
        "device": "7455765432451654642-1",
        "deviceName": "Bulb 1",
        "endpoint": "",
        "cluster": "6",
        "attr": "startUpOnOff",
        "simpleMode": false,
        "x": 1800,
        "y": 100,
        "wires": [
            [
                "209d96971a47cc5b"
            ]
        ]
    },
    {
        "id": "209d96971a47cc5b",
        "type": "debug",
        "z": "e3752776c5edd4fd",
        "name": "debug 26",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 2000,
        "y": 100,
        "wires": []
    },
    {
        "id": "b649c3fc3173b652",
        "type": "inject",
        "z": "e3752776c5edd4fd",
        "name": "write attribute",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 1590,
        "y": 160,
        "wires": [
            [
                "69ec870b256ed9d0"
            ]
        ]
    },
    {
        "id": "769f46cd3cb2993a",
        "type": "debug",
        "z": "e3752776c5edd4fd",
        "name": "debug 27",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 2000,
        "y": 160,
        "wires": []
    },
    {
        "id": "69ec870b256ed9d0",
        "type": "matterwriteattr",
        "z": "e3752776c5edd4fd",
        "name": "",
        "controller": "24cb35c0870756c1",
        "device": "7455765432451654642-1",
        "deviceName": "Bulb 1",
        "endpoint": "",
        "cluster": "6",
        "attr": "startUpOnOff",
        "simpleMode": false,
        "data": "payload",
        "dataType": "msg",
        "x": 1800,
        "y": 160,
        "wires": [
            [
                "769f46cd3cb2993a"
            ]
        ]
    },
    {
        "id": "e5b45c27dbb5ec63",
        "type": "inject",
        "z": "e3752776c5edd4fd",
        "name": "read attribute",
        "props": [],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 1590,
        "y": 220,
        "wires": [
            [
                "404f5eaea1475c02"
            ]
        ]
    },
    {
        "id": "404f5eaea1475c02",
        "type": "matterreadattr",
        "z": "e3752776c5edd4fd",
        "name": "",
        "controller": "24cb35c0870756c1",
        "device": "7455765432451654642-1",
        "deviceName": "Bulb 1",
        "endpoint": "",
        "cluster": "6",
        "attr": "startUpOnOff",
        "simpleMode": false,
        "x": 1800,
        "y": 220,
        "wires": [
            [
                "5609f27f9cb065d2"
            ]
        ]
    },
    {
        "id": "5609f27f9cb065d2",
        "type": "debug",
        "z": "e3752776c5edd4fd",
        "name": "debug 30",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 2000,
        "y": 220,
        "wires": []
    },
    {
        "id": "c9095b30e5532bb2",
        "type": "inject",
        "z": "e3752776c5edd4fd",
        "name": "read attribute",
        "props": [],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 1590,
        "y": 380,
        "wires": [
            [
                "4b42cb4a588c1408"
            ]
        ]
    },
    {
        "id": "4b42cb4a588c1408",
        "type": "matterreadattr",
        "z": "e3752776c5edd4fd",
        "name": "",
        "controller": "24cb35c0870756c1",
        "device": "7455765432451654642-1",
        "deviceName": "Bulb 1",
        "endpoint": "",
        "cluster": "6",
        "attr": "startUpOnOff",
        "simpleMode": false,
        "x": 1800,
        "y": 380,
        "wires": [
            [
                "c1a89832c5292898"
            ]
        ]
    },
    {
        "id": "c1a89832c5292898",
        "type": "debug",
        "z": "e3752776c5edd4fd",
        "name": "debug 31",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 2000,
        "y": 380,
        "wires": []
    },
    {
        "id": "1668afe649915d79",
        "type": "inject",
        "z": "e3752776c5edd4fd",
        "name": "write attribute",
        "props": [
            {
                "p": "value",
                "v": "1",
                "vt": "num"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 1590,
        "y": 300,
        "wires": [
            [
                "e7b61090636e204e"
            ]
        ]
    },
    {
        "id": "6885dcc0b0067498",
        "type": "debug",
        "z": "e3752776c5edd4fd",
        "name": "debug 32",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 2000,
        "y": 300,
        "wires": []
    },
    {
        "id": "e7b61090636e204e",
        "type": "matterwriteattr",
        "z": "e3752776c5edd4fd",
        "name": "",
        "controller": "24cb35c0870756c1",
        "device": "7455765432451654642-1",
        "deviceName": "Bulb 1",
        "endpoint": "",
        "cluster": "6",
        "attr": "startUpOnOff",
        "simpleMode": false,
        "data": "",
        "dataType": "null",
        "x": 1800,
        "y": 300,
        "wires": [
            [
                "6885dcc0b0067498"
            ]
        ]
    },
    {
        "id": "24cb35c0870756c1",
        "type": "mattercontroller",
        "networkInterface": "en0",
        "logLevel": "ERROR"
    }
]

Your example works fine with my Sonoff Mini Extreme Matter relay.

1 Like

I have found the problem. The debug node does not like null as part of the node status. If I do not select the node status check box - no error message.

Apologies but it would appear that the debug node is the problem. I will pass this up the chain.

Your example worked fine for my Sonoff also. This gave me the push to look at other reasons for the problem.

1 Like