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
-
OpenHab, MQTT gateway and Battery level - how?
OpenHAB • 17 Dec 2014, 16:49 • doctor64 8 Jan 2015, 22:12 -
Home Assistant v 0.11.1 with switch support
Home Assistant • 17 Jan 2016, 06:22 • martinhjelmare 29 Jan 2016, 04:11 -
Gateway USB and Gateway Ethernet
General Discussion • 23 Aug 2020, 07:36 • Daniel RUIZ9 15 Nov 2020, 20:11 -
MySensors MQTT 'dialect' optionally Homie
General Discussion • 5 May 2021, 13:46 • Peter Loeffler 18 May 2021, 13:36 -
Home Assistant v 0.13.1
Home Assistant • 13 Feb 2016, 21:36 • martinhjelmare 19 Apr 2016, 22:51 -
💬 NRF52 Gateway -(RFM69-option)
OpenHardware.io • 27 Apr 2018, 20:53 • openhardware.io 17 Mar 2019, 15:02 -
A mesh network for use with ESP8266 and MQTT
Development • 23 Apr 2017, 02:01 • PhracturedBlue 26 Dec 2017, 12:55