Skip to content

Commit 51f16b5

Browse files
author
bastshoes
committed
Fix value convertion
1 parent 67b263f commit 51f16b5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

de_web_plugin.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6510,6 +6510,10 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
65106510
{
65116511
consumption *= 10; // 0.01 kWh = 10 Wh -> Wh
65126512
}
6513+
else if (i->modelId() == QLatin1String("RICI01")) // LifeControl smart plug
6514+
{
6515+
// Already in Wh
6516+
}
65136517

65146518
if (item)
65156519
{
@@ -6641,7 +6645,11 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
66416645
else if (i->modelId() == QLatin1String("SmartPlug")) // Heiman
66426646
{
66436647
current *= 10; // 0.01A -> mA
6644-
}
6648+
}
6649+
else if (i->modelId() == QLatin1String("RICI01")) //LifeControl Smart Plug
6650+
{
6651+
// already in mA
6652+
}
66456653
else
66466654
{
66476655
current *= 1000; // A -> mA

0 commit comments

Comments
 (0)