Public Member Functions | |
| def | execute (self, command, data, params, challenge) |
| dict[str, Any] | query_attributes (self) |
| dict[str, Any] | sync_attributes (self) |
Public Member Functions inherited from homeassistant.components.google_assistant.trait._Trait | |
| None | __init__ (self, HomeAssistant hass, state, config) |
| def | can_execute (self, command, params) |
| dict[str, Any]|None | query_notifications (self) |
| dict[str, Any] | sync_options (self) |
Static Public Member Functions | |
| def | supported (domain, features, device_class, _) |
Static Public Member Functions inherited from homeassistant.components.google_assistant.trait._Trait | |
| def | might_2fa (domain, features, device_class) |
Static Public Attributes | |
| list | commands = [COMMAND_SET_VOLUME, COMMAND_VOLUME_RELATIVE, COMMAND_MUTE] |
| name = TRAIT_VOLUME | |
Private Member Functions | |
| def | _execute_mute (self, data, params) |
| def | _execute_set_volume (self, data, params) |
| def | _execute_volume_relative (self, data, params) |
| def | _set_volume_absolute (self, data, level) |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.components.google_assistant.trait._Trait | |
| config | |
| hass | |
| state | |
Trait to control volume of a device. https://developers.google.com/actions/smarthome/traits/volume
|
private |
|
private |
|
private |
|
private |
| def homeassistant.components.google_assistant.trait.VolumeTrait.execute | ( | self, | |
| command, | |||
| data, | |||
| params, | |||
| challenge | |||
| ) |
Execute a volume command.
Reimplemented from homeassistant.components.google_assistant.trait._Trait.
| dict[str, Any] homeassistant.components.google_assistant.trait.VolumeTrait.query_attributes | ( | self | ) |
Return volume query attributes.
Reimplemented from homeassistant.components.google_assistant.trait._Trait.
|
static |
Test if trait is supported.
Reimplemented from homeassistant.components.google_assistant.trait._Trait.
| dict[str, Any] homeassistant.components.google_assistant.trait.VolumeTrait.sync_attributes | ( | self | ) |
Return volume attributes for a sync request.
Reimplemented from homeassistant.components.google_assistant.trait._Trait.
|
static |
|
static |