View Source FritzApi.Switch (fritz_api v3.0.0)

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

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