grizzly v0.8.5 Grizzly.CommandClass.ScheduleEntryLock.DailyRepeatingSet View Source

Command for working with SCHEDULE_ENTRY_LOCK command class DAILY_REPEATING_SET command

Command Options:

  • :user_id - a number for the user id
  • :slot_id - the slot id for the code
  • :action - :enable or :disable the action
  • :weekdays - List of weekdays to run schedule on
  • :start_hour - The hour of the day to start
  • :start_minute - The minute of the hour to start
  • :duration_hour - The amount of hours to keep the schedule available
  • :duration_minute - The number of minutes within the hour to keep the schedule available
  • :seq_number - The sequence number used in the Z/IP packet
  • :retries - The number of attempts to send the command (default 2)

Link to this section Summary

Link to this section Types

Link to this type

opt() View Source
opt() ::
  {:seq_number, Grizzly.seq_number()}
  | {:retries, non_neg_integer()}
  | {:user_id, non_neg_integer()}
  | {:slot_id, non_neg_integer()}
  | {:action, Grizzly.CommandClass.ScheduleEntryLock.enable_action()}
  | {:weekdays, Grizzly.CommandClass.ScheduleEntryLock.weekdays()}
  | {:start_hour, non_neg_integer()}
  | {:start_minute, non_neg_integer()}
  | {:duration_hour, non_neg_integer()}
  | {:duration_minute, non_neg_integer()}

Link to this type

t() View Source
t() :: %Grizzly.CommandClass.ScheduleEntryLock.DailyRepeatingSet{
  action: Grizzly.CommandClass.ScheduleEntryLock.enable_action(),
  duration_hour: non_neg_integer(),
  duration_minute: non_neg_integer(),
  retries: non_neg_integer(),
  seq_number: Grizzly.seq_number(),
  slot_id: non_neg_integer(),
  start_hour: non_neg_integer(),
  start_minute: non_neg_integer(),
  user_id: non_neg_integer(),
  weekdays: Grizzly.CommandClass.ScheduleEntryLock.weekdays()
}

Link to this section Functions

Link to this function

encode(command) View Source
encode(t()) :: {:ok, binary()} | {:error, Grizzly.Command.EncodeError.t()}

Callback implementation for Grizzly.Command.encode/1.

Link to this function

handle_response(command, packet) View Source
handle_response(t(), Grizzly.Packet.t()) ::
  {:continue, t()}
  | {:done, {:error, :nack_response}}
  | {:done, :ok}
  | {:retry, t()}

Callback implementation for Grizzly.Command.handle_response/2.

Link to this function

init(opts) View Source
init([opt()]) :: {:ok, t()}

Callback implementation for Grizzly.Command.init/1.