I made this change from DEVICE_STATE to DEVICE_STATE_CHANGE, but I had it backwards,