testing with different controllers (mqtt brokers)
-
I run mysensors (ms) to an MQTT broker to Home Assistant (HA). My experience with MQTT has been great; it's simple and it's a easy way (using MQTT Explorer) to see the communication between ms and HA. ms has a reasonable way to watch the data flow. HA is another story, steep in necromancy, YAML, double secret persistence files, etc.
So once I get an HA configuration working, I don't want to mess with it. I have a "production" version of HA running devices and a "lab" version when I'm trying to integrate a new device. When I'm satisfied with how the device works in "the lab", I switch it over to "production".
Right now, what I do to change the MQTT broker for ms is to run the configure program, then "make" mysgw, just to change the MQTT broker. Is there an easier way, like changing an entry in a file?
-
@OldSurferDude use a host name for the broker in the configure command (
--my-controller-url-address=
). Add the host name to/etc/hosts
on the rpi where the gateway is. Start the MySensors gatway.When you want to switch brokers, modify /etc/hosts again and restart the MySensors gateway.
Suggested Topics
-
Multiple virtual nodes on a gateway
Troubleshooting • 7 Feb 2019, 16:00 • pvoj 12 Feb 2019, 23:14 -
Help Getting Started
General Discussion • 1 Mar 2017, 20:29 • strex 1 Mar 2017, 21:47 -
Inverse gateway leds behavior
Hardware • 15 Aug 2014, 10:01 • John 15 Aug 2014, 10:17 -
Data collection
My Project • 22 Sept 2014, 00:36 • pvoj 22 Sept 2014, 01:52 -
Ethernet gateway troubleshooting advice
Troubleshooting • 7 Oct 2014, 17:00 • jkbrowne 10 Mar 2016, 16:32 -
An HASS service to send messages to nodes
Home Assistant • 19 May 2016, 08:58 • xlcnd 24 Jun 2016, 09:35 -
Future network topology (for discussion)
Hardware • 26 Jan 2015, 20:25 • axillent 17 Aug 2015, 11:37 -
💬 NRF52 Gateway -(RFM69-option)
OpenHardware.io • 27 Apr 2018, 20:53 • openhardware.io 17 Mar 2019, 15:02