molobrakos/volvooncall

mqtt

Closed this issue · 1 comments

How do i use the owntracks and mqtt function?

I noticed the owntracks option didn't quite work, fixed it here: 431746e#diff-1b5fc1c8c4ef246585f7f1dff06e6bf0

For owntracks, just run as voc owntracks and pipe the result yourself into a command that publishes the result to a server and a topic (e.g. owntracks/volvo/abc123) of your choice (like mosquitto_pub). You need to run this command periodically, e.g. from a cron job.

The mqtt function is currently designed to integrate primarilty into Home Assistant. Your mqtt credentials needs to be configured in $HOME/.config/mosquitto_pub and by running voc mqtt, your vehicle status will periodically be published on the configured MQTT server.