Power, power saving, and set-level information.
{:ok, :active} = Bravia.System.get_power_status(tv)
:ok = Bravia.System.set_power_saving_mode(tv, :picture_off):picture_off is worth knowing about: it blanks the panel while leaving the
television running, which is a cheaper way to darken a room than turning the set
off and waiting for it to boot again.
Summary
Functions
Reads the television's interface and product information.
Reads the current power saving mode.
Reads whether the television is on (:active) or in standby (:standby).
Reads model, serial, MAC address, and firmware version. Requires a PSK.
Reads whether Wake-on-LAN is enabled.
Reboots the television.
Sets the power saving mode to :off, :low, :high, or :picture_off.
Turns the television on or off.
Enables or disables Wake-on-LAN.
Types
Functions
@spec get_interface_information(Bravia.Client.t()) :: {:ok, map()} | {:error, Bravia.Error.t()}
Reads the television's interface and product information.
@spec get_power_saving_mode(Bravia.Client.t()) :: {:ok, power_saving_mode() | String.t()} | {:error, Bravia.Error.t()}
Reads the current power saving mode.
@spec get_power_status(Bravia.Client.t()) :: {:ok, :active | :standby | String.t()} | {:error, Bravia.Error.t()}
Reads whether the television is on (:active) or in standby (:standby).
@spec get_system_information(Bravia.Client.t()) :: {:ok, map()} | {:error, Bravia.Error.t()}
Reads model, serial, MAC address, and firmware version. Requires a PSK.
@spec get_wol_mode(Bravia.Client.t()) :: {:ok, boolean()} | {:error, Bravia.Error.t()}
Reads whether Wake-on-LAN is enabled.
@spec request_reboot(Bravia.Client.t()) :: :ok | {:error, Bravia.Error.t()}
Reboots the television.
@spec set_power_saving_mode(Bravia.Client.t(), power_saving_mode() | String.t()) :: :ok | {:error, Bravia.Error.t()}
Sets the power saving mode to :off, :low, :high, or :picture_off.
A raw string is passed through untouched, for modes a future model might add.
@spec set_power_status(Bravia.Client.t(), boolean()) :: :ok | {:error, Bravia.Error.t()}
Turns the television on or off.
@spec set_wol_mode(Bravia.Client.t(), boolean()) :: :ok | {:error, Bravia.Error.t()}
Enables or disables Wake-on-LAN.