Crate homeassistant [−] [src]
API client to work with a remote instance of Home Assistant
extern crate homeassistant; fn main() { let client = homeassistant::Client::new("http://192.168.1.2:8123".to_owned(), None); for response in client.get_states().unwrap() { let x = client.get_state(&response.entity_id); println!("{:?}", x); } }
Modules
structs |
Request/Response structs |
Structs
Client |
The API client |
Enums
Error |
A set of errors that can occur. |