Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.sonos.speaker Namespace Reference

Classes

class  SonosSpeaker
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary EVENT_CHARGING
 
float NEVER_TIME = -1200.0
 
float RESUB_COOLDOWN_SECONDS = 10.0
 
dictionary SUBSCRIPTION_SERVICES
 
tuple SUPPORTED_VANISH_REASONS = ("powered off", "sleeping", "switch to bluetooth", "upgrade")
 
list UNUSED_DEVICE_KEYS = ["SPID", "TargetRoomName"]
 

Detailed Description

Base class for common speaker tasks.

Variable Documentation

◆ _LOGGER

homeassistant.components.sonos.speaker._LOGGER = logging.getLogger(__name__)
private

Definition at line 89 of file speaker.py.

◆ EVENT_CHARGING

dictionary homeassistant.components.sonos.speaker.EVENT_CHARGING
Initial value:
1 = {
2  "CHARGING": True,
3  "NOT_CHARGING": False,
4 }

Definition at line 73 of file speaker.py.

◆ NEVER_TIME

float homeassistant.components.sonos.speaker.NEVER_TIME = -1200.0

Definition at line 71 of file speaker.py.

◆ RESUB_COOLDOWN_SECONDS

float homeassistant.components.sonos.speaker.RESUB_COOLDOWN_SECONDS = 10.0

Definition at line 72 of file speaker.py.

◆ SUBSCRIPTION_SERVICES

dictionary homeassistant.components.sonos.speaker.SUBSCRIPTION_SERVICES
Initial value:
1 = {
2  "alarmClock",
3  "avTransport",
4  "contentDirectory",
5  "deviceProperties",
6  "renderingControl",
7  "zoneGroupTopology",
8 }

Definition at line 77 of file speaker.py.

◆ SUPPORTED_VANISH_REASONS

tuple homeassistant.components.sonos.speaker.SUPPORTED_VANISH_REASONS = ("powered off", "sleeping", "switch to bluetooth", "upgrade")

Definition at line 85 of file speaker.py.

◆ UNUSED_DEVICE_KEYS

list homeassistant.components.sonos.speaker.UNUSED_DEVICE_KEYS = ["SPID", "TargetRoomName"]

Definition at line 86 of file speaker.py.