Static Public Attributes | |
| None | |
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 | |
Private Member Functions | |
| None | _handle_coordinator_update (self) |
Private Attributes | |
| _attr_device_info | |
| _attr_unique_id | |
| _last_update | |
| _player | |
| _previous_media_position | |
| _query_result | |
Static Private Attributes | |
| bool | _attr_has_entity_name = True |
| _attr_name = None | |
| tuple | _attr_supported_features |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.components.squeezebox.coordinator.SqueezeBoxPlayerUpdateCoordinator | |
| available | |
| player | |
| server_uuid | |
Public Attributes inherited from homeassistant.helpers.update_coordinator.DataUpdateCoordinator | |
| always_update | |
| config_entry | |
| data | |
| hass | |
| last_exception | |
| last_update_success | |
| logger | |
| name | |
| setup_method | |
| update_interval | |
| update_method | |
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 | |
Representation of the media player features of a SqueezeBox device. Wraps a pysqueezebox.Player() object.
Definition at line 156 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.__init__ | ( | self, | |
| SqueezeBoxPlayerUpdateCoordinator | coordinator | ||
| ) |
Initialize the SqueezeBox device.
Definition at line 187 of file media_player.py.
|
private |
Handle updated data from the coordinator.
Definition at line 219 of file media_player.py.
| BrowseMedia homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_browse_media | ( | self, | |
| MediaType | str | None | media_content_type = None, |
||
| str | None | media_content_id = None |
||
| ) |
Implement the websocket media browsing helper.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 565 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_call_method | ( | self, | |
| str | command, | ||
| list[str] | None | parameters = None |
||
| ) |
Call Squeezebox JSON/RPC method. Additional parameters are added to the command to form the list of positional parameters (p0, p1..., pN) passed to JSON/RPC server.
Definition at line 512 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_call_query | ( | self, | |
| str | command, | ||
| list[str] | None | parameters = None |
||
| ) |
Call Squeezebox JSON/RPC method where we care about the result. Additional parameters are added to the command to form the list of positional parameters (p0, p1..., pN) passed to JSON/RPC server.
Definition at line 525 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_clear_playlist | ( | self | ) |
Send the media player the command for clear playlist.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 507 of file media_player.py.
| tuple[bytes | None, str | None] homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_get_browse_image | ( | self, | |
| MediaType | str | media_content_type, | ||
| str | media_content_id, | ||
| str | None | media_image_id = None |
||
| ) |
Get album art from Squeezebox server.
Definition at line 592 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_join_players | ( | self, | |
| list[str] | group_members | ||
| ) |
Add other Squeezebox players to this player's sync group. If the other player is a member of a sync group, it will leave the current sync group without asking.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 540 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_media_next_track | ( | self | ) |
Send next track command.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 410 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_media_pause | ( | self | ) |
Send pause command to media player.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 405 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_media_play | ( | self | ) |
Send play command to media player.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 400 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_media_play_pause | ( | self | ) |
Send pause command to media player.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 395 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_media_previous_track | ( | self | ) |
Send next track command.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 415 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_media_seek | ( | self, | |
| float | position | ||
| ) |
Send seek command.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 420 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_media_stop | ( | self | ) |
Send stop command to media player.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 390 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_mute_volume | ( | self, | |
| bool | mute | ||
| ) |
Mute (true) or unmute (false) media player.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 385 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_play_media | ( | self, | |
| MediaType | str | media_type, | ||
| str | media_id, | ||
| **Any | kwargs | ||
| ) |
Send the play_media command to the media player.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 430 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_set_repeat | ( | self, | |
| RepeatMode | repeat | ||
| ) |
Set the repeat mode.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 489 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_set_shuffle | ( | self, | |
| bool | shuffle | ||
| ) |
Enable/disable shuffle mode.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 501 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_set_volume_level | ( | self, | |
| float | volume | ||
| ) |
Set volume level, range 0..1.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 379 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_turn_off | ( | self | ) |
Turn off media player.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 364 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_turn_on | ( | self | ) |
Turn the media player on.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 425 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_unjoin_player | ( | self | ) |
Unsync this Squeezebox player.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 560 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_volume_down | ( | self | ) |
Volume down media player.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 374 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_volume_up | ( | self | ) |
Volume up media player.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 369 of file media_player.py.
| None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.async_will_remove_from_hass | ( | self | ) |
Remove from list of known players when removed from hass.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 252 of file media_player.py.
| bool homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.available | ( | self | ) |
Return True if entity is available.
Reimplemented from homeassistant.helpers.update_coordinator.CoordinatorEntity.
Definition at line 227 of file media_player.py.
| dict[str, Any] homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.extra_state_attributes | ( | self | ) |
Return device-specific attributes.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 232 of file media_player.py.
| list[str] homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.group_members | ( | self | ) |
List players we are synced with.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 346 of file media_player.py.
| bool homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.is_volume_muted | ( | self | ) |
Return true if volume is muted.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 267 of file media_player.py.
| str | None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.media_album_name | ( | self | ) |
Album of current playing media.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 326 of file media_player.py.
| str | None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.media_artist | ( | self | ) |
Artist of current playing media.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 321 of file media_player.py.
| str | None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.media_channel | ( | self | ) |
Channel (e.g. webradio name) of current playing media.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 316 of file media_player.py.
| str | None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.media_content_id | ( | self | ) |
Content ID of current playing media.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 272 of file media_player.py.
| MediaType | None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.media_content_type | ( | self | ) |
Content type of current playing media.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 282 of file media_player.py.
| int homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.media_duration | ( | self | ) |
Duration of current playing media in seconds.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 291 of file media_player.py.
| str | None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.media_image_url | ( | self | ) |
Image url of current playing media.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 306 of file media_player.py.
| int homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.media_position | ( | self | ) |
Position of current playing media in seconds.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 296 of file media_player.py.
| datetime | None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.media_position_updated_at | ( | self | ) |
Last time status was updated.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 301 of file media_player.py.
| str | None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.media_title | ( | self | ) |
Title of current playing media.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 311 of file media_player.py.
| dict | bool homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.query_result | ( | self | ) |
Return the result from the call_query service.
Definition at line 360 of file media_player.py.
| RepeatMode homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.repeat | ( | self | ) |
Repeat setting.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 331 of file media_player.py.
| bool homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.shuffle | ( | self | ) |
Boolean if shuffle is enabled.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 340 of file media_player.py.
| MediaPlayerState | None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.state | ( | self | ) |
Return the state of the device.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 241 of file media_player.py.
| float | None homeassistant.components.squeezebox.media_player.SqueezeBoxMediaPlayerEntity.volume_level | ( | self | ) |
Volume level of the media player (0..1).
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 259 of file media_player.py.
|
private |
Definition at line 209 of file media_player.py.
|
staticprivate |
Definition at line 183 of file media_player.py.
|
staticprivate |
Definition at line 184 of file media_player.py.
|
staticprivate |
Definition at line 164 of file media_player.py.
|
private |
Definition at line 198 of file media_player.py.
|
private |
Definition at line 223 of file media_player.py.
|
private |
Definition at line 194 of file media_player.py.
|
private |
Definition at line 197 of file media_player.py.
|
private |
Definition at line 536 of file media_player.py.
|
static |
Definition at line 185 of file media_player.py.