Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.plex.sensor Namespace Reference

Classes

class  PlexLibrarySectionSensor
 
class  PlexSensor
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary LIBRARY_ATTRIBUTE_TYPES
 
dictionary LIBRARY_ICON_LOOKUP
 
dictionary LIBRARY_PRIMARY_LIBTYPE
 
dictionary LIBRARY_RECENT_LIBTYPE
 

Detailed Description

Support for Plex media server monitoring.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.plex.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Plex sensor from a config entry.

Definition at line 52 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.plex.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 49 of file sensor.py.

◆ LIBRARY_ATTRIBUTE_TYPES

dictionary homeassistant.components.plex.sensor.LIBRARY_ATTRIBUTE_TYPES
Initial value:
1 = {
2  "artist": ["artist", "album"],
3  "photo": ["photoalbum"],
4  "show": ["show", "season"],
5 }

Definition at line 26 of file sensor.py.

◆ LIBRARY_ICON_LOOKUP

dictionary homeassistant.components.plex.sensor.LIBRARY_ICON_LOOKUP
Initial value:
1 = {
2  "artist": "mdi:music",
3  "movie": "mdi:movie",
4  "photo": "mdi:image",
5  "show": "mdi:television",
6 }

Definition at line 42 of file sensor.py.

◆ LIBRARY_PRIMARY_LIBTYPE

dictionary homeassistant.components.plex.sensor.LIBRARY_PRIMARY_LIBTYPE
Initial value:
1 = {
2  "show": "episode",
3  "artist": "track",
4 }

Definition at line 32 of file sensor.py.

◆ LIBRARY_RECENT_LIBTYPE

dictionary homeassistant.components.plex.sensor.LIBRARY_RECENT_LIBTYPE
Initial value:
1 = {
2  "show": "episode",
3  "artist": "album",
4 }

Definition at line 37 of file sensor.py.