New command line option --always-add-lights
This allows creation of light node resources even when search isn't running anymore.
In larger networks this is sometimes needed if not all lights have been querried in full.
@@ -2529,7 +2529,10 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
if (lightNode.id().isEmpty())
{
- if (!(searchLightsState == SearchLightsActive || permitJoinFlag))
+ if (deCONZ::appArgumentNumeric("--always-add-lights", 0) == 1)
+ {
+ }
+ else if (!(searchLightsState == SearchLightsActive || permitJoinFlag))
{
// don't add new light node when search is not active
return;
