Question about SNZB-06P

Hi,

I have just paired the Sonoff SNZB-06P motion sensor. Howver, i want to change de sensitivity to ''High"

I am using Home-assistant with the Deconz addon.

The only thing in hom-assistant I can adjust is the delay fuction.

On the internet, i can see that Zigbee2mqtt and ZHA are supporting to change the sensitivity via de UI.

Thanks.

Right, you can add to the DDF


        {
          "name": "config/sensitivity",
          "range": [
            1,
            3
          ]
          "parse": {
            "fn": "zcl:attr",
            "ep": 1,
            "cl": "0x0406",
            "at": "0x0022",
            "eval": "Item.val = Attr.val"
          },
          "read": {
            "fn": "zcl:attr",
            "ep": 1,
            "cl": "0x0406",
            "at": "0x0022"
          },
          "write": {
            "fn": "zcl:attr",
            "ep": 1,
            "cl": "0x0406",
            "at": "0x0022",
            "dt": "0x20",
            "eval": "Item.val"
          },

Then restart deconz, you will have a new field to set the sensitivity.

Where do i add this code?

I have hassio installed. When i check the documents the files should be present in /mnt/share/deConz/devices, but that looks empty.

Is it possible to add the complete code so i can copy past it into a new file?

{
    "schema": "devcap1.schema.json",
    "manufacturername": "SONOFF",
    "modelid": "SNZB-06P",
    "vendor": "Sonoff",
    "product": "Human presence sensor (SNZB-06P)",
    "sleeper": false,
    "status": "Gold",
    "subdevices": [
        {
            "type": "$TYPE_PRESENCE_SENSOR",
            "restapi": "/sensors",
            "uuid": [
                "$address.ext",
                "0x01",
                "0x0406"
            ],
            "items": [
                {
                    "name": "attr/id"
                },
                {
                    "name": "attr/lastannounced"
                },
                {
                    "name": "attr/lastseen"
                },
                {
                    "name": "attr/manufacturername"
                },
                {
                    "name": "attr/modelid"
                },
                {
                    "name": "attr/name"
                },
                {
                    "name": "attr/swversion"
                },
                {
                    "name": "attr/type"
                },
                {
                    "name": "attr/uniqueid"
                },
                {
                    "name": "config/delay",
                    "parse": {
                        "fn": "zcl:attr",
                        "ep": 1,
                        "cl": "0x0406",
                        "at": "0x0020",
                        "eval": "Item.val = Attr.val"
                    },
                    "read": {
                        "fn": "zcl:attr",
                        "ep": 1,
                        "cl": "0x0406",
                        "at": "0x0020"
                    },
                    "write": {
                        "fn": "zcl:attr",
                        "ep": 1,
                        "cl": "0x0406",
                        "at": "0x0020",
                        "dt": "0x21",
                        "eval": "Item.val"
                    },
                    "refresh.interval": 86400
                },
                {
                    "name": "config/sensitivity",
                    "range": [
                        1,
                        3
                    ],
                    "parse": {
                        "fn": "zcl:attr",
                        "ep": 1,
                        "cl": "0x0406",
                        "at": "0x0022",
                        "eval": "Item.val = Attr.val"
                    },
                    "read": {
                        "fn": "zcl:attr",
                        "ep": 1,
                        "cl": "0x0406",
                        "at": "0x0022"
                    },
                    "write": {
                        "fn": "zcl:attr",
                        "ep": 1,
                        "cl": "0x0406",
                        "at": "0x0022",
                        "dt": "0x20",
                        "eval": "Item.val"
                    }
                },
                {
                    "name": "config/on"
                },
                {
                    "name": "config/reachable"
                },
                {
                    "name": "state/lastupdated"
                },
                {
                    "name": "state/presence",
                    "read": {
                        "fn": "none"
                    },
                    "parse": {
                        "at": "0x0000",
                        "cl": "0x0406",
                        "ep": 1,
                        "eval": "Item.val = Attr.val",
                        "fn": "zcl:attr"
                    },
                    "default": false
                }
            ]
        }
    ],
    "bindings": [
        {
            "bind": "unicast",
            "src.ep": 1,
            "cl": "0x0406",
            "report": [
                {
                    "at": "0x0000",
                    "dt": "0x18",
                    "min": 1,
                    "max": 300
                }
            ]
        }
    ]
}

On HA, you need to use the persistent folder or use the deconz DDF tool Deconz Toolbox

What do you mean with president folder? And can i access that via the terminal addon ?

Or is it possible to add this code to a new release of deconz? So i can automatically install it via HA - addonstore.

But you can create a “bundle” using the Deconz toolbox and use phoscon to install it after.

I can’t add it without a minimum tests.

I tried to search that folders but it doenst work with hassio image.

/data/.local/share/dresden-elektronik/deCONZ/devices/
or .local/share/dresden-elektronik/deCONZ/devices/

do not exists in my configuruation.

Any more ideas how i can search for this folder? tried with find command and locate but that also doenst work.

This procedure is only for hassio, perhaps you need to create the last folder, but you need to go first “inside” the container.
Else can use this link to create un bundle Deconz Toolbox

Create the DDF file with extension *.json use this link to convert it in *.dbb and use Phoscon to load it.