From 93bb41caf9c5bae66223c76b44692ecdbc8a4aac Mon Sep 17 00:00:00 2001 From: Boernsman Date: Sun, 28 Feb 2021 22:18:29 +0100 Subject: [PATCH] shortened polling interval --- sma/integrationpluginsma.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sma/integrationpluginsma.cpp b/sma/integrationpluginsma.cpp index 75bedc95..242bebe4 100644 --- a/sma/integrationpluginsma.cpp +++ b/sma/integrationpluginsma.cpp @@ -77,7 +77,7 @@ void IntegrationPluginSma::setupThing(ThingSetupInfo *info) if (!m_refreshTimer) { qCDebug(dcSma()) << "Starting refresh timer"; - m_refreshTimer = hardwareManager()->pluginTimerManager()->registerTimer(30); + m_refreshTimer = hardwareManager()->pluginTimerManager()->registerTimer(1); connect(m_refreshTimer, &PluginTimer::timeout, this, &IntegrationPluginSma::onRefreshTimer); } @@ -118,7 +118,7 @@ void IntegrationPluginSma::postSetupThing(Thing *thing) SunnyWebBox *sunnyWebBox = m_sunnyWebBoxes.value(thing); if (!sunnyWebBox) return; - sunnyWebBox->getDevices(); + sunnyWebBox->getPlantOverview(); thing->setStateValue(sunnyWebBoxConnectedStateTypeId, true); } }