Skip to content

calder/switchbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– SwitchBot

Documentation Latest Version

Rust client for controlling SwitchBot devices.

πŸ› οΈ Basic Usage

Set SWITCHBOT_TOKEN to your API token, then:

let switchbot = switchbot_api2::SwitchBot::new_from_env()?;
for d in switchbot.get_devices().await? {
    println!("{}: {:?}", d.name, switchbot.get_status(&d).await?);
}

See examples and docs for more.

Device 🌑️ πŸ’¦ πŸ”‹
Hub 2 βœ… βœ… -
Indoor/Outdoor Thermo-Hygrometer βœ… βœ… βœ…
API 🌑️ πŸ’¦ πŸ”‹
Temperature βœ… - -
Humidity - βœ… -
Battery - - βœ…
Climate βœ… βœ… -

❀️ Contributing

Pull requests for new device types or anything else are welcome!

About

Control SwitchBot devices in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published