Derives the Easy Timer state 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 timer = deriveEasyTimer(info);console.log(`Timer active: ${timer.active}, Time: ${timer.time} minutes`); Copy
const info = await api.deviceInfo(token, mac);const timer = deriveEasyTimer(info);console.log(`Timer active: ${timer.active}, Time: ${timer.time} minutes`);
Derives the Easy Timer state from an existing DeviceInfo response. This is a pure function that extracts data without API calls.