Hierarchy

  • default
    • BulbSchedule

Constructors

Properties

apiModuleName: string
childId?: string
device: Bulb
nextAction: undefined | ScheduleNextActionResponse

Methods

  • Adds Schedule rule.

    Sends schedule.add_rule command and returns rule id.

    Parameters

    Returns Promise<{
        id: string;
    }>

    parsed JSON response

  • Deletes All Schedule Rules.

    Sends schedule.delete_all_rules command. Supports childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

  • Deletes Schedule Rule.

    Sends schedule.delete_rule command. Supports childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

  • Erase Usage Statistics.

    Sends schedule.erase_runtime_stat command. Supports childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

  • Get Daily Usage Statistics.

    Sends schedule.get_daystat command. Supports childId.

    Parameters

    • year: number
    • month: number
    • Optional sendOptions: SendOptions

    Returns Promise<unknown>

    parsed JSON response

  • Get Monthly Usage Statistics.

    Sends schedule.get_monthstat command. Supports childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

  • Enables or Disables Schedule Rules.

    Sends schedule.set_overall_enable command. Supports childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

Generated using TypeDoc