Skip to content

Commit 6a13567

Browse files
committed
Use meaningful default names for new lights based on the type
* On/Off light * Dimmable light * Extended color light * Smart plug * Range extender * etc. Formerly all these would have a default name of "Light <number>".
1 parent 627a742 commit 6a13567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

de_web_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
17761776
else
17771777
{
17781778
if (lightNode.name().isEmpty())
1779-
lightNode.setName(QString("Light %1").arg(lightNode.id()));
1779+
lightNode.setName(QString("%1 %2").arg(lightNode.type()).arg(lightNode.id()));
17801780

17811781
if (!lightNode.name().isEmpty())
17821782
{ q->nodeUpdated(lightNode.address().ext(), QLatin1String("name"), lightNode.name()); }

0 commit comments

Comments
 (0)