This is a simple program that uses Slint for the UI and allows you to turn on and off your Switchbot light.
This project is to allow you to turn on and off your Switchbot light. Currently it only controls the first light, as I can't test for more devices as I only have one. It is resposive and mainly a learning project for me.
Contributions are more than welcome!
Make a tray item for the program, perhaps have it simplified.
Get the esp32 version running to the same standard as this one, currently it is working, however i need to make it so that it has the off screen and to have the power symbol. Once that is done I will open up the resposity, and add it to this resposity. I did however, have to use c++ for it as the esp32 board i was using didnt have support in rust.
-
Clone the repository:
git clone https://github.com/SO9010/Switchy
-
In the main.rs file, replace the
token
and thesecret
with your Switchbot details. See Here -
Build with
cargo
:cargo build // To build for release: // cargo build --release
-
Run the application binary:
cargo run