[New device support]: Sonoff SNZB-04PR2 SenseGuard DW Gen2
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
Notes
No response
🙏 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.
👋 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
👋 Hi there! The device with zigbee model
SNZB-04PR2is 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