-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
2018 Samsung SmartThings MultiPurpose Sensor not reporting battery #4124
Comments
Can you share the |
I would love to but for some reason when I try to add the device again now it's not adding. Tried the edge version and literally nothing in the logs. What's weird is it pairs to smartthings no problem. Any ideas? |
Nevermind, got it, needed to restart my whole pi - odd? Here it is:
|
Can you try with: {
zigbeeModel: ['motion'],
model: 'IM6001-MTP01',
vendor: 'SmartThings',
description: 'Motion sensor (2018 model)',
supports: 'occupancy and temperature',
fromZigbee: [
fz.temperature,
fz.ignore_iaszone_report,
fz.ias_occupancy_alarm_1, fz.battery,
],
toZigbee: [],
meta: {configureKey: 1},
configure: async (device, coordinatorEndpoint) => {
const endpoint = device.getEndpoint(1);
await bind(endpoint, coordinatorEndpoint, ['msTemperatureMeasurement', 'genPowerCfg']);
await configureReporting.temperature(endpoint);
await configureReporting.batteryPercentageRemaining(endpoint);
},
}, Force a manual configure via https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttbridgeconfigure and check the log if its ok (might need to wakeup the device before executing the command). If it's OK I expect the battery to be reported within 30 hours. |
I am so sorry I actually quoted the wrong device at the beginning of this thread, it should have been:
Does the same still apply anyway with the 2 changes? And 30 hours? When I changed to the older sensor config it showed battery level instantly once adding the device... |
I have been playing around with the code and the following seems to be working including battery and temperature although it did take 10mins before the temperature started showing and working:
As per your post/suggestion above I'm going to leave the following code going and see how it goes:
|
Can confirm battery is now showing after around 20 hours with the following:
Could it be possible battery was working before I just wasn't waiting long enough? |
Possible, but anyway this is a better config then before (because we now get the percentage remaining instead of the voltage). Updated the code. Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html) |
Brilliant, thanks, will this also be updated in the release branch as this is what I use as my daily driver? Also what is the reason for it taking to long to get the battery reading? And is this delay only when adding a new device? Or will there be a delay if replacing the battery for instance? Thanks! |
@liamstears this will be in the next zibee2mqtt release (1.5 weeks from now). Reporting of battery is limited since this value to save battery :) |
With my quick tests I'm sure this will be a quick fix for you
It is correctly identified as the correct device which you have listed as:
However battery does not work but all other functions do.
For a quick test I ran it with the configuration for the 2015 model here:
With this the battery is correctly reported but the temperature is not
I do not know enough about how this code works to combine the 2 to get this working 100% but I am sure you will know how and can quickly resolve this problem for me...
The text was updated successfully, but these errors were encountered: