-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for IKEA Badring #7163
Conversation
devices/ikea.js
Outdated
@@ -585,4 +585,13 @@ module.exports = [ | |||
description: 'TRADFRI LED bulb E14 WW clear 250 lumen, dimmable', | |||
extend: tradfriExtend.light_onoff_brightness(), | |||
}, | |||
{ | |||
zigbeeModel: ['BADRING Water Leakage Sensor'], | |||
model: 'BADRING Water Leakage Sensor', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any model number written on the box or manual? Something like EXXXX?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. E2202!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, can you update the PR and rebase your branch? It has a merge conflict at the moment.
Note to self; after this merge Koenkk/zigbee2mqtt.io#2613 |
thanks! |
I've noticed that water leak is not reported correctly. When I simulate the leak, device beeps and red light is blinking, the MQTT messages are generated, but
|
@mgwoj can you please provide the debug log? Maybe it’s using different alarm Better yet, add it in a new issue |
Added support for IKEA Badring
For reference working external converter:
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const {} = require('zigbee-herdsman-converters/lib/tuya');
const utils = require('zigbee-herdsman-converters/lib/utils');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const e = exposes.presets;
const ea = exposes.access;
const {batteryPercentage, identify} = require('zigbee-herdsman-converters/lib/modernExtend');
const definition = {
zigbeeModel: ['BADRING Water Leakage Sensor'],
model: 'BADRING Water Leakage Sensor',
vendor: 'IKEA of Sweden',
fromZigbee: [fz.ias_water_leak_alarm_1],
toZigbee: [],
description: 'IKEA Water Leakage Detection Sensor and Alarm',
extend: [batteryPercentage(), identify()],
exposes: [e.water_leak()],
};
module.exports = definition;
``