WebThingsIO / zwave-adapter

Z-Wave adapter add-on for WebThings Gateway
Mozilla Public License 2.0
15 stars 20 forks source link

Support for Aeotec SW098-A52 LED Bulb #9

Open twobraids opened 6 years ago

twobraids commented 6 years ago

Support for this device is rather dysfunctional. In my initial test of the device, pairing detected it but as a multilevel switch. It behaved oddly, with the on/off button changing the reported "level" as one of several percentages that seemed to have little to do with the actual state of the bulb. The level indicator did change the brightness level of the bulb appropriately when the bulb was lit. With the bulb at 100%, the OFF function changed the level to 13% and the bulb went out. Toggling to ON, the level raised to 92% but the light did not illuminate. Toggling to OFF, the level lowered to 26% and the bulb illuminated. This crazy behavior never repeated the same series with continued toggling.

There is no control for the color at all.

I removed the bulb from the gateway with the right click.

Since my current Things Gateway installation had been used to check other devices, I decided a fresh install would be appropriate so I could capture logs exclusively for this device.

On restarting a fresh Things Gateway, I found the bulb would not pair again. Digging into the bulb instructions, I find that this bulb requires a specific switch on/off action to unpair. The Things Gateway "remove" process does not offer the opportunity to take that action. Instructions point out that factory reset happens during the exclusion process of whatever gateway is employed. Since the Things Gateway no longer acknowledges the bulb, I had no way to go back to retry the factory reset process.

Since I was using the Aeotec Z-Stick, I looked to its independent unpairing method involving removing the it from the RPi and put it into "exclusion mode" with a 2 second press of the action switch. I then toggled the light off/on three times within 2 seconds. The Z-stick confirmed an "unpairing" while the bulb confirmed a factory reset. However, the bulb will not pair again with the Things Gateway. It will pair with the Z-stick independently, but the Things Gateway doesn't acknowledge that pairing.

mrstegeman commented 6 years ago

@twobraids Is this bulb still reported incorrectly?

twobraids commented 6 years ago

The behavior of this bulb has not changed since my initial report: it's still considered to be a Multilevel Switch, and setting the levels and on/off has little to do with what the bulb actually does.