Derives the Relax mode status from an existing DeviceInfo response. This is a pure function that extracts data without API calls.
The device info response object.
const info = await api.deviceInfo(token, mac);const isRelaxActive = deriveRelax(info); Copy
const info = await api.deviceInfo(token, mac);const isRelaxActive = deriveRelax(info);
Derives the Relax mode status from an existing DeviceInfo response. This is a pure function that extracts data without API calls.