zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[New device support]: Sonoff SNZB-04PR2 SenseGuard DW Gen2

Open fhdoma opened this issue 4 months ago • 4 comments

Mi### Link

https://www.sonoff.cz/p/sonoff-snzb-04pr2-senseguard-dw-gen2

Database entry

{ "description": "Zigbee Dongle Plus MG24 (EFR32MG24) with router firmware", "exposes": [ { "access": 1, "category": "diagnostic", "description": "Link quality (signal strength)", "label": "Linkquality", "name": "linkquality", "property": "linkquality", "type": "numeric", "unit": "lqi", "value_max": 255, "value_min": 0 } ], "model": "Dongle-PMG24", "options": [], "source": "native", "supports_ota": false, "vendor": "SONOFF", "version": "0.0.0" }

Zigbee2MQTT version

2.12.1

External definition

import * as m from 'zigbee-herdsman-converters/lib/modernExtend';

export default { zigbeeModel: ['SNZB-04PR2'], model: 'SNZB-04PR2', vendor: 'SONOFF', description: 'Automatically generated definition', extend: [m.battery(), m.iasZoneAlarm({"zoneType":"generic","zoneAttributes":["alarm_1","alarm_2","tamper","battery_low"]})], };

{
    "description": "Contact sensor",
    "exposes": [
        {
            "access": 1,
            "description": "Indicates whether the device is opened or closed",
            "label": "Contact",
            "name": "contact",
            "property": "contact",
            "type": "binary",
            "value_off": true,
            "value_on": false
        },
        {
            "access": 1,
            "category": "diagnostic",
            "description": "Indicates whether the battery of the device is almost empty",
            "label": "Battery low",
            "name": "battery_low",
            "property": "battery_low",
            "type": "binary",
            "value_off": false,
            "value_on": true
        },
        {
            "access": 5,
            "description": "Tamper-proof status",
            "label": "Tamper",
            "name": "tamper",
            "property": "tamper",
            "type": "binary",
            "value_off": false,
            "value_on": true
        },
        {
            "access": 5,
            "category": "diagnostic",
            "description": "Remaining battery in %",
            "label": "Battery",
            "name": "battery",
            "property": "battery",
            "type": "numeric",
            "unit": "%",
            "value_max": 100,
            "value_min": 0
        },
        {
            "access": 5,
            "category": "diagnostic",
            "description": "Reported battery voltage in millivolts",
            "label": "Voltage",
            "name": "voltage",
            "property": "voltage",
            "type": "numeric",
            "unit": "mV"
        },
        {
            "access": 1,
            "category": "diagnostic",
            "description": "Link quality (signal strength)",
            "label": "Linkquality",
            "name": "linkquality",
            "property": "linkquality",
            "type": "numeric",
            "unit": "lqi",
            "value_max": 255,
            "value_min": 0
        }
    ],
    "model": "SNZB-04PR2",
    "options": [],
    "source": "native",
    "supports_ota": true,
    "vendor": "SONOFF",
    "version": "0.0.1"
}

What does/doesn't work with the external definition?

Missing external definition cannot setting battery low, Tamper... Not see

Image

Notes

No response

fhdoma avatar Jul 23 '26 09:07 fhdoma

🙏 Thank you for creating this issue and sharing your external converter!

In case all features work, please submit a pull request on this repository so the device can be supported out-of-the-box with the next release. For instructions on how to create a pull request see the docs.

If NOT all features work, please follow the How To Support new devices.

If you need help with the process, feel free to ask here and we'll be happy to assist.

github-actions[bot] avatar Jul 23 '26 09:07 github-actions[bot]

👋 Hi there! The device with zigbee model SNZB-04PR2 is already supported in the latest dev branch. See this guide on how to update, after updating you can remove your external converter.

In case you created the external converter with the goal to extend or fix an issue with the out-of-the-box support, please submit a pull request. For instructions on how to create a pull request see the docs.

If you need help with the process, feel free to ask here and we'll be happy to assist.

github-actions[bot] avatar Jul 23 '26 09:07 github-actions[bot]

I update today zigbee2mqtt and no support still issue

fhdoma avatar Aug 01 '26 13:08 fhdoma

👋 Hi there! The device with zigbee model SNZB-04PR2 is already supported in the latest dev branch. See this guide on how to update, after updating you can remove your external converter.

In case you created the external converter with the goal to extend or fix an issue with the out-of-the-box support, please submit a pull request. For instructions on how to create a pull request see the docs.

If you need help with the process, feel free to ask here and we'll be happy to assist.

I update today zigbee2mqtt and no support still issue

fhdoma avatar Aug 01 '26 13:08 fhdoma