Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.bluesound.services Namespace Reference

Classes

class  ServiceMethodDetails
 

Functions

None setup_services (HomeAssistant hass)
 

Variables

 BS_JOIN_SCHEMA = BS_SCHEMA.extend({vol.Required(ATTR_MASTER): cv.entity_id})
 
 BS_SCHEMA = vol.Schema({vol.Optional(ATTR_ENTITY_ID): cv.entity_ids})
 
string SERVICE_CLEAR_TIMER = "clear_sleep_timer"
 
string SERVICE_JOIN = "join"
 
string SERVICE_SET_TIMER = "set_sleep_timer"
 
dictionary SERVICE_TO_METHOD
 
string SERVICE_UNJOIN = "unjoin"
 

Detailed Description

Support for Bluesound devices.

Function Documentation

◆ setup_services()

None homeassistant.components.bluesound.services.setup_services ( HomeAssistant  hass)
Set up services for Bluesound component.

Definition at line 44 of file services.py.

Variable Documentation

◆ BS_JOIN_SCHEMA

homeassistant.components.bluesound.services.BS_JOIN_SCHEMA = BS_SCHEMA.extend({vol.Required(ATTR_MASTER): cv.entity_id})

Definition at line 22 of file services.py.

◆ BS_SCHEMA

homeassistant.components.bluesound.services.BS_SCHEMA = vol.Schema({vol.Optional(ATTR_ENTITY_ID): cv.entity_ids})

Definition at line 20 of file services.py.

◆ SERVICE_CLEAR_TIMER

string homeassistant.components.bluesound.services.SERVICE_CLEAR_TIMER = "clear_sleep_timer"

Definition at line 15 of file services.py.

◆ SERVICE_JOIN

string homeassistant.components.bluesound.services.SERVICE_JOIN = "join"

Definition at line 16 of file services.py.

◆ SERVICE_SET_TIMER

string homeassistant.components.bluesound.services.SERVICE_SET_TIMER = "set_sleep_timer"

Definition at line 17 of file services.py.

◆ SERVICE_TO_METHOD

dictionary homeassistant.components.bluesound.services.SERVICE_TO_METHOD
Initial value:
1 = {
2  SERVICE_JOIN: ServiceMethodDetails(method="async_join", schema=BS_JOIN_SCHEMA),
3  SERVICE_UNJOIN: ServiceMethodDetails(method="async_unjoin", schema=BS_SCHEMA),
4  SERVICE_SET_TIMER: ServiceMethodDetails(
5  method="async_increase_timer", schema=BS_SCHEMA
6  ),
7  SERVICE_CLEAR_TIMER: ServiceMethodDetails(
8  method="async_clear_timer", schema=BS_SCHEMA
9  ),
10 }

Definition at line 32 of file services.py.

◆ SERVICE_UNJOIN

string homeassistant.components.bluesound.services.SERVICE_UNJOIN = "unjoin"

Definition at line 18 of file services.py.