FritzApi v2.0.0-rc.0 FritzApi.Switch 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

Link to this section Summary

Link to this section Types

Specs

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