Skip to content
Permalink
Browse files

Fix value convertion

  • Loading branch information
bastshoes
bastshoes committed Aug 28, 2019
1 parent 67b263f commit 51f16b5022b4f84c02a7b51d1c1b367c4b958c27
Showing with 9 additions and 1 deletion.
  1. +9 −1 de_web_plugin.cpp
@@ -6510,6 +6510,10 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
{
consumption *= 10; // 0.01 kWh = 10 Wh -> Wh
}
else if (i->modelId() == QLatin1String("RICI01")) // LifeControl smart plug
{
// Already in Wh
}

if (item)
{
@@ -6641,7 +6645,11 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
else if (i->modelId() == QLatin1String("SmartPlug")) // Heiman
{
current *= 10; // 0.01A -> mA
}
}
else if (i->modelId() == QLatin1String("RICI01")) //LifeControl Smart Plug
{
// already in mA
}
else
{
current *= 1000; // A -> mA

0 comments on commit 51f16b5

Please sign in to comment.
You can’t perform that action at this time.