1) Give a description of the problem
First time poster here, learning to use WebCoRE. Trying to create a Piston that turns on one Hue bulb when movement detected overnight.  If the colour is already set to white then just set the level to 20%. if the colour is not white, then set the colour to White or #FFFFFF and then sets the level to 20%.
2) What is the expected behavior?
To turn on one bulb when movement detected and either set the level to 20%. Changes to white or #FFFFFF if bulb has been set to another colour previously, then dims to 20%
3) What is happening/not happening?
Whenever movement is detected, the level of the bulb is set to 100% and then dims to 20%, every time movement is sensed. I note in the Logs below that if a Set Colour command is used, part of that command, sets the level to 100%. I tried using the ELSE however it still appears to set the colour and then dim.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
| +2ms | â•”Received event [Living Room Sensor].motion = inactive with a delay of 543ms | 
|---|---|
| +137ms | â•‘RunTime Analysis CS > 17ms > PS > 57ms > PE > 63ms > CE | 
| +140ms | â•‘Runtime (38622 bytes) successfully initialized in 57ms (v0.3.108.20180906) (137ms) | 
| +141ms | â•‘â•”Execution stage started | 
| +162ms | ║║Comparison (time) 36773859 is_between (time) 4500000 … (time) 23340000 = false (12ms) | 
| +164ms | â•‘â•‘Condition #3 evaluated false (17ms) | 
| +166ms | â•‘â•‘Condition group #1 evaluated false (state did not change) (18ms) | 
| +169ms | ║║Cancelling statement #4’s schedules… | 
| +177ms | â•‘â•‘Skipped execution of physical command [Couch Lamp].on([]) because it would make no change to the device. (3ms) | 
| +178ms | â•‘â•‘Executed [Couch Lamp].on (5ms) | 
| +196ms | â•‘â•‘Executed physical command [Couch Lamp].setColor([[hex: #ffffff, hue:0, saturation:0, level:100]]) (13ms) | 
| +197ms | â•‘â•‘Executed [Couch Lamp].setColor (16ms) | 
| +202ms | â•‘â•‘Executed virtual command [Couch Lamp].wait (0ms) | 
| +203ms | â•‘â•‘Waiting for 1000ms | 
| +1221ms | â•‘â•‘Executed physical command [Couch Lamp].setLevel([20]) (14ms) | 
| +1222ms | â•‘â•‘Executed [Couch Lamp].setLevel (15ms) | 
| +1225ms | ║╚Execution stage complete. (1084ms) | 
| +1227ms | ╚Event processed successfully (1226ms) | 
 
      
    






