After almost a day of figuring things out and not getting anywhere… I am seeking help.
Maybe I need help of a different kind
running OH v2.3.0
- installed Stretch lite on a new rPi.
- installed Mosquitto
- installed OH
- openHAB is up and running
- installed OT-Recorder; no TLS, no username / password (defaults)
with:
curl http://repo.owntracks.org/repo.owntracks.org.gpg.key | sudo apt-key add -
echo "deb http://repo.owntracks.org/debian stretch main" | sudo tee /etc/apt/sources.list.d/owntracks.list > /dev/null
sudo apt-get update
sudo apt-get install ot-recorder
/etc/default/ot-recorder
# lleft all defaults and added
OTR_HTTPHOST="192.168.1.5"
OTR_TOPICS="owntracks/#"
- I had this running on OH v1 and one iPhone.
- I did not change anything on the iPhone.
- I opened a hole in the firewall for the new Pi; while the IP remained the same, the MAC changed, hence a new rule being created (the old one deleted).
The errors I am currently getting are:
On the phone:
idle MQTT CONNACK: not authorized {NSLocalizedDescripton = MQTT CONNACK: not authorized {NSLocalizedDescripton";}
In the MQTT event log:
12/29/18 14:45:42.500 1546054844: New connection from 1.132.104.131 on port 8883.
12/29/18 14:45:42.509 1546054844: Socket error on client <unknown>, disconnecting.
Here my config
I use the following OH addons.cfg:
remote = true
legacy = true
binding = expire1,fritzboxtr0641,http1,mqtt1,networkhealth1,weather1,astro,exec,ntp,systeminfo
ui = paper,basic
persistence = rrd4j
action = mail,mqtt
transformation = map,javascript,xslt,scale,jsonpath
the mqtt.cfg:
mymosquitto.url=tcp://localhost:1883
mymosquitto.clientId=openhab2
mymosquitto.retain=true
/etc/mosquitto/mosquitto.conf
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
/etc/mosquitto/conf.d/mosquitto.conf
listener 1883
listener 8883
This is how it should work:
(Direct OpenStreet map from OT-Recorder in browser)
----------------
| HTTP browser | Add Firewall hole for port 8883
---------------- -----------------
| -------------------| Fritzbox |
8083 | -----------------
| 8883
---------------- --------------- -----------------
| OT Recorder |------| MQTT Broker |---1883---| Local Devices |
---------------- --------------- -----------------
|
1883
---------------- ---------------
| OH Sitemap |------| openHAB v2 |
---------------- ---------------
|
8080
----------------
| HTTP browser | (for Google Map section on OH sitemap)
----------------