Smartthings Shades / window treatment driver bug

Hi,

At some point, some of my IKEA smart shades were not part of the regular Samsung window shades driver, so I have been using mariano’s for years. Recently I checked again and it is now supported by the Samsung drivers. When I switch from Mariano’s to the Samsung drivers, the battery percentage gets cut in half. A freshly charged battery shows 50%, not 100%. I did work with Mariano at the time to fix it in his driver. I believe Samsung should do the same. If a device is supported, it should be fully supported. This “may” be a case where IKEA didn’t follow the industry standard for reporting battery level, but it would be nice if the driver accounted for it, just like Mariano. The reason why I am pushing for this request, instead of just using mariano’s is for 2 reasons:

  1. Longevity of driver support. As much as I love mariano’s work, I can’t assume he will be around forever.
  2. For all other users who just add the shades to their smartthings hub, without knowing all of the complexities of custom edge drivers.

Here are screenshots of my device in question.

Just out of interest, what kind of battery between charge longevity do you get from your Ikea blinds running directly through ST?

The relevant part in MC’s driver:

if device:get_manufacturer() ~= "IKEA of Sweden" then
  value.value = math.floor(value.value / 2.0 + 0.5)
end
  • For non-IKEA devices, it divides by 2 and rounds.

  • For IKEA devices, it does not scale the value.

Why divide by 2? In Zigbee, BatteryPercentageRemaining is commonly defined/used as a “half-integer percent” (i.e., 200 means 100%). So dividing by 2 converts it to a normal 0–100% value.

1 Like

Thanks for the investigation! What is the next step to get this addressed by the official driver?

1 Like

Writing an issue on GitHub.

Almost done with texting, going to submit it today or tomorrow.

Edit: Even better: tagging @nayelyz .

Hi @Andreas_Roedl
Could you please share the link to the issue in the GitHub repository?

Thanks!

1 Like

Haven’t submitted it yet, because I think it would make more sense if you’d create a report.

I can create an issue anyway later today, if you want. Edit: Done: issue

1 Like

This is indeed a bug with older IKEA firmwares that reported the battery not following the standard.

Starting in firmware 24.x it is fixed and the battery reading is correct. They did the same with the buttons.

2 Likes