From ddb9cc67cc8629a3eacc90ab9b0d82fa40bc90ce Mon Sep 17 00:00:00 2001 From: Peter Lambrechtsen Date: Thu, 7 Aug 2025 23:52:38 +1200 Subject: [PATCH] [DISC] Fix cosmetic issue in Home Assistant where devices don't link to gateway (#2220) * Fix cosmetic issue in HA where devices don't link to gateway * Update via_device to use getMacAddress() to get the OMG device mac address --- main/mqttDiscovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/mqttDiscovery.cpp b/main/mqttDiscovery.cpp index 2f064cf3..9f9b008a 100644 --- a/main/mqttDiscovery.cpp +++ b/main/mqttDiscovery.cpp @@ -593,7 +593,7 @@ void createDiscovery(const char* sensor_type, } } - device["via_device"] = String(gateway_name); //device name of the board + device["via_device"] = String(getMacAddress()); //mac address of the gateway so that the devices link to the gateway } sensor["device"] = device;