Private Member Functions | |
| def | _get_current_track_index (self) |
Private Attributes | |
| _host | |
| _name | |
| _table | |
Static Private Attributes | |
| tuple | _attr_supported_features |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.components.media_player.MediaPlayerEntity | |
| state | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Static Public Attributes inherited from homeassistant.components.media_player.MediaPlayerEntity | |
| bool | |
| MediaPlayerEntityFeature | |
| None | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Representation of a Sisyphus table as a media player device.
Definition at line 43 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.__init__ | ( | self, | |
| name, | |||
| host, | |||
| table | |||
| ) |
Initialize the Sisyphus media device.
Definition at line 58 of file media_player.py.
|
private |
Definition at line 207 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_added_to_hass | ( | self | ) |
Add listeners after this object has been initialized.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 64 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_media_next_track | ( | self | ) |
Skip to next track.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 191 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_media_pause | ( | self | ) |
Pause.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 187 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_media_play | ( | self | ) |
Start playing.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 183 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_media_previous_track | ( | self | ) |
Skip to previous track.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 199 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_set_shuffle | ( | self, | |
| bool | shuffle | ||
| ) |
Change the shuffle mode of the current playlist.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 112 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_set_volume_level | ( | self, | |
| float | volume | ||
| ) |
Set playback speed (0..1).
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 179 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_turn_off | ( | self | ) |
Put the table to sleep.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 167 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_turn_on | ( | self | ) |
Wake up a sleeping table.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 163 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_update | ( | self | ) |
Force update table state.
Definition at line 68 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_volume_down | ( | self | ) |
Slow down playback.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 171 of file media_player.py.
| None homeassistant.components.sisyphus.media_player.SisyphusPlayer.async_volume_up | ( | self | ) |
Speed up playback.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 175 of file media_player.py.
| bool homeassistant.components.sisyphus.media_player.SisyphusPlayer.available | ( | self | ) |
Return true if the table is responding to heartbeats.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 78 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.media_content_id | ( | self | ) |
Return the track ID of the current track.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 132 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.media_content_type | ( | self | ) |
Return the content type currently playing; i.e. a Sisyphus track.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 127 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.media_duration | ( | self | ) |
Return the total time it will take to run this track at the current speed.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 137 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.media_image_url | ( | self | ) |
Return the URL for a thumbnail image of the current track.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 155 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.media_playlist | ( | self | ) |
Return the name of the current playlist.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 117 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.media_position | ( | self | ) |
Return the current position within the track.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 142 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.media_position_updated_at | ( | self | ) |
Return the last time we got a position update.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 150 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.media_title | ( | self | ) |
Return the title of the current track.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 122 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.name | ( | self | ) |
Return the name of the table.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 83 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.shuffle | ( | self | ) |
Return True if the current playlist is in shuffle mode.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 108 of file media_player.py.
| MediaPlayerState | None homeassistant.components.sisyphus.media_player.SisyphusPlayer.state | ( | self | ) |
Return the current state of the table; sleeping maps to off.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 88 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.unique_id | ( | self | ) |
Return the UUID of the table.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 73 of file media_player.py.
| def homeassistant.components.sisyphus.media_player.SisyphusPlayer.volume_level | ( | self | ) |
Return the current playback speed (0..1).
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 103 of file media_player.py.
|
staticprivate |
Definition at line 46 of file media_player.py.
|
private |
Definition at line 61 of file media_player.py.
|
private |
Definition at line 60 of file media_player.py.
|
private |
Definition at line 62 of file media_player.py.