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
-
Parallel Gateways
General Discussion • 29 May 2020, 11:12 • jocke4u 29 May 2020, 12:35 -
Sonoff Basic Wifi Gateway for NRF24
Hardware • 9 Jul 2017, 16:31 • Technovation 9 Jul 2017, 17:23 -
Step-by-step procedure to connect the NRF24L01+ to the GPIO pins and use the Raspberry as a Serial Gateway (MySensors 1.x)
Hardware • 22 Nov 2015, 20:40 • mfalkvidd 10 Oct 2017, 19:43 -
Contribution
General Discussion • 23 Mar 2014, 19:58 • edoardoo 23 Mar 2014, 21:40 -
💬 Sensebender Gateway
OpenHardware.io • 9 Jan 2016, 19:14 • openhardware.io 4 Jun 2022, 11:36 -
Newbie question about how the mysensors gateway connects to controller
General Discussion • 23 Mar 2020, 15:05 • Thomas433 24 Mar 2020, 22:12 -
all the gear, no idea
General Discussion • 5 Mar 2015, 17:51 • baldsi 2 Apr 2015, 07:28 -
Can't get message from OpenHab to MySensor
OpenHAB • 26 Jul 2016, 05:30 • A Former User 27 Jul 2016, 04:58