MQTTController: two brokers?
-
Just add another instance in the
controllers
section; be sure to give it a different ID from the existing one. -
Just add another instance in the
controllers
section; be sure to give it a different ID from the existing one.@toggledbits Ok, that's what I thought but wasn't positive.
Will it work with a cloud MQTT broker?
-
Any broker that is 3.1.1 compliant should work as long as it's accessible.
-
Any broker that is 3.1.1 compliant should work as long as it's accessible.
@toggledbits I think where I'm falling down is the URL format. I'm testing out HiveMQ to see if I can improve my OwnTracks response time by using MQTT into MSR vs HTTP into HomeAssistant into MSR.
Log shows me:
[latest-22337]2022-12-10T14:53:04.155Z <MQTTController:NOTICE> Connecting to broker mqtt://7efxxxxxxxxxxxxxxc4a0d0.s2.eu.hivemq.cloud:8883 [latest-22337]2022-12-10T14:53:04.373Z <MQTTController:NOTICE> MQTTController#mqtt2 broker offline! [latest-22337]2022-12-10T14:53:04.374Z <MQTTController:NOTICE> MQTTController#mqtt2 waiting for auto-reconnect
MQTTController config for this broker is:
name: MQTT HiveMQ enabled: true implementation: MQTTController config: # Replace IP with that of your MQTT broker below source: "mqtt://7efxxxxxxxxxxxxxxc4a0d0.s2.eu.hivemq.cloud:8883" username: "<user>" password: "<password>"
I'm just tinkering for now. I'm remembering the Lobo days (I've yet to find anything that did presence like Lobo did...)
-
I doubt any cloud broker uses an unencrypted channel. Type
mqtts://...
. Changing the port alone does not change the communication protocol. You have to be more specific. -
I doubt any cloud broker uses an unencrypted channel. Type
mqtts://...
. Changing the port alone does not change the communication protocol. You have to be more specific.@toggledbits OY. The difference a single letter can make. Totally glossed over that little detail.
Connected.
Thank you, as always!
-
I doubt any cloud broker uses an unencrypted channel. Type
mqtts://...
. Changing the port alone does not change the communication protocol. You have to be more specific.@toggledbits In configuring the entity for OwnTracks... completely disregard my prior insanity. I'm finding all sorta good things BY READING ALL THE WORDS in the manual.
I'll be out the rest of the day - still just poking at this.
-
T toggledbits locked this topic on