@mike.maxwell the refresh in the driver does that talk to the device and get it's current state or is it requesting the current state of the driver?
I have a innr lamp that doesn't seem to change to off but is off. However even when it's off and you send a OFF which changes it's state to off. If you then press refresh it's going back to ON!? Re configured it and still the same so something odd has just started to happen.
refresh always asks the device for current attribute values, there's no such thing as refreshing the attributes in the driver as they are by definition current.
That is what I expected, however this means there is a issue. I would have said it must be the device, but as I have just tested about 4 or 5 different manufacturers and multiple different models it can't be.
They are all RGBW Lamps and they are doing the same, I think the issue is the driver. They are all using the advanced RGBW driver
If the device is off and you hit refresh in the device page, it reports as switch state ON when the lamps are off. So I think you might have it backwards in the driver.
Interesting I am seeing the same thing with a ledvance bulb but was blaming the device. Worse, once refresh is called, there is no getting the device attribute to go back to off with the off command, need to do a set level to 0 to get it to go back to off. And then on/off appears to work again until the next time refresh is called.
It looks like these specific bulbs aren't going to work with the advanced driver since it processes data differently,
Now having said that we should be processing the read attribute response from the refresh command and it sure looks like we aren't, so I'll take a look at that.
Actually its something different, the color values being returned are creating an on event for some reason, they shouldn't
simple fix, and it will fix all of them, this really is the result of adding the manual refresh command.
At this point I'm pretty sure it has nothing to do with a specific bulb.
Can you post a screen shot of the values contained in state along with a new set of live logs?
I need the state values both before and after the refresh command is executed, Thanks!
I'm seeing the same behavior on 2.3.8.128 with Ledvance rgbw bulbs using the advanced rgbw zigbee driver. I don't see this happen with the Generic rgbw zigbee driver.