HomeAssistant MQTT integration for Avfall Sør.
- Rust
cargo build --release
- Copy the binary (
target/release/avfallsor-homeassistant
if you compiled it yourself) to your desired location. - Create a
.env
file in the same directory. See.env.example
for available config variables. - Run
avfallsor-homeassistant
.
In your HomeAssistant's MQTT integration, Avfall Sør should now be added, with one sensor per type of garbage collection. Sensors will report the date of the next garbage collection.
Set up a weekly cron job / systemd timer / scheduled task. That's it!
Your address.
Integer between 0 and 23. Approximate hour of the day when garbage is collected. This is used for the time component of the sensor in HomeAssistant. Defaults to 8.
MQTT host / IP. Defaults to localhost.
MQTT port. Defaults to 1883.