Does anyone know how to get the battery level of Lightify dimmer switches? I’d like to monitor that and send notifications when one gets too low. Home Assistant discovers my Lightify switches through the Lightify hub as light devices, which is OK because I have the word “switch” in their names to differentiate them from actual lights. i.e. the entity ID looks like this: light.switch_kitchen But if I look at the state in the dev console, there is no battery info, just on/off state, brightness, mireds, etc.
unfortunately from all the osram lightify devices (lights, switches, motion detectors, plugs) only lights are implemented.
motion sensor also kind of work, if you treat them as a light and look in the colors r and g, which are 1 if motion is detected and 0 otherwise.
There is unfortunately no good official API and the implementation is based on reverse engineering. Everything which we know about the protocol can be found here:
I don’t see the word “battery” on that page, so it looks a bit bleak, even if you wanted to implement this feature.
I personally have a lightify motion sensor, which also has this battery state. However the official app always shows 50%. For half a year, unchanged. That can’t be right. So I guess it’s not really worth implementing this anyway. Does the battery level of you switch change over time in the official lightify app?
No, in the official Lightify app the dimmer’s battery status either says, “Battery very good” or it’s an empty string.