Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.forked_daapd.const Namespace Reference

Variables

int CALLBACK_TIMEOUT = 8
 
dictionary CAN_PLAY_TYPE
 
string CONF_LIBRESPOT_JAVA_PORT = "librespot_java_port"
 
string CONF_MAX_PLAYLISTS = "max_playlists"
 
string CONF_TTS_PAUSE_TIME = "tts_pause_time"
 
string CONF_TTS_VOLUME = "tts_volume"
 
int DEFAULT_PORT = 3689
 
string DEFAULT_SERVER_NAME = "My Server"
 
float DEFAULT_TTS_PAUSE_TIME = 1.2
 
float DEFAULT_TTS_VOLUME = 0.8
 
float DEFAULT_UNMUTE_VOLUME = 0.6
 
string DOMAIN = "forked_daapd"
 
string FD_NAME = "OwnTone"
 
string HASS_DATA_REMOVE_LISTENERS_KEY = "REMOVE_LISTENERS"
 
string HASS_DATA_UPDATER_KEY = "UPDATER"
 
dictionary KNOWN_PIPES = {"librespot-java"}
 
dictionary PIPE_FUNCTION_MAP
 
string SIGNAL_ADD_ZONES = "forked-daapd_add_zones {}"
 
string SIGNAL_CONFIG_OPTIONS_UPDATE = "forked-daapd_config_options_update {}"
 
string SIGNAL_UPDATE_DATABASE = "forked-daapd_update_database {}"
 
string SIGNAL_UPDATE_MASTER = "forked-daapd_update_master {}"
 
string SIGNAL_UPDATE_OUTPUTS = "forked-daapd_update_outputs {}"
 
string SIGNAL_UPDATE_PLAYER = "forked-daapd_update_player {}"
 
string SIGNAL_UPDATE_QUEUE = "forked-daapd_update_queue {}"
 
string SOURCE_NAME_CLEAR = "Clear queue"
 
string SOURCE_NAME_DEFAULT = "Default (no pipe)"
 
dictionary STARTUP_DATA
 
tuple SUPPORTED_FEATURES
 
tuple SUPPORTED_FEATURES_ZONE
 
int TTS_TIMEOUT = 20
 
string URI_SCHEMA = "owntone"
 

Detailed Description

Const for forked-daapd.

Variable Documentation

◆ CALLBACK_TIMEOUT

int homeassistant.components.forked_daapd.const.CALLBACK_TIMEOUT = 8

Definition at line 5 of file const.py.

◆ CAN_PLAY_TYPE

dictionary homeassistant.components.forked_daapd.const.CAN_PLAY_TYPE
Initial value:
1 = {
2  "audio/mp4",
3  "audio/aac",
4  "audio/mpeg",
5  "audio/flac",
6  "audio/ogg",
7  "audio/x-ms-wma",
8  "audio/aiff",
9  "audio/wav",
10  MediaType.TRACK,
11  MediaType.PLAYLIST,
12  MediaType.ARTIST,
13  MediaType.ALBUM,
14  MediaType.GENRE,
15  MediaType.MUSIC,
16  MediaType.EPISODE,
17  "show", # this is a spotify constant
18 }

Definition at line 6 of file const.py.

◆ CONF_LIBRESPOT_JAVA_PORT

string homeassistant.components.forked_daapd.const.CONF_LIBRESPOT_JAVA_PORT = "librespot_java_port"

Definition at line 24 of file const.py.

◆ CONF_MAX_PLAYLISTS

string homeassistant.components.forked_daapd.const.CONF_MAX_PLAYLISTS = "max_playlists"

Definition at line 25 of file const.py.

◆ CONF_TTS_PAUSE_TIME

string homeassistant.components.forked_daapd.const.CONF_TTS_PAUSE_TIME = "tts_pause_time"

Definition at line 26 of file const.py.

◆ CONF_TTS_VOLUME

string homeassistant.components.forked_daapd.const.CONF_TTS_VOLUME = "tts_volume"

Definition at line 27 of file const.py.

◆ DEFAULT_PORT

int homeassistant.components.forked_daapd.const.DEFAULT_PORT = 3689

Definition at line 28 of file const.py.

◆ DEFAULT_SERVER_NAME

string homeassistant.components.forked_daapd.const.DEFAULT_SERVER_NAME = "My Server"

Definition at line 29 of file const.py.

◆ DEFAULT_TTS_PAUSE_TIME

float homeassistant.components.forked_daapd.const.DEFAULT_TTS_PAUSE_TIME = 1.2

Definition at line 30 of file const.py.

◆ DEFAULT_TTS_VOLUME

float homeassistant.components.forked_daapd.const.DEFAULT_TTS_VOLUME = 0.8

Definition at line 31 of file const.py.

◆ DEFAULT_UNMUTE_VOLUME

float homeassistant.components.forked_daapd.const.DEFAULT_UNMUTE_VOLUME = 0.6

Definition at line 32 of file const.py.

◆ DOMAIN

string homeassistant.components.forked_daapd.const.DOMAIN = "forked_daapd"

Definition at line 33 of file const.py.

◆ FD_NAME

string homeassistant.components.forked_daapd.const.FD_NAME = "OwnTone"

Definition at line 34 of file const.py.

◆ HASS_DATA_REMOVE_LISTENERS_KEY

string homeassistant.components.forked_daapd.const.HASS_DATA_REMOVE_LISTENERS_KEY = "REMOVE_LISTENERS"

Definition at line 35 of file const.py.

◆ HASS_DATA_UPDATER_KEY

string homeassistant.components.forked_daapd.const.HASS_DATA_UPDATER_KEY = "UPDATER"

Definition at line 36 of file const.py.

◆ KNOWN_PIPES

dictionary homeassistant.components.forked_daapd.const.KNOWN_PIPES = {"librespot-java"}

Definition at line 37 of file const.py.

◆ PIPE_FUNCTION_MAP

dictionary homeassistant.components.forked_daapd.const.PIPE_FUNCTION_MAP
Initial value:
1 = {
2  "librespot-java": {
3  "async_media_play": "player_resume",
4  "async_media_pause": "player_pause",
5  "async_media_stop": "player_pause",
6  "async_media_previous_track": "player_prev",
7  "async_media_next_track": "player_next",
8  }
9 }

Definition at line 38 of file const.py.

◆ SIGNAL_ADD_ZONES

string homeassistant.components.forked_daapd.const.SIGNAL_ADD_ZONES = "forked-daapd_add_zones {}"

Definition at line 47 of file const.py.

◆ SIGNAL_CONFIG_OPTIONS_UPDATE

string homeassistant.components.forked_daapd.const.SIGNAL_CONFIG_OPTIONS_UPDATE = "forked-daapd_config_options_update {}"

Definition at line 48 of file const.py.

◆ SIGNAL_UPDATE_DATABASE

string homeassistant.components.forked_daapd.const.SIGNAL_UPDATE_DATABASE = "forked-daapd_update_database {}"

Definition at line 49 of file const.py.

◆ SIGNAL_UPDATE_MASTER

string homeassistant.components.forked_daapd.const.SIGNAL_UPDATE_MASTER = "forked-daapd_update_master {}"

Definition at line 50 of file const.py.

◆ SIGNAL_UPDATE_OUTPUTS

string homeassistant.components.forked_daapd.const.SIGNAL_UPDATE_OUTPUTS = "forked-daapd_update_outputs {}"

Definition at line 51 of file const.py.

◆ SIGNAL_UPDATE_PLAYER

string homeassistant.components.forked_daapd.const.SIGNAL_UPDATE_PLAYER = "forked-daapd_update_player {}"

Definition at line 52 of file const.py.

◆ SIGNAL_UPDATE_QUEUE

string homeassistant.components.forked_daapd.const.SIGNAL_UPDATE_QUEUE = "forked-daapd_update_queue {}"

Definition at line 53 of file const.py.

◆ SOURCE_NAME_CLEAR

string homeassistant.components.forked_daapd.const.SOURCE_NAME_CLEAR = "Clear queue"

Definition at line 54 of file const.py.

◆ SOURCE_NAME_DEFAULT

string homeassistant.components.forked_daapd.const.SOURCE_NAME_DEFAULT = "Default (no pipe)"

Definition at line 55 of file const.py.

◆ STARTUP_DATA

dictionary homeassistant.components.forked_daapd.const.STARTUP_DATA
Initial value:
1 = {
2  "player": {
3  "state": "stop",
4  "repeat": "off",
5  "consume": False,
6  "shuffle": False,
7  "volume": 0,
8  "item_id": 0,
9  "item_length_ms": 0,
10  "item_progress_ms": 0,
11  },
12  "queue": {"version": 0, "count": 0, "items": []},
13  "outputs": [],
14 }

Definition at line 56 of file const.py.

◆ SUPPORTED_FEATURES

tuple homeassistant.components.forked_daapd.const.SUPPORTED_FEATURES
Initial value:
1 = (
2  MediaPlayerEntityFeature.PLAY
3  | MediaPlayerEntityFeature.PAUSE
4  | MediaPlayerEntityFeature.STOP
5  | MediaPlayerEntityFeature.SEEK
6  | MediaPlayerEntityFeature.VOLUME_SET
7  | MediaPlayerEntityFeature.VOLUME_MUTE
8  | MediaPlayerEntityFeature.PREVIOUS_TRACK
9  | MediaPlayerEntityFeature.NEXT_TRACK
10  | MediaPlayerEntityFeature.CLEAR_PLAYLIST
11  | MediaPlayerEntityFeature.SELECT_SOURCE
12  | MediaPlayerEntityFeature.SHUFFLE_SET
13  | MediaPlayerEntityFeature.TURN_ON
14  | MediaPlayerEntityFeature.TURN_OFF
15  | MediaPlayerEntityFeature.PLAY_MEDIA
16  | MediaPlayerEntityFeature.BROWSE_MEDIA
17  | MediaPlayerEntityFeature.MEDIA_ANNOUNCE
18  | MediaPlayerEntityFeature.MEDIA_ENQUEUE
19 )

Definition at line 70 of file const.py.

◆ SUPPORTED_FEATURES_ZONE

tuple homeassistant.components.forked_daapd.const.SUPPORTED_FEATURES_ZONE
Initial value:
1 = (
2  MediaPlayerEntityFeature.VOLUME_SET
3  | MediaPlayerEntityFeature.VOLUME_MUTE
4  | MediaPlayerEntityFeature.TURN_ON
5  | MediaPlayerEntityFeature.TURN_OFF
6 )

Definition at line 89 of file const.py.

◆ TTS_TIMEOUT

int homeassistant.components.forked_daapd.const.TTS_TIMEOUT = 20

Definition at line 95 of file const.py.

◆ URI_SCHEMA

string homeassistant.components.forked_daapd.const.URI_SCHEMA = "owntone"

Definition at line 96 of file const.py.