the setting in configuration.yaml for mqtt
mqtt:
- broker: 123.45.67.8
port: 18883
username: user1
password: password1
client_id: homeAssist
keepalive: 300
for device_tracker in configuration.yaml
device_tracker:
- platform: owntracks
max_gps_accuracy: 100
waypoints: true
geocode: true
waypoint_whitelist:
- username you create from cloudmqtt for yourself
- username you create from cloudmqtt for you family member
for mosquitto bridge. I follow from MQTT: Working Mosquitto / CloudMQTT Bridge You have to read from the post where to create the bridge file and how.
the file I create name bridgemosquitto.conf
connection cloudmqtt
address mXX.cloudmqtt.com:23456 <=== come from cloudmqtt detail page. There is 2 ports provide you can use with or without ssl. I do open this port in my router as well. Example port 23456. In router external 23456 interal 23456
topic # in
try_private true
notifications false
start_type automatic
remote_username ABCDEF <== come from username of cloudmqtt details page
remote_password ABCDEF <== come from password of cloudmqtt details page
remote_clientid AAAAA <=== username you create in cloudmqtt from user page
local_clientid AAAAA <=== from mosquitto username you create I use the same as cloudmqtt
keepalive_interval 300
cleansession true
bridge_protocol_version mqttv311
bridge_cafile /etc/ssl/certs/ca-certificates.crt
bridge_insecure false