Slorf
May 4, 2023, 7:36am
1
Hi All,
Yesterday i moved from my external Debian MQTT broker to the add-on MQTT broker in Home Assistant.
So i had to change the MQTT broker ip on my ( 3 ) gateways, and change the MQTT client settings in Home Assistant.
I can see the OMG’s publishing with MQTT Explorer, everything looks the same as before.
Only thing is that the 3 OMG’s in Home Assistant where offline ( settings → integrations → MQTT ).
So i deleted them, and ever since i have do idea how i can get them back.
I only want to see the 3 OMG devices, no auto discovery for sensors etc.
Does anyone has an idea ?
Regards
Alex
Slorf
May 5, 2023, 5:33pm
2
Hi All,
Issue is solved
First step:
Flash the gateways with following settings
; ‘-UZmqttDiscovery’ ; disables MQTT Discovery
‘-DZmqttDiscovery=“HADiscovery”’
After flashing the gateway is recognized by HomeAssistant
Then flash again but enable the ‘-UZmqttDiscovery’
‘-UZmqttDiscovery’ ; disables MQTT Discovery
‘-DZmqttDiscovery=“HADiscovery”’
This will disable the autodiscovery, but since the gateway(s) are now in HomeAssistant they will not be affected, any new device is not discovered.
One tip: if you wait too long between changing the settings you might end up with 433mhz devices in Home Assistant, delete them, after you disabled the autodiscovery they will not show up again.
Alex
DigiH
May 5, 2023, 5:43pm
3
Hi @Slorf ,
Instead of having to reflash all your gateways twice, you could just turn off the discovery in the gateway settings
One gateway, many technologies: MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, beacons detection, mi flora / mi jia / LYWSD02/ Mi Scale compatibility, SMS & LORA.
Since version 1.5.0 the auto-discovery is also being automatically switched off after 30 minutes.
1technophile:development
← 1technophile:auto-discovery-timer
opened 03:26PM - 16 Mar 23 UTC
## Description:
Auto deactivate discovery after 30min from the last activation,… goal is to avoid unwanted entities created
## Checklist:
- [x] The pull request is done against the latest development branch
- [x] Only one feature/fix was added per PR and the code change compiles without warnings
- [x] I accept the [DCO](https://github.com/1technophile/OpenMQTTGateway/blob/development/docs/participate/development.md#developer-certificate-of-origin).
Slorf
May 5, 2023, 6:19pm
4
Thanks !
I was running a older version, just upgraded to 1.5.1, will keep it in mind.
Alex