diff options
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 | ||
