FritzApi.Switch (fritz_api v3.1.0)

Copy Markdown View Source

A Switch

Properties

  • state: switching state; either true, false or nil
  • mode: :auto if in timer switch mode, otherwise :manual; can also be nil if undefined / unknown
  • lock: state of the shift lock (via UI/API); either true, false or nil
  • devicelock: state of the shift lock (via hardware button); either true, false or nil

Summary

Types

t()

@type t() :: %FritzApi.Switch{
  devicelock: boolean() | nil,
  lock: boolean() | nil,
  mode: :manual | :auto | nil,
  state: boolean() | nil
}