SONOFF - SNZB-06P - wont update the state

i added my new sensor the sonoff SNZB-06P to deconz with the conbee2, but the state doesnt change anymore after adding.

is a ddf neccessary? or should it work out of the box with Gateway Version - 2.28.1Firmware ?

i found a thread on github but its from 2023

Sonoff SNZB-06P · Issue #7369 · dresden-elektronik/deconz-rest-plugin · GitHub

on this picture you see its 17 hours no movement

here a pic from deconz

Thank YOu

Have you resart deconz after pairing ?

yes i restarted deconz and the complete HA.
when i press 2 times the button on the sensor it changes the motion detection to true.

but then i goes to false and is still there.

Any Ideas?

This device already have a DDF and you use it ATM, else the device will be not included.
No return after 16 h ? Even the battery ? For me the device have problem, connection issue or bad inclusion (Binds/reports are no set).
You have tried to re-include it ? (without deleting it before)

Have you update thé firmware ?

Hello

yes right even after 16 hours no improvement I deleted the device yesterday once and reconnected, since then I have two adjustable values once “duration” & “delay” but I have no values like “battery” or eg the “sensitivity” this should be adjustable in 3 steps with this sensor.

When reconnecting, you just don’t mean delete and hold the key e.g. pair? or are you looking for new devices in deconz?

I just connected the device directly via deconz, there I can’t update firmware of the sensor or what do you mean?

I m reading the DDF for the “SNZB-06P” and there is only config/delay state/dark and state/presence.

Other sensors are working ? Can you take a look in the Deconz application ?

Yeah that’s the problem the ddf is not complete!
the sensor has a sensity that must be changed, in zigbee2mqtt there is the sensity value.

I contacted sonoff support I must change the sensity to high , the support thinks that’s the problem.

The values for sensity are

Low
Medium
High

That’s a missing key feature for this sensor

Pictures from sonoff support


Can try to change the value using the GUI else you can add to the DDF

        {
          "name": "config/sensitivity",
          "refresh.interval": 3660,
          "parse": {
            "at": "0x0022",
            "cl": "0x0406",
            "ep": 1,
            "eval": "Item.val = Attr.val;",
            "fn": "zcl:attr"
          },
          "read": {
            "at": "0x0022",
            "cl": "0x0406",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "write": {
            "at": "0x0022",
            "cl": "0x0406",
            "dt": "0x20",
            "ep": 1,
            "eval": "Item.val",
            "fn": "zcl:attr"
          },
          "default": "1",
          "values": [
            [
              1,
              "low"
            ],
            [
              2,
              "medium"
            ],
            [
              3,
              "high"
            ]
          ]
        },

How can i change the ddf on the HA deconz addon ?
That’s really a pain in the ass, in tried it for hours… but nothing worked

so, i can only change the DDF in the UI, thats my result, but now the sensor lost the connection and its visible in the Deconz GUI and HA as Presence137. But i have no slider for Sensitiy

{
  "schema": "devcap1.schema.json",
  "manufacturername": "SONOFF",
  "modelid": "SNZB-06P",
  "vendor": "Sonoff",
  "product": "Human presence sensor (SNZB-06P)",
  "sleeper": false,
  "status": "Draft",
  "path": "/devices/Sonoff SNZB-06P/snzb-06p.json",
  "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",
          "refresh.interval": 86400,
          "read": {
            "at": "0x0020",
            "cl": "0x0406",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "write": {
            "at": "0x0020",
            "cl": "0x0406",
            "dt": "0x21",
            "ep": 1,
            "eval": "Item.val",
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0020",
            "cl": "0x0406",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          },
          "default": 0
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "config/sensitivity",
          "refresh.interval": 3660,
          "read": {
            "at": "0x0022",
            "cl": "0x0406",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "write": {
            "at": "0x0022",
            "cl": "0x0406",
            "dt": "0x20",
            "ep": 1,
            "eval": "Item.val",
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0022",
            "cl": "0x0406",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          },
          "default": 1
        },
        {
          "name": "config/sensitivitymax",
          "static": 3
        },
        {
          "name": "state/dark",
          "refresh.interval": 360,
          "read": {
            "at": "0x2001",
            "cl": "0xfc11",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x2001",
            "cl": "0xfc11",
            "ep": 1,
            "eval": "if (Attr.val === 0) { Item.val = true } else { Item.val = false }",
            "fn": "zcl:attr"
          },
          "default": false
        },
        {
          "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
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0xFC11",
      "report": [
        {
          "at": "0x2001",
          "dt": "0x20",
          "min": 1,
          "max": 300,
          "change": "0x00000001"
        }
      ]
    }
  ]
}

that here is missing but i dont know how to add this in the EDIT DDF UI

"values": [
            [
              1,
              "low"
            ],
            [
              2,
              "medium"
            ],
            [
              3,
              "high"
            ]
          ]

Missed, IDK what you have done, but this DDF is not used.
On HA you need to create a new DDF in /data/.local/share/dresden-elektronik/deCONZ/devices/

what do you mean with the first ?
it was a typo by me, the actually DDF looks

{
  "schema": "devcap1.schema.json",
  "manufacturername": "SONOFF",
  "modelid": "SNZB-06P",
  "vendor": "Sonoff",
  "product": "Human presence sensor (SNZB-06P)",
  "sleeper": false,
  "status": "Gold",
  "path": "/devices/Sonoff SNZB-06P/snzb-06p.json",
  "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",
          "refresh.interval": 86400,
          "read": {
            "at": "0x0020",
            "cl": "0x0406",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "write": {
            "at": "0x0020",
            "cl": "0x0406",
            "dt": "0x21",
            "ep": 1,
            "eval": "Item.val",
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0020",
            "cl": "0x0406",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          },
          "default": 0
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "config/sensitivity",
          "refresh.interval": 3660,
          "read": {
            "at": "0x0022",
            "cl": "0x0406",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "write": {
            "at": "0x0022",
            "cl": "0x0406",
            "dt": "0x20",
            "ep": 1,
            "eval": "Item.val",
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0022",
            "cl": "0x0406",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          },
          "default": 1
        },
        {
          "name": "config/sensitivitymax",
          "static": 3
        },
        {
          "name": "state/dark",
          "refresh.interval": 360,
          "read": {
            "at": "0x2001",
            "cl": "0xfc11",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x2001",
            "cl": "0xfc11",
            "ep": 1,
            "eval": "if (Attr.val === 0) { Item.val = true } else { Item.val = false }",
            "fn": "zcl:attr"
          },
          "default": false
        },
        {
          "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
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0xFC11",
      "report": [
        {
          "at": "0x2001",
          "dt": "0x20",
          "min": 1,
          "max": 300,
          "change": "0x00000001"
        }
      ]
    }
  ]
}

i dont have access to the /data/.local/share/dresden-elektronik/deCONZ/devices/ over SSH.
I must do everything over the GUI and VNC

Take a look direclty in the API, if the DDf is working the new field need to be visible after a deconz restart.
In Phoscon / help / API Information / sensors

okay sensity is there
how can i now change the value to 2 or 3?

but here is the ddf in deconz

If you “update” the value in HA, it will be not usable using it ?
Else you need to use directly the API Getting Started - deCONZ REST-API

Else using the GUI, it’s on the cluster 0x0406, attribute 0x0022


	  <attribute id="0x0022" name="Ultrasonic Unoccupied To Occupied Threshold" type="u8" range="0x01,0xfe" access="rw" required="o" default="0x01">
            <description>The UltrasonicUnoccupiedToOccupiedThreshold attribute is 8 bits in length and specifies the number of movement detection events that must occur in the period PIRUnoccupiedToOccupiedDelay, before the PIR sensor changes to its occupied state.</description>
          </attribute>

@Smanar

okay that worked

but the sensor reacts only at 4 cm before i touch it, something is here wrong…

Yes, even with the highest setting it works only in 4cm before I touch it.
With setting 2 or 1 it was 2 cm or direct touch…

Is this still a issue with deconz / phoscon ?

And I still have no slider in HA for the sensity in the sensor.

Can come from the device.
This device can use the IAS cluster or the presence cluster, and on this DDF we are using the presence cluster, like other project, on the same way.
Can try different settings using the GUI.