Hi @ all,
Ich würde gerne eine Presence Erkennung im openhab integrieren und würde dies gerne über das mqtt binding machen.
Ich habe mich an die Github Anleitungen gehalten, allerdings bekomme ich es nicht am laufen. Mein mqtt broker ist mit der owntracks iOS app erreichbar und ich sehe auch in dem Logfile vom mqtt das sobald ich einen Standort publishe das die connection eingeht. Allerdings kommt scheinbar nichts im openhab an....
Ich sehe nur das der Broker geladen wurde...
Eigentlich wollte ich gerne Region Mode benutzen, aber damit bekomme ich es auch nicht ans laufen, daraufhin habe ich beschlossen erstmal den Manual Mode zu probieren, leider klappt es ebenfalls nicht :/
Hier mal meine Konfigurationen:
MQTT Binding:
Also ich habe als erstes die Addons in den Ordner kopiert
Fehlt mir noch ein Addon ?
MQTT Konfiguration:
Die gleiche Config habe ich auch in den conf.d - Ordner kopiert...
Meine openhab Konfiguration:
MQTT Transport
Hier der Items Eintrag:
Und der Eintrag auf der Sitemap
Auf meine iPhone habe ich in dem Topic ebenfalls test eingetragen.
Jemand eine Idee ? Ich komme einfach nicht weiter....Danke
Ich würde gerne eine Presence Erkennung im openhab integrieren und würde dies gerne über das mqtt binding machen.
Ich habe mich an die Github Anleitungen gehalten, allerdings bekomme ich es nicht am laufen. Mein mqtt broker ist mit der owntracks iOS app erreichbar und ich sehe auch in dem Logfile vom mqtt das sobald ich einen Standort publishe das die connection eingeht. Allerdings kommt scheinbar nichts im openhab an....
Ich sehe nur das der Broker geladen wurde...
Eigentlich wollte ich gerne Region Mode benutzen, aber damit bekomme ich es auch nicht ans laufen, daraufhin habe ich beschlossen erstmal den Manual Mode zu probieren, leider klappt es ebenfalls nicht :/
Hier mal meine Konfigurationen:
MQTT Binding:
Also ich habe als erstes die Addons in den Ordner kopiert
Code:
org.openhab.binding.mqtt-1.6.1 org.openhab.binding.mqttitude-1.6.1
MQTT Konfiguration:
Die gleiche Config habe ich auch in den conf.d - Ordner kopiert...
Code:
# Place your local configuration in /etc/mosquitto/conf.d/ # # A full description of the configuration file is at # /usr/share/doc/mosquitto/examples/mosquitto.conf.example pid_file /var/run/mosquitto.pid persistence true persistence_location /var/lib/mosquitto/ log_dest file /var/log/mosquitto/mosquitto.log include_dir /etc/mosquitto/conf.d retry_interval 20 user mosquitto password_file /etc/mosquitto/passwd
Meine openhab Konfiguration:
MQTT Transport
Code:
################################# MQTT Transport ###################################### # # Define your MQTT broker connections here for use in the MQTT Binding or MQTT # Persistence bundles. Replace <broker> with a id you choose. # # URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883 mqtt:mqttbroker.url=tcp://localhost:1883 # Optional. Client id (max 23 chars) to use when connecting to the broker. # If not provided a default one is generated. mqtt:mqttbroker.clientId=openhab # Optional. User id to authenticate with the broker. mqtt:mqttbroker.user=mosquitto # Optional. Password to authenticate with the broker. mqtt:mqttbroker.pwd=XXX # Optional. Set the quality of service level for sending messages to this broker. # Possible values are 0 (Deliver at most once),1 (Deliver at least once) or 2 # (Deliver exactly once). Defaults to 0. #mqtt:mqttbroker.qos=2 # Optional. True or false. Defines if the broker should retain the messages sent to # it. Defaults to false. #mqtt:mqttbroker.retain=false # Optional. True or false. Defines if messages are published asynchronously or # synchronously. Defaults to true. #mqtt:mqttbroker.async=true # Optional. Defines the last will and testament that is sent when this client goes offline # Format: topic:message:qos:retained <br/> #mqtt:<broker>.lwt=<last will definition>
Code:
################################# Mqttitude Binding ################################### # # Mqttitude can track your presence in two ways; # # 1. Regions - by defining a region in your Mqttitude app (on your phone) you specify # a set of lat/lon coordinates, a geofence, and a name - by using this name # in your item binding openHAB will listen for enter/leave events for this # region and thus allow you to track your presence in multiple locations # 2. Home - by defining the lat/lon of your home, along with a geofence radius (below), # the binding will listen for location publishes from the Mqttitude app and # manually calculate the distance from your 'home' # # Optional. The latitude/longitude coordinates of 'home'. mqttitude:home.lat=XXX mqttitude:home.lon=XXX # Optional. The geofence radius. mqttitude:geofence=200
Code:
Switch PresenceTest_Home "@ Home" { mqttitude="mqttbroker:test" }
Code:
Switch item=PresenceTest_Home label="@ Home"
Jemand eine Idee ? Ich komme einfach nicht weiter....Danke
Kommentar