Rename the DEVSTATE() function to DEVICE_STATE() to better conform to how other