backend: return device status when calling on/off/toggle via javascript