Reads the device_usage
of multiple devices and sends the data through MQTT to be picked up by home-automation-monitoring.
It also includes an API that can control the devices.
Actor System consisting of:
- Coordinator Actor - makes sure that everything is running as expected
- Device Actor - reads the device usage and sends it to the MQTT Actor
- MQTT Actor - published the data to the MQTT broker
- API Actor - REST API for turning devices on/off and getting their status
Rename and update settings.sample.yaml
to settings.yaml
.
cargo run
docker build -t home-automation-tapo .
docker run -d -p 80:80 home-automation-tapo
docker build -f Dockerfile-ARMv7.dockerfile -t home-automation-tapo .
docker run -d -p 80:80 home-automation-tapo