From 906007a2904a3c0e0607aca064d7f378eee7aa60 Mon Sep 17 00:00:00 2001 From: bittles Date: Sun, 1 Jan 2023 23:41:21 -0500 Subject: [PATCH] some logging to try to catch some initial vacuum states missed currently --- custom_components/ecovacs/sucksbumper.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/custom_components/ecovacs/sucksbumper.py b/custom_components/ecovacs/sucksbumper.py index fa51a10..50c6637 100644 --- a/custom_components/ecovacs/sucksbumper.py +++ b/custom_components/ecovacs/sucksbumper.py @@ -969,6 +969,11 @@ class EcoVacsXMPP(ClientXMPP): if as_dict is not None: for s in self.ctl_subscribers: s(as_dict) + + if as_dict is None: + other_part = message.get_payload() + _LOGGER.debug("handle_ctl called with get_payload(), the other part:") + _LOGGER.debug(other_part) def _ctl_to_dict(self, xml): result = xml.attrib.copy() @@ -1013,9 +1018,9 @@ class EcoVacsXMPP(ClientXMPP): else: # This happens for commands with no response data, such as PlaySound -# _LOGGER.debug("neither type nor td in result:") -# _LOGGER.debug(result) -# _LOGGER.debug("end of no td or type detect result") + _LOGGER.debug("neither type nor td in result:") + _LOGGER.debug(result) + _LOGGER.debug("end of no td or type detect result") return def register_callback(self, userdata, message):