Skip to content
Permalink
Browse files

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>".
  • Loading branch information
manup committed Sep 29, 2019
1 parent 627a742 commit 6a1356751f5c939743a8ea8a2169a57da4a73f44
Showing with 1 addition and 1 deletion.
  1. +1 −1 de_web_plugin.cpp
@@ -1776,7 +1776,7 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
else
{
if (lightNode.name().isEmpty())
lightNode.setName(QString("Light %1").arg(lightNode.id()));
lightNode.setName(QString("%1 %2").arg(lightNode.type()).arg(lightNode.id()));

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

0 comments on commit 6a13567

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