Skip to content
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

Merged
merged 2 commits into from
Mar 8, 2024
Merged

Added support for IKEA Badring #7163

merged 2 commits into from
Mar 8, 2024

Conversation

Mettchen
Copy link
Contributor

@Mettchen Mettchen commented Mar 5, 2024

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;
``

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',
Copy link
Owner

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. E2202!

Copy link
Owner

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.

@Koenkk
Copy link
Owner

Koenkk commented Mar 6, 2024

Note to self; after this merge Koenkk/zigbee2mqtt.io#2613

@Mettchen Mettchen closed this Mar 7, 2024
@Mettchen Mettchen reopened this Mar 7, 2024
@Koenkk Koenkk merged commit f370b34 into Koenkk:master Mar 8, 2024
2 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Mar 8, 2024

thanks!

@mgwoj
Copy link
Contributor

mgwoj commented Mar 14, 2024

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 water_leak is always false

MQTT publish: topic 'zigbee2mqtt/0x38398ffffe0axxxx/water_leak', payload 'false'

@mrskycriper
Copy link
Contributor

mrskycriper commented Mar 14, 2024

@mgwoj can you please provide the debug log? Maybe it’s using different alarm

Better yet, add it in a new issue

@mgwoj
Copy link
Contributor

mgwoj commented Mar 14, 2024

Koenkk/zigbee2mqtt#21794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants