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

**URL:** <https://discourse.nodered.org/t/experiences-with-sammachin-node-red-matter-controller-node/94522>\
**Category:** General\
**Created:** [10 January 2025 23:39 UTC](https://discourse.nodered.org/t/experiences-with-sammachin-node-red-matter-controller-node/94522 "2025-01-10T23:39:40Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![sammachin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sammachin/32/5121_2.png) [@sammachin](https://discourse.nodered.org/u/sammachin)\
**Post date:** [18 January 2025 08:01 UTC](https://discourse.nodered.org/t/experiences-with-sammachin-node-red-matter-controller-node/94522/21 "2025-01-18T08:01:20Z")

</div>

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.

 ![Screen Shot 2025-01-18 at 7.57.00 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/f/8f0097f3553595213a01b1eba4d8b9c06a0cf031.png)

```auto
[
    {
        "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"
    }
]

```

---

<div class="post-metadata">

**Author:** ![Frida](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/frida/32/68250_2.png) [@Frida](https://discourse.nodered.org/u/Frida)\
**Post date:** [18 January 2025 09:20 UTC](https://discourse.nodered.org/t/experiences-with-sammachin-node-red-matter-controller-node/94522/22 "2025-01-18T09:20:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [18 January 2025 19:20 UTC](https://discourse.nodered.org/t/experiences-with-sammachin-node-red-matter-controller-node/94522/23 "2025-01-18T19:20:20Z")

</div>

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.

[Previous page](https://discourse.nodered.org/t/experiences-with-sammachin-node-red-matter-controller-node/94522.md?page=1)
