String Jay_Presence "Jay @ Home" { mqtt="<[mosquitto:owntracks/jcid/event:home]" }
Thanks, I was under the impression this only works for the geofence?? no?
Also,
here is the openhab.cfg portion…
### Broker Settings ###
mqtt:mosquitto.url=tcp://localhost:1883
mqtt:mosquitto.user=openhab
mqtt:mosquitto.pwd=
mqtt:mosquitto.qos=2
mqtt:mosquitto.retain=true
mqtt:mosquitto.async=true
mqtt-eventbus:broker=mosquitto
#mqtt-eventbus:commandPublishTopic=/openHAB/out/${item}/command
mqtt-eventbus:stateSubscribeTopic=/owntracks/jcid/#
Ok none of that worked. I have figured out that in order for OH to subscribe to MO the item has to be a “Switch”…
also it needs to be mqttitude= not mqtt=
got it finally… only thing that works is…
Switch Jay_Presence "Jay @ Home" { mqttitude="mosquitto:owntracks/jcid/jay-cell" }
moving on…
yea nevermind. mqttitude was interfering. I removed it and just left all the mqtt stuff. Still no luck,…
From what I can see and remember (I don’t use OwnTracks anymore, have just tested it for a while) your are mixing up things.
You don’t need to configure the eventbus, the plain mqtt config should work (it did for me).
I used three main pages for my setup:
http://owntracks.org/booklet/guide/clients/#openhab
Read through it in detail and it should work … have fun.