From 724e1671140cdee929728a180d77e77a876e0be7 Mon Sep 17 00:00:00 2001 From: bittles Date: Mon, 2 Jan 2023 22:56:34 -0500 Subject: [PATCH] change ping schedule from 30s to 300s decrease calls to robot, see if this is contributing to battery use --- custom_components/ecovacs/sucksbumper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/ecovacs/sucksbumper.py b/custom_components/ecovacs/sucksbumper.py index a689a4b..8c8663f 100644 --- a/custom_components/ecovacs/sucksbumper.py +++ b/custom_components/ecovacs/sucksbumper.py @@ -474,7 +474,7 @@ class VacBot(): if not self.vacuum['iotmq']: # _LOGGER.info("connecting to NOT bumper, xmpp server ******************") self.xmpp.connect_and_wait_until_ready() - self.xmpp.schedule('Ping', 30, lambda: self.send_ping(), repeat=True) + self.xmpp.schedule('Ping', 300, lambda: self.send_ping(), repeat=True) else: # _LOGGER.info("connecting to NOT bumper, mqtt server ******************") self.iotmq.connect_and_wait_until_ready()