pub trait HomeAssistantProvider: Send + Sync {
Show 13 methods
// Required methods
fn list_entities<'life0, 'life1, 'async_trait>(
&'life0 self,
domain: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_state<'life0, 'life1, 'async_trait>(
&'life0 self,
entity_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_history<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
entity_id: &'life1 str,
start: &'life2 str,
end: &'life3 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn list_services<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn call_service<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
domain: &'life1 str,
service: &'life2 str,
data: Option<Value>,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn list_automations<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn trigger_automation<'life0, 'life1, 'async_trait>(
&'life0 self,
automation_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn toggle_automation<'life0, 'life1, 'async_trait>(
&'life0 self,
automation_id: &'life1 str,
enabled: bool,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_scenes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn activate_scene<'life0, 'life1, 'async_trait>(
&'life0 self,
scene_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn run_script<'life0, 'life1, 'async_trait>(
&'life0 self,
script_id: &'life1 str,
data: Option<Value>,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn fire_event<'life0, 'life1, 'async_trait>(
&'life0 self,
event_type: &'life1 str,
data: Option<Value>,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn notify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
message: &'life1 str,
title: Option<&'life2 str>,
data: Option<Value>,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Home Assistant provider trait