[New device support]: Sonoff ZigBee SNZB-04P
Link
https://www.sonoff.cz/p/sonoff-zigbee-okna-dvere-snzb-04p
Database entry
{ "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-04P", "options": [], "source": "native", "supports_ota": true, "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-04P'],
model: 'SNZB-04P',
vendor: 'eWeLink',
description: 'Automatically generated definition',
extend: [m.battery(), m.iasZoneAlarm({"zoneType":"generic","zoneAttributes":["alarm_1","alarm_2","tamper","battery_low"]}), m.commandsOnOff()],
};
What does/doesn't work with the external definition?
Cannot setting missing definition
Notes
No response
👋 Hi there! The device with zigbee model SNZB-04P 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-04Pis 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