Classes | |
| class | HomeAssistantScene |
| class | SceneConfig |
Functions | |
| dict[str, State] | _convert_states (dict[str, Any] states) |
| dict[str, Any] | _ensure_no_intersection (dict[str, Any] value) |
| None | _process_scenes_config (HomeAssistant hass, AddEntitiesCallback async_add_entities, dict[str, Any] config) |
| None | async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None) |
| list[str] | entities_in_scene (HomeAssistant hass, str entity_id) |
| list[str] | scenes_with_entity (HomeAssistant hass, str entity_id) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | CONF_SCENE_ID = "scene_id" |
| string | CONF_SNAPSHOT = "snapshot_entities" |
| CREATE_SCENE_SCHEMA | |
| string | DATA_PLATFORM = "homeassistant_scene" |
| string | EVENT_SCENE_RELOADED = "scene_reloaded" |
| PLATFORM_SCHEMA | |
| string | SERVICE_APPLY = "apply" |
| string | SERVICE_CREATE = "create" |
| string | SERVICE_DELETE = "delete" |
| STATES_SCHEMA = vol.All(dict, _convert_states) | |
Allow users to set and activate scenes.
|
private |
|
private |
|
private |
| None homeassistant.components.homeassistant.scene.async_setup_platform | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| AddEntitiesCallback | async_add_entities, | ||
| DiscoveryInfoType | None | discovery_info = None |
||
| ) |
| list[str] homeassistant.components.homeassistant.scene.entities_in_scene | ( | HomeAssistant | hass, |
| str | entity_id | ||
| ) |
| list[str] homeassistant.components.homeassistant.scene.scenes_with_entity | ( | HomeAssistant | hass, |
| str | entity_id | ||
| ) |
|
private |
| string homeassistant.components.homeassistant.scene.CONF_SCENE_ID = "scene_id" |
| string homeassistant.components.homeassistant.scene.CONF_SNAPSHOT = "snapshot_entities" |
| homeassistant.components.homeassistant.scene.CREATE_SCENE_SCHEMA |
| string homeassistant.components.homeassistant.scene.DATA_PLATFORM = "homeassistant_scene" |
| string homeassistant.components.homeassistant.scene.EVENT_SCENE_RELOADED = "scene_reloaded" |
| homeassistant.components.homeassistant.scene.PLATFORM_SCHEMA |
| string homeassistant.components.homeassistant.scene.SERVICE_APPLY = "apply" |
| string homeassistant.components.homeassistant.scene.SERVICE_CREATE = "create" |
| string homeassistant.components.homeassistant.scene.SERVICE_DELETE = "delete" |
| homeassistant.components.homeassistant.scene.STATES_SCHEMA = vol.All(dict, _convert_states) |