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:
Longevity of driver support. As much as I love mariano’s work, I can’t assume he will be around forever.
For all other users who just add the shades to their smartthings hub, without knowing all of the complexities of custom edge drivers.
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.