diff options
| author | diogo464 <[email protected]> | 2025-12-09 22:22:22 +0000 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-12-09 22:22:22 +0000 |
| commit | 6bb6d358f39c31b5486621b49da463f97226fea5 (patch) | |
| tree | 8ac1b8f4564507faa52b1ea5fdab3af572d19ae7 /README.md | |
| parent | fc57d8583a578df9565d3143108504b1a21fd1b7 (diff) | |
added README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..7c773cb --- /dev/null +++ b/README.md | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | # embassy-ha | ||
| 2 | |||
| 3 | Home Assistant MQTT device library for embassy. | ||
| 4 | |||
| 5 | To create a device use the [`new`] function. | ||
| 6 | After the device is created you should create one or more entities using functions such as | ||
| 7 | [`create_button`]/[`create_sensor`]/... | ||
| 8 | |||
| 9 | Once the entities have been created either [`run`] or [`connect_and_run`] should be called in a | ||
| 10 | seperate task. | ||
| 11 | |||
| 12 | There are various examples you can run locally (ex: `cargo run --features tracing --example | ||
| 13 | button`) assuming you have a home assistant instance running. To run the examples the | ||
| 14 | environment variable `MQTT_ADDRESS` should be set to the mqtt server used by home assistant. | ||
| 15 | |||
| 16 | License: MIT OR Apache-2.0 | ||
