Set Sleep Period

Menu: exSleepPeriod

Flutter Example:

/// Set sleep period event
setSleepPeriod(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_set_sleep_period),

/// Set sleep period
libManager.send(evt: CmdEvtType.setSleepPeriod, json: jsonEncode(json));

JSON Fields Sent by the App:

Field Name Field Type Field Description
on_off int Switch
1 On
0 Off
start_hour int Start time (hour)
start_minute int Start time (minute)
end_hour int End time (hour)
end_minute int End time (minute)

Example:

{
  "on_off": 1,
  "start_hour": 23,
  "start_minute": 0,
  "end_hour": 8,
  "end_minute": 0
}

JSON Fields Received by the App:

Field Name Field Type Field Description
status_code int 0 for success, non-zero for failure

Example:

{
  "status_code": 0
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2025-04-30 09:32:44

results matching ""

    No results matching ""