Skip to content

Commit

Permalink
Update de_web_plugin.cpp
Browse files Browse the repository at this point in the history
Keen Home vent reports battery in full percentages, see #1484.
  • Loading branch information
ebaauw committed Apr 30, 2019
1 parent f6c0d29 commit 7a9b939
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion de_web_plugin.cpp
Expand Up @@ -5165,7 +5165,9 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
{
int bat = ia->numericValue().u8 / 2;

if (i->modelId().startsWith("TRADFRI") || i->modelId().startsWith("ICZB-KPD1"))
if (i->modelId().startsWith(QLatin1String("TRADFRI")) || // IKEA
i->modelId().startsWith(QLatin1String("ICZB-KPD1")) || // iCasa keypads
i->modelId().startsWith(QLatin1String("SV01-"))) // Keen Home vent
{
bat = ia->numericValue().u8;
}
Expand Down

0 comments on commit 7a9b939

Please sign in to comment.