Public Member Functions | |
| None | __init__ (self, HomeAssistant hass, str host, int port, Script|None on_action=None, str|None app_id=None, str|None encryption_key=None) |
| None | async_create_remote_control (self, bool during_setup=False) |
| dict[str, Any]|None | async_get_device_info (self) |
| None | async_play_media (self, MediaType media_type, str media_id) |
| None | async_send_key (self, Keys|str key) |
| None | async_set_mute (self, bool enable) |
| None | async_set_volume (self, float volume) |
| None | async_turn_off (self) |
| None | async_turn_on (self, Context|None context) |
| None | async_update (self) |
Public Attributes | |
| available | |
| muted | |
| state | |
| volume | |
Private Member Functions | |
| _R|None | _Ts (self, Callable[[*_Ts], _R] func, **_Ts args) |
| None | _update (self) |
Private Attributes | |
| _app_id | |
| _control | |
| _encryption_key | |
| _hass | |
| _host | |
| _on_action | |
| _port | |
The Remote class. It stores the TV properties and the remote control connection itself.
Definition at line 126 of file __init__.py.
| None homeassistant.components.panasonic_viera.Remote.__init__ | ( | self, | |
| HomeAssistant | hass, | ||
| str | host, | ||
| int | port, | ||
| Script | None | on_action = None, |
||
| str | None | app_id = None, |
||
| str | None | encryption_key = None |
||
| ) |
Initialize the Remote class.
Definition at line 129 of file __init__.py.
|
private |
Handle errors from func, set available and reconnect if needed.
Definition at line 246 of file __init__.py.
|
private |
Retrieve the latest data.
Definition at line 189 of file __init__.py.
| None homeassistant.components.panasonic_viera.Remote.async_create_remote_control | ( | self, | |
| bool | during_setup = False |
||
| ) |
Create remote control.
Definition at line 156 of file __init__.py.
| dict[str, Any] | None homeassistant.components.panasonic_viera.Remote.async_get_device_info | ( | self | ) |
Return device info.
Definition at line 238 of file __init__.py.
| None homeassistant.components.panasonic_viera.Remote.async_play_media | ( | self, | |
| MediaType | media_type, | ||
| str | media_id | ||
| ) |
Play media.
Definition at line 232 of file __init__.py.
| None homeassistant.components.panasonic_viera.Remote.async_send_key | ( | self, | |
| Keys | str | key | ||
| ) |
Send a key to the TV and handle exceptions.
Definition at line 195 of file __init__.py.
| None homeassistant.components.panasonic_viera.Remote.async_set_mute | ( | self, | |
| bool | enable | ||
| ) |
Set mute based on 'enable'.
Definition at line 221 of file __init__.py.
| None homeassistant.components.panasonic_viera.Remote.async_set_volume | ( | self, | |
| float | volume | ||
| ) |
Set volume level, range 0..1.
Definition at line 226 of file __init__.py.
| None homeassistant.components.panasonic_viera.Remote.async_turn_off | ( | self | ) |
Turn off the TV.
Definition at line 214 of file __init__.py.
| None homeassistant.components.panasonic_viera.Remote.async_turn_on | ( | self, | |
| Context | None | context | ||
| ) |
Turn on the TV.
Definition at line 205 of file __init__.py.
| None homeassistant.components.panasonic_viera.Remote.async_update | ( | self | ) |
Update device data.
Definition at line 181 of file __init__.py.
|
private |
Definition at line 146 of file __init__.py.
|
private |
Definition at line 164 of file __init__.py.
|
private |
Definition at line 147 of file __init__.py.
|
private |
Definition at line 139 of file __init__.py.
|
private |
Definition at line 141 of file __init__.py.
|
private |
Definition at line 144 of file __init__.py.
|
private |
Definition at line 142 of file __init__.py.
| homeassistant.components.panasonic_viera.Remote.available |
Definition at line 174 of file __init__.py.
| homeassistant.components.panasonic_viera.Remote.muted |
Definition at line 192 of file __init__.py.
| homeassistant.components.panasonic_viera.Remote.state |
Definition at line 173 of file __init__.py.
| homeassistant.components.panasonic_viera.Remote.volume |
Definition at line 193 of file __init__.py.