Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge Class Reference
Inheritance diagram for homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge:
[legend]
Collaboration diagram for homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge:
[legend]

Public Member Functions

None __init__ (self, HomeAssistant hass, str method, str host, int|None port=None, Mapping[str, Any]|None entry_data=None)
 
dict[str, Any]|None async_device_info (self)
 
None async_send_keys (self, list[str] keys)
 
str async_try_connect (self)
 

Public Attributes

 port
 
 session_id
 
 token
 

Private Member Functions

SamsungTVEncryptedWSAsyncRemote|None _async_get_remote_under_lock (self)
 
None _async_send_power_off (self)
 

Private Attributes

 _device_info
 
 _model
 
 _power_off_warning_logged
 
 _remote
 
 _rest_api_port
 
 _short_model
 

Detailed Description

The Bridge for Encrypted WebSocket TVs (v1 - J/H models).

Definition at line 695 of file bridge.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge.__init__ (   self,
HomeAssistant  hass,
str  method,
str  host,
int | None   port = None,
Mapping[str, Any] | None   entry_data = None 
)
Initialize Bridge.

Definition at line 700 of file bridge.py.

Member Function Documentation

◆ _async_get_remote_under_lock()

SamsungTVEncryptedWSAsyncRemote | None homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge._async_get_remote_under_lock (   self)
private
Create or return a remote control instance.

Definition at line 788 of file bridge.py.

◆ _async_send_power_off()

None homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge._async_send_power_off (   self)
private
Send power off command to remote.

Definition at line 813 of file bridge.py.

◆ async_device_info()

dict[str, Any] | None homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge.async_device_info (   self)
Try to gather infos of this TV.

Definition at line 756 of file bridge.py.

◆ async_send_keys()

None homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge.async_send_keys (   self,
list[str]  keys 
)
Send a list of keys using websocket protocol.

Definition at line 782 of file bridge.py.

◆ async_try_connect()

str homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge.async_try_connect (   self)
Try to connect to the Websocket TV.

Definition at line 723 of file bridge.py.

Member Data Documentation

◆ _device_info

homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge._device_info
private

Definition at line 776 of file bridge.py.

◆ _model

homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge._model
private

Definition at line 716 of file bridge.py.

◆ _power_off_warning_logged

homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge._power_off_warning_logged
private

Definition at line 830 of file bridge.py.

◆ _remote

homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge._remote
private

Definition at line 796 of file bridge.py.

◆ _rest_api_port

homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge._rest_api_port
private

Definition at line 777 of file bridge.py.

◆ _short_model

homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge._short_model
private

Definition at line 718 of file bridge.py.

◆ port

homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge.port

Definition at line 725 of file bridge.py.

◆ session_id

homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge.session_id

Definition at line 715 of file bridge.py.

◆ token

homeassistant.components.samsungtv.bridge.SamsungTVEncryptedBridge.token

Definition at line 714 of file bridge.py.


The documentation for this class was generated from the following file: