diff --git a/src/data/mqtt.ts b/src/data/mqtt.ts
index 9c744085fd..7d66e062f5 100644
--- a/src/data/mqtt.ts
+++ b/src/data/mqtt.ts
@@ -22,6 +22,7 @@ export interface MQTTEntityDebugInfo {
entity_id: string;
discovery_data: MQTTDiscoveryDebugInfo;
subscriptions: MQTTTopicDebugInfo[];
+ transmitted: MQTTTopicDebugInfo[];
}
export interface MQTTTriggerDebugInfo {
diff --git a/src/panels/config/devices/device-detail/integration-elements/mqtt/dialog-mqtt-device-debug-info.ts b/src/panels/config/devices/device-detail/integration-elements/mqtt/dialog-mqtt-device-debug-info.ts
index 4b0bd660a7..93c3d6a5a9 100644
--- a/src/panels/config/devices/device-detail/integration-elements/mqtt/dialog-mqtt-device-debug-info.ts
+++ b/src/panels/config/devices/device-detail/integration-elements/mqtt/dialog-mqtt-device-debug-info.ts
@@ -165,6 +165,7 @@ class DialogMQTTDeviceDebugInfo extends LitElement {
${topic.topic}
-
+
+
+ `
+ )}
+
+ Transmitted messages:
+
+ ${entity.transmitted.map(
+ (topic) => html`
+ -
+
${topic.topic}
+
+
`
)}
diff --git a/src/panels/config/devices/device-detail/integration-elements/mqtt/mqtt-messages.ts b/src/panels/config/devices/device-detail/integration-elements/mqtt/mqtt-messages.ts
index ff26193762..90bfb086c0 100644
--- a/src/panels/config/devices/device-detail/integration-elements/mqtt/mqtt-messages.ts
+++ b/src/panels/config/devices/device-detail/integration-elements/mqtt/mqtt-messages.ts
@@ -12,6 +12,8 @@ class MQTTMessages extends LitElement {
@property() public messages!: MQTTMessage[];
+ @property() public direction!: string;
+
@property() public showAsYaml = false;
@property() public showDeserialized = false;
@@ -50,7 +52,7 @@ class MQTTMessages extends LitElement {
(message) => html`
-
- Received
+ ${this.direction}
${formatTimeWithSeconds(
new Date(message.time),
this.hass.locale
diff --git a/src/translations/en.json b/src/translations/en.json
index 69ad6d04c8..d422b9df16 100755
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -894,6 +894,7 @@
"no_triggers": "No triggers",
"payload_display": "Payload display",
"recent_messages": "{n} most recently received message(s)",
+ "recent_tx_messages": "{n} most recently transmitted message(s)",
"show_as_yaml": "Show as YAML",
"triggers": "Triggers"
}