-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add support for SmartThings Multipurpose sensor (2018 version) #406
Comments
Can you enable the debug logging? ( |
Hi, here is the debug log: When contact is open:
When contact is closed:
|
By the way, here is what I have in the device.js (copied from exiting device 'multiv4'):
|
Please try with, this should fix both 1 and 2 of #406 (comment) {
zigbeeModel: ['multi'],
model: 'IM6001-MPP01',
vendor: 'SmartThings',
description: 'Multipurpose sensor (2018 model)',
supports: 'contact',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.st_contact_status_change,
fz.generic_batteryvoltage_3000_2500, fz.ignore_iaszone_change, fz.ignore_iaszone_attreport,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 0, 1000, 0, cb),
];
execute(device, actions, callback);
},
}, |
Hi, I tried it and it's working, I have this now:
I do have this messages too:
Device does work properly now so I will ignore it. Should I introduce a PR for this ? |
If you make a pr, it will be automatically added to the list of supported devices on the next zig ee2mqtt release. |
PR submitted #413 |
merged, thanks! |
hi there...it is working on edge version of the addon...but it does not refresh readings... |
hello also it only updates if i restart zigbee2mqtt. what can i do? |
Hi,
I have a SmartThings multipurpose sensor and I am trying to add support for this device.
This device should report the following information:
Currenlty I copied an existing device (multiv4) and it somehow working as I have the contact info and temperature. Unfortunately I don't see any vibration info (need to run the sniffer to check if this is really working).
But I do have some issues:
1- When I open the contact, I get two messages at the same time, one saying "contact false" and the second "contact true".
2- I also have a message for ssIasZone and I don't know what to do with it, it is logged each time the contact state changes:
I would like to understand how to configure the different config files for devices but the help page does not exaplain everything in details, where can I find a more complete example ?
Thank you,
Fabian
The text was updated successfully, but these errors were encountered: