From a1ce14e70f4061873d471acce9aff03f82a67a51 Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Sun, 26 Aug 2018 10:04:51 +0200 Subject: [PATCH] MQTT: Log transmitted as well as received messages (#16195) --- homeassistant/components/mqtt/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/mqtt/__init__.py b/homeassistant/components/mqtt/__init__.py index 19bacbc8d4c..71be9c2435e 100644 --- a/homeassistant/components/mqtt/__init__.py +++ b/homeassistant/components/mqtt/__init__.py @@ -550,6 +550,7 @@ class MQTT: This method must be run in the event loop and returns a coroutine. """ async with self._paho_lock: + _LOGGER.debug("Transmitting message on %s: %s", topic, payload) await self.hass.async_add_job( self._mqttc.publish, topic, payload, qos, retain)