MQTT & Owntracks

Have successfully installed MQTT component and able to connect using userid and password setup during installation. Also able to connect using homeassistant userid.

I use DuckDNS configuration on my HASS.IO installation.

I’m having some difficulty in configuring Owntracks on IOS to communicate however and am getting the error message

idle The operation couldn’t be completed. Connection refused {
"_kCFStreamErrorCodeKey" = 61;
"_kCFStreamErrorDomainKey" = 1;

}

Anyone got any suggestions as to what I am doing wrong?

The Owntracks configuration settings are as follows;
Mode: MQTT
TrackerID:
Device_ID _iphone
Host .duckdns.org
Port: 1883
Proto: 4
TLS
Authentication
Userid
Password
Secret encryption key

configuration.yaml

tracking location

device_tracker:

  • platform: owntracks
    max_gps_accuracy: 200
    mqtt_topic: “owntracks/#”

mqtt:
broker: !secret mqtt_broker_ip
port: !secret mqtt_port
client_id: !secret mqtt_client_id
username: !secret mqtt_username
password: !secret mqtt_password
discovery: true
discovery_prefix: homeassistant

Sorry updated info