The top part of the post above is spot on Cobra
New
Leds on off at user configurable setting, ie sunrise, sunset, time, even other switch state, if a bright level could be set at on point as well fabtastic
Existing already in use
Movement detect, your energy app trips a v switch in St
New
Above v switch power detection causes user defined state change to leds (colours,modes even bright level)
Existing already in use
V switch auto returns to off state due to movement sensor time out
New
Leds return to original on state
Your optional additions always make apps more flexible, i use an outside dumb movement sensor but adding software options for other things is usefull for future
already in use
dumb pir and 30w led security light powered via wall plug 24/7 between wall and security light plug is a st connected greenwave power node that monitors power consumption
the dumb pir has its own on off lux movement sensor, as the lux drops it becomes active and if it detects movement it draws current from the plug which has the greenwave power node connected
you wrote the app so that if power goes above the dumb pir sleep state( configurable) it would trigger an announce and trip a v switch in st that I have labelled ( front light On/off) this works perfectly, on movement after dark the security light lights up, St shows front light on and I get a voice in Sonos saying ( someone is outside ) and the dogs now start barking because they have cottoned on
with a simple addition of a st plug and your app we have made a dumb pir smart and a first class security system
New
The addition of more lights ( my Leds ) makes for more security at my front door, they are on from sunset to sunrise as a nice external affect but could be used in conjunction with the main security light to go from 50% bright colour change affect to 100% bright white or Police or whatever, probably white as the wife moans about the Police version( More leds now planned along the front )
When the PIR no longer detects movement the Leds simply go back to there 50% bight colour change affect and all is well again in the world
thinking about it Cobra, you could edit your existing ( Power speak v1.1.0) and add a couple more options for colour/mode choice under ( Turn on this indicator Switch ), so if the leds are selected there options are exposed, would need to add return to original state somewhere when off as well and how a sunrise sunset would affect it also needs consideration I suppose