smile
November 20, 2017, 7:55am
1
I an using MQTT Broker on a Raspberry Pi for component MQTT Switch and want use cloudmqtt.com with OwnTracks for device tracking and track battery level.
How can i use both mqtt in configuration.yaml
Mosquitto MQTT Broker
mqtt:
broker: 192.168.1.100
port: 1883
client_id: hass
keepalive: 60
username: username
password: password
protocol: 3.1
and Cloud MQTT
mqtt:
broker: CLOUTMQTT_SERVER
port: CLOUDMQTT_PORT
username: CLOUDMQTT_USER
password: CLOUDMQTT_PASSWORD
gpbenton
(Graham)
November 20, 2017, 9:12am
2
This thread is a bit old, but I don’t think anything has changed
For anyone that’s interested this is what I did after following Bruh’s ’s excellent Owntracks / CloudMQTT guide to get my local Mosquitto instance talking to CloudMQTT.
Create a new mosquitto config in the /etc/mosquitto/conf.d/ directory, I used cloudmqtt.conf (it can be any name as long as it ends with .conf so mosquitto will read it) with the following info…
connection cloudmqtt
address <Instance Server>:<Instance Port>
remote_username <Instance User>
remote_password <Instance Password>
clie…