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
-
Hass.io and Ethernet Gateway on PI
Home Assistant • 16 Aug 2017, 00:22 • pgv 28 Dec 2017, 08:43 -
thethingbox
General Discussion • 12 Feb 2015, 01:00 • gregl 21 Feb 2015, 02:24 -
NRF51822
General Discussion • 1 Apr 2020, 12:18 • Puneit Thukral 3 Apr 2020, 11:07 -
Pi 4 ethernet gateway with NRF24L01 + PA and LNA & Domoticz
My Project • 25 Jul 2020, 04:27 • bsmtdweller 3 Aug 2020, 20:43 -
Can't get OpenHAB2 to see my MQTT messages
OpenHAB • 9 Apr 2016, 20:01 • micah 2 Jul 2017, 21:42 -
Gateway sends NACK to node
Troubleshooting • 23 Jul 2022, 14:51 • mariusl 5 Sept 2022, 07:19 -
MySensors gateway running as a service
Development • 9 Sept 2022, 19:54 • OldSurferDude 9 Sept 2022, 23:28