diff --git a/docs/use/displays.md b/docs/use/displays.md
index 572a56523d..4b37aa8d31 100644
--- a/docs/use/displays.md
+++ b/docs/use/displays.md
@@ -54,6 +54,15 @@ As the display Metric setting is being defined in the WebUI part of OpenMQTTGate
`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoWebUI/config -m {"displayMetric":false}`
+### Display name as advetised Bluetooth name or `model_id`
+There is a build property of ForceDeviceName which forces devices when they are added in Home Assistant auto-discovery to be created with their Bluetooth advertised name isntead of their `model_id`. The default naming is `model_id` with `{"displayDeviceName":true}`. If you have enabled auto-discovery then a restart is required.
+
+This can also be adjusted in the WebUI by switching the Configure WebUI Device naming between `Model ID` (false) or `Device name` (true)
+
+This can also be changed with the runtime command.
+
+`mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoWebUI/config -m {"displayDeviceName":true}`
+
### Rotating the display by 180 degrees
This can be set with the compiler directive `-DDISPLAY_FLIP=false`.
diff --git a/docs/use/webui.md b/docs/use/webui.md
index b3004a91af..c43a590b90 100644
--- a/docs/use/webui.md
+++ b/docs/use/webui.md
@@ -28,7 +28,7 @@ Ability to change the mqtt settings, if the change is unsuccessful it will rever
## WebUI
-Ability to change the display of sensor to Metric or Imperial, and disable the WebUI Authentication
+Ability to change the display of sensor to Metric or Imperial, display the device name as the Bluetooth advertised device name or the model id and disable the WebUI Authentication
## Bluetooth Low Energy - BLE
diff --git a/main/TheengsCommon.h b/main/TheengsCommon.h
index f52cea64cb..31160a21bc 100644
--- a/main/TheengsCommon.h
+++ b/main/TheengsCommon.h
@@ -62,6 +62,7 @@ extern bool ready_to_sleep;
extern char mqtt_topic[];
extern char gateway_name[];
extern unsigned long lastDiscovery; // Time of the last discovery to trigger automaticaly to off after DiscoveryAutoOffTimer
+extern bool displayDeviceName;
#if BLEDecryptor
extern char ble_aes[];
diff --git a/main/User_config.h b/main/User_config.h
index e11e3a2e98..1b4c3c9ccd 100644
--- a/main/User_config.h
+++ b/main/User_config.h
@@ -604,6 +604,11 @@ extern ss_cnt_parameters cnt_parameters_array[];
# define LOG_LEVEL LOG_LEVEL_NOTICE
#endif
+/*-------------------DEFINE DISPLAY NAME-------------------*/
+#ifndef DISPLAY_DEVICE_NAME
+# define DISPLAY_DEVICE_NAME false // Set to true to force the device name to be from the name of the device and not the model
+#endif
+
/*-------------------ESP Wifi band and tx power ---------------------*/
//Certain sensors are sensitive to Wifi which can cause interference with their normal operation
//For example it can cause false triggers on a PIR HC-SR501
diff --git a/main/config_WebContent.h b/main/config_WebContent.h
index eccf82f740..1cfc8cd2b1 100644
--- a/main/config_WebContent.h
+++ b/main/config_WebContent.h
@@ -116,7 +116,7 @@ const char config_gateway_body[] = body_header "