Unable to set hue on Aeotec RGB bulbs. Was working. Stopped working


#1

1) Give a description of the problem
set hue apparently stopped working on 2 monoprice (Aeotec v1) RGB bulbs.

2) What is the expected behavior?
I don’t think this was due to modification of the script. Bulbs should be set to random hue during day, blue at night.

3) What is happening/not happening?
Bulbs are always blue. After manually changing to another color, colors will reset at night back to blue and stay blue. So apparently Set Color is working, Set Hue is not. I noticed a math error in the log. Not sure if that is new.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)

Web Core log

|+2ms|╔Received event [Foyer Multi Sensor].motion = inactive with a delay of 160ms|
| --- | --- |
|+133ms|║RunTime Analysis CS > 21ms > PS > 69ms > PE > 43ms > CE|
|+136ms|║Runtime (46262 bytes) successfully initialized in 69ms (v0.3.107.20180806) (133ms)|
|+138ms|║╔Execution stage started|
|+155ms|║║Comparison (enum) inactive changes_to (string) active = false (1ms)|
|+157ms|║║Cancelling condition #2's schedules...|
|+158ms|║║Condition #2 evaluated false (14ms)|
|+160ms|║║Cancelling condition #1's schedules...|
|+161ms|║║Condition group #1 evaluated false (state changed) (17ms)|
|+165ms|║║Cancelling statement #4's schedules...|
|+289ms|║║Executed physical command [Stair RGBW Light 1].off() (119ms)|
|+290ms|║║Executed [Stair RGBW Light 1].off (121ms)|
|+313ms|║║Executed physical command [Stair RGBW Light 2].off() (18ms)|
|+314ms|║║Executed [Stair RGBW Light 2].off (22ms)|
|+317ms|║╚Execution stage complete. (180ms)|
|+319ms|╚Event processed successfully (319ms)|
|12/11/2018, 7:20:06 PM +417ms|
|+2ms|╔Received event [Foyer Multi Sensor].motion = active with a delay of 202ms|
|+137ms|║RunTime Analysis CS > 23ms > PS > 75ms > PE > 39ms > CE|
|+139ms|║Runtime (46230 bytes) successfully initialized in 75ms (v0.3.107.20180806) (137ms)|
|+141ms|║╔Execution stage started|
|+157ms|║║Comparison (enum) active changes_to (string) active = true (1ms)|
|+160ms|║║Cancelling condition #2's schedules...|
|+161ms|║║Condition #2 evaluated true (13ms)|
|+162ms|║║Cancelling condition #1's schedules...|
|+163ms|║║Condition group #1 evaluated true (state changed) (17ms)|
|+172ms|║║Comparison (integer) 1 is_equal_to (integer) 0 = false (2ms)|
|+174ms|║║Cancelling condition #48's schedules...|
|+175ms|║║Condition #48 evaluated false (9ms)|
|+176ms|║║Cancelling condition #37's schedules...|
|+177ms|║║Condition group #37 evaluated false (state changed) (11ms)|
|+181ms|║║Cancelling statement #38's schedules...|
|+207ms|║║Calculating (integer) 1 * (integer) 10 >> (integer) 10|
|+212ms|║║Calculating (integer) 60 + (integer) 10 >> (integer) 70|
|+224ms|║║Calculating (string) At + (string) 19:20 >> (string) At 19:20|
|+231ms|║║Calculating (string) At 19:20 + (string) ... sunlightScale0to4: >> (string) At 19:20... sunlightScale0to4:|
|+238ms|║║Calculating (string) At 19:20... sunlightScale0to4: + (string) 1 >> (string) At 19:20... sunlightScale0to4: 1|
|+245ms|║║Calculating (string) At 19:20... sunlightScale0to4: 1 + (string) ... Setting to random hues >> (string) At 19:20... sunlightScale0to4: 1... Setting to random hues|
|+250ms|║║Calculating (string) At 19:20... sunlightScale0to4: 1... Setting to random hues + (string) 115 >> (string) At 19:20... sunlightScale0to4: 1... Setting to random hues 115|
|+256ms|║║Calculating (string) At 19:20... sunlightScale0to4: 1... Setting to random hues 115 + (string) and >> (string) At 19:20... sunlightScale0to4: 1... Setting to random hues 115 and|
|+261ms|║║Calculating (string) At 19:20... sunlightScale0to4: 1... Setting to random hues 115 and + (string) 326 >> (string) At 19:20... sunlightScale0to4: 1... Setting to random hues 115 and 326|
|+266ms|║║Calculating (string) At 19:20... sunlightScale0to4: 1... Setting to random hues 115 and 326 + (string) at >> (string) At 19:20... sunlightScale0to4: 1... Setting to random hues 115 and 326 at|
|+271ms|║║Calculating (string) At 19:20... sunlightScale0to4: 1... Setting to random hues 115 and 326 at + (string) 70 >> (string) At 19:20... sunlightScale0to4: 1... Setting to random hues 115 and 326 at 70|
|+275ms|║║Calculating (string) At 19:20... sunlightScale0to4: 1... Setting to random hues 115 and 326 at 70 + (string) % >> (string) At 19:20... sunlightScale0to4: 1... Setting to random hues 115 and 326 at 70%|
|+280ms|║║Executed virtual command [Stair RGBW Light 1].setState (1ms)|
|+320ms|║║Executed physical command [Stair RGBW Light 1].setHue([80]) (31ms)|
|+321ms|║║Executed [Stair RGBW Light 1].setHue (34ms)|
|+331ms|║║Calculating (integer) 1 * (integer) 10 >> (integer) 10|
|+337ms|║║Calculating (integer) 60 + (integer) 10 >> (integer) 70|
|+370ms|║║Executed physical command [Stair RGBW Light 1].setLevel([70]) (28ms)|
|+371ms|║║Executed [Stair RGBW Light 1].setLevel (31ms)|
|+375ms|║║Cancelling statement #41's schedules...|
|+406ms|║║Executed physical command [Stair RGBW Light 2].setHue([1]) (20ms)|
|+407ms|║║Executed [Stair RGBW Light 2].setHue (23ms)|
|+416ms|║║Calculating (integer) 1 * (integer) 10 >> (integer) 10|
|+421ms|║║Calculating (integer) 60 + (integer) 10 >> (integer) 70|
|+445ms|║║Executed physical command [Stair RGBW Light 2].setLevel([70]) (20ms)|
|+447ms|║║Executed [Stair RGBW Light 2].setLevel (23ms)|
|+451ms|║╚Execution stage complete. (311ms)|
|+452ms|╚Event processed successfully (452ms)|

IDE Log

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:23 PM: error groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @line 303 (huesatToRGB)

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:23 PM: debug setColor([hue:77])

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:23 PM: debug setHue(77)

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:23 PM: debug setColor([hue:77])

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:23 PM: debug setHue(77)

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:19 PM: error groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @line 303 (huesatToRGB)

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:19 PM: debug setColor([hue:75])

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:19 PM: debug setHue(75)

[0800a5cc-ed9a-49d2-84ee-43a0fb6ea934](https://graph-na04-useast2.api.smartthings.com/ide/logs#0800a5cc-ed9a-49d2-84ee-43a0fb6ea934) 7:28:16 PM: debug Parse returned [Kitchen table is on, Kitchen table dimmed 35 %]

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:13 PM: error groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @line 303 (huesatToRGB)

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:13 PM: debug setColor([hue:72])

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:13 PM: debug setHue(72)

 7:28:13 PM: debug setColor([hue:72])

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:13 PM: debug setHue(72)

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/8', [name:hue, value:0, descriptionText:Color has changed, displayed:false])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/7', [name:level, value:1, descriptionText:Level has changed to 1%])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/6', [name:colorTemperature, value:2890, descriptionText:Color temperature has changed])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/4', [name:switch, value:on])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/3', [name:saturation, value:0, descriptionText:Color has changed, displayed:false])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/3', [name:colorTemperature, value:2890, descriptionText:Color temperature has changed])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/4', [name:hue, value:100, descriptionText:Color has changed, displayed:false])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/4', [name:level, value:100, descriptionText:Level has changed to 100%])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/2', [name:hue, value:0, descriptionText:Color has changed, displayed:false])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/3', [name:color, value:#FFD381, descriptionText:Color has changed, displayed:true])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/2', [name:colorTemperature, value:2890, descriptionText:Color temperature has changed])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/3', [name:hue, value:0, descriptionText:Color has changed, displayed:false])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/2', [name:level, value:100, descriptionText:Level has changed to 100%])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug super_connect 9 may not reachable by Hue bridge

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/1', [name:hue, value:23, descriptionText:Color has changed, displayed:false])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug super_connect 8 may not reachable by Hue bridge

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/1', [name:colorTemperature, value:2710, descriptionText:Color temperature has changed])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug super_connect 5 may not reachable by Hue bridge

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug createChildDeviceEvent('00178824FA82/1', [name:switch, value:on])

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug super_connect 4 may not reachable by Hue bridge

[b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8](https://graph-na04-useast2.api.smartthings.com/ide/logs#b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8) 7:28:08 PM: debug 'zw device: 10, command: 2603, payload: 46 ' parsed to [[name:switch, value:on, descriptionText:Stair RGBW Light 2 was turned on, isStateChange:false, displayed:false, linkText:Stair RGBW Light 2], [name:level, value:70, unit:%, isStateChange:false, displayed:false, linkText:Stair RGBW Light 2, descriptionText:Stair RGBW Light 2 level is 70%]]

[a52d0977-f255-4308-aded-3ccb38b584fc](https://graph-na04-useast2.api.smartthings.com/ide/logs#a52d0977-f255-4308-aded-3ccb38b584fc) 7:28:08 PM: debug 'zw device: 0F, command: 2603, payload: 46 ' parsed to [[name:switch, value:on, descriptionText:Stair RGBW Light 1 was turned on, isStateChange:false, displayed:false, linkText:Stair RGBW Light 1], [name:level, value:70, unit:%, isStateChange:false, displayed:false, linkText:Stair RGBW Light 1, descriptionText:Stair RGBW Light 1 level is 70%]]

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:08 PM: error groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @line 303 (huesatToRGB)

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:08 PM: debug setColor([hue:69])

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:08 PM: debug setHue(69)

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:08 PM: error groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @line 303 (huesatToRGB)

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:08 PM: debug setColor([hue:69])

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:08 PM: debug setHue(69)

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug checkBridgeStatus()

[e51419d3-b76b-4865-88cf-ca0042d7f179](https://graph-na04-useast2.api.smartthings.com/ide/logs#e51419d3-b76b-4865-88cf-ca0042d7f179) 7:28:08 PM: debug poll()

[b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8](https://graph-na04-useast2.api.smartthings.com/ide/logs#b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8) 7:28:07 PM: debug 'zw device: 10, command: 2003, payload: 46 ' parsed to [[name:switch, value:on, descriptionText:Stair RGBW Light 2 was turned on, isStateChange:true, displayed:true, linkText:Stair RGBW Light 2], [name:level, value:70, unit:%, isStateChange:false, displayed:false, linkText:Stair RGBW Light 2, descriptionText:Stair RGBW Light 2 level is 70%]]

[a52d0977-f255-4308-aded-3ccb38b584fc](https://graph-na04-useast2.api.smartthings.com/ide/logs#a52d0977-f255-4308-aded-3ccb38b584fc) 7:28:07 PM: debug 'zw device: 0F, command: 2003, payload: 46 ' parsed to [[name:switch, value:on, descriptionText:Stair RGBW Light 1 was turned on, isStateChange:true, displayed:true, linkText:Stair RGBW Light 1], [name:level, value:70, unit:%, isStateChange:false, displayed:false, linkText:Stair RGBW Light 1, descriptionText:Stair RGBW Light 1 level is 70%]]

[b5044580-ef9a-4cad-b338-ddc130b7ba84](https://graph-na04-useast2.api.smartthings.com/ide/logs#b5044580-ef9a-4cad-b338-ddc130b7ba84) 7:28:07 PM: info ║ At 19:28: Motion from Foyer Multi Sensor... Evening Light switch was already ON.

[b5044580-ef9a-4cad-b338-ddc130b7ba84](https://graph-na04-useast2.api.smartthings.com/ide/logs#b5044580-ef9a-4cad-b338-ddc130b7ba84) 7:28:06 PM: info ║ At 19:28: Motion from Foyer Multi Sensor... Running Light switch was already ON.

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:07 PM: debug ║║ Calculating (integer) 1 * (integer) 10 >> (integer) 10

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Calculating (string) At 19:28... sunlightScale0to4: + (string) 1 >> (string) At 19:28... sunlightScale0to4: 1

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Calculating (string) At 19:28... sunlightScale0to4: 1... Setting to random hues 134 and 268 + (string) at >> (string) At 19:28... sunlightScale0to4: 1... Setting to random hues 134 and 268 at

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Calculating (string) At + (string) 19:28 >> (string) At 19:28

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Calculating (integer) 1 * (integer) 10 >> (integer) 10

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Calculating (string) At 19:28... sunlightScale0to4: 1... Setting to random hues + (string) 134 >> (string) At 19:28... sunlightScale0to4: 1... Setting to random hues 134

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Calculating (string) At 19:28... sunlightScale0to4: 1 + (string) ... Setting to random hues >> (string) At 19:28... sunlightScale0to4: 1... Setting to random hues

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Cancelling statement #38's schedules...

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Calculating (string) At 19:28 + (string) ... sunlightScale0to4: >> (string) At 19:28... sunlightScale0to4:

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Comparison (integer) 1 is_equal_to (integer) 0 = false (2ms)

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Calculating (integer) 60 + (integer) 10 >> (integer) 70

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Cancelling condition #1's schedules...

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Condition #48 evaluated false (7ms)

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Condition group #37 evaluated false (state did not change) (9ms)

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Condition group #1 evaluated true (state changed) (18ms)

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║║ Cancelling condition #2's schedules...

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: trace ║╚ Execution stage started

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: trace ║ Runtime (46233 bytes) successfully initialized in 73ms (v0.3.107.20180806) (221ms)

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: debug ║ RunTime Analysis CS > 100ms > PS > 73ms > PE > 48ms > CE

[5088c6f2-947d-472c-a886-ce1d2bf0fd70](https://graph-na04-useast2.api.smartthings.com/ide/logs#5088c6f2-947d-472c-a886-ce1d2bf0fd70) 7:28:06 PM: info ╚ Received event [Foyer Multi Sensor].motion = active with a delay of 218ms

[b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8](https://graph-na04-useast2.api.smartthings.com/ide/logs#b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8) 7:28:07 PM: debug setLevel(70, 1)

[b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8](https://graph-na04-useast2.api.smartthings.com/ide/logs#b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8) 7:28:07 PM: error groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @line 303 (huesatToRGB)

[b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8](https://graph-na04-useast2.api.smartthings.com/ide/logs#b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8) 7:28:07 PM: debug setColor([hue:81])

[b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8](https://graph-na04-useast2.api.smartthings.com/ide/logs#b7c2d1d8-ad77-4264-b28f-7e4ee4d58cd8) 7:28:07 PM: debug setHue(81)

[a52d0977-f255-4308-aded-3ccb38b584fc](https://graph-na04-useast2.api.smartthings.com/ide/logs#a52d0977-f255-4308-aded-3ccb38b584fc) 7:28:06 PM: debug setLevel(70, 1)

[a52d0977-f255-4308-aded-3ccb38b584fc](https://graph-na04-useast2.api.smartthings.com/ide/logs#a52d0977-f255-4308-aded-3ccb38b584fc) 7:28:06 PM: error groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @line 303 (huesatToRGB)

[a52d0977-f255-4308-aded-3ccb38b584fc](https://graph-na04-useast2.api.smartthings.com/ide/logs#a52d0977-f255-4308-aded-3ccb38b584fc) 7:28:06 PM: debug setColor([hue:98])

[a52d0977-f255-4308-aded-3ccb38b584fc](https://graph-na04-useast2.api.smartthings.com/ide/logs#a52d0977-f255-4308-aded-3ccb38b584fc) 7:28:06 PM: debug setHue(98)

[a52d0977-f255-4308-aded-3ccb38b584fc](https://graph-na04-useast2.api.smartthings.com/ide/logs#a52d0977-f255-4308-aded-3ccb38b584fc) 7:28:06 PM: error groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @line 303 (huesatToRGB)

[a52d0977-f255-4308-aded-3ccb38b584fc](https://graph-na04-useast2.api.smartthings.com/ide/logs#a52d0977-f255-4308-aded-3ccb38b584fc) 7:28:06 PM: debug setColor([hue:98])

[a52d0977-f255-4308-aded-3ccb38b584fc](https://graph-na04-useast2.api.smartthings.com/ide/logs#a52d0977-f255-4308-aded-3ccb38b584fc) 7:28:06 PM: debug setHue(98)

[d8f19a43-0297-48b7-9af9-84344099e29d](https://graph-na04-useast2.api.smartthings.com/ide/logs#d8f19a43-0297-48b7-9af9-84344099e29d) 7:28:06 PM: info SHM isActiveSensor(motion:active, app: off, location: off) = false, locationId: 5613fe92-2062-4e2c-92de-2152da1e4f1e, ISA: d8f19a43-0297-48b7-9af9-84344099e29d

[d8f19a43-0297-48b7-9af9-84344099e29d](https://graph-na04-useast2.api.smartthings.com/ide/logs#d8f19a43-0297-48b7-9af9-84344099e29d) 7:28:06 PM: debug motionOrContactHandler(Foyer Multi Sensor motion:active)

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:04 PM: error groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @line 303 (huesatToRGB)

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:04 PM: debug setColor([hue:66])

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:04 PM: debug setHue(66)

[b5044580-ef9a-4cad-b338-ddc130b7ba84](https://graph-na04-useast2.api.smartthings.com/ide/logs#b5044580-ef9a-4cad-b338-ddc130b7ba84) 7:28:03 PM: info ║ At 19:28: Motion from Kitchen GE Motion... Evening Light switch was already ON.

[b5044580-ef9a-4cad-b338-ddc130b7ba84](https://graph-na04-useast2.api.smartthings.com/ide/logs#b5044580-ef9a-4cad-b338-ddc130b7ba84) 7:28:03 PM: info ║ At 19:28: Motion from Kitchen GE Motion... Running Light switch was already ON.

[d8f19a43-0297-48b7-9af9-84344099e29d](https://graph-na04-useast2.api.smartthings.com/ide/logs#d8f19a43-0297-48b7-9af9-84344099e29d) 7:28:03 PM: info SHM isActiveSensor(motion:active, app: off, location: off) = false, locationId: 5613fe92-2062-4e2c-92de-2152da1e4f1e, ISA: d8f19a43-0297-48b7-9af9-84344099e29d

[d8f19a43-0297-48b7-9af9-84344099e29d](https://graph-na04-useast2.api.smartthings.com/ide/logs#d8f19a43-0297-48b7-9af9-84344099e29d) 7:28:03 PM: debug motionOrContactHandler(Hall Motion Sensor motion:active)

[b5044580-ef9a-4cad-b338-ddc130b7ba84](https://graph-na04-useast2.api.smartthings.com/ide/logs#b5044580-ef9a-4cad-b338-ddc130b7ba84) 7:28:04 PM: info ║ At 19:28: Motion from Hall Motion Sensor... Evening Light switch was already ON.

[b5044580-ef9a-4cad-b338-ddc130b7ba84](https://graph-na04-useast2.api.smartthings.com/ide/logs#b5044580-ef9a-4cad-b338-ddc130b7ba84) 7:28:03 PM: info ║ At 19:28: Motion from Hall Motion Sensor... Running Light switch was already ON.

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:04 PM: error groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @line 303 (huesatToRGB)

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:04 PM: debug setColor([hue:66])

[a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa](https://graph-na04-useast2.api.smartthings.com/ide/logs#a7a41e7a-e1d0-4b31-849f-8fdd7c41a8aa) 7:28:04 PM: debug setHue(66)

[4a162a2e-04df-4282-ae12-8b787cb24e36](https://graph-na04-useast2.api.smartthings.com/ide/logs#4a162a2e-04df-4282-ae12-8b787cb24e36) 7:28:03 PM: debug Non-parsed event: zw device: 08, command: 600D, payload: 02 00 82 01

#2

I am not sure if this applies to your specific code or devices, but in some cases, the hue is an integer between 0 and 100. (not 360 like we would expect)

You can test to see if this applies to your setup by changing line 21 & 22 to max out at 100 (instead of 360).


EDIT
Also, some devices can only change colors if the bulb is already on.
You can test this portion by moving the “set level” before the “set hue”.


#3

I put the set level before the set hue and limited the random range to 100. No joy.

I changed the Set Hue to Set Color and I get color changes.

Tried fixed hue values. That did not work.

It would appear that setting the hue just simply stopped working after months of working.


#4

Upon closer examination, your log looks like the right hue command was sent:

|+320ms|║║Executed physical command [Stair RGBW Light 1].setHue([80]) (31ms)|
|+321ms|║║Executed [Stair RGBW Light 1].setHue (34ms)|
...
|+406ms|║║Executed physical command [Stair RGBW Light 2].setHue([1]) (20ms)|
|+407ms|║║Executed [Stair RGBW Light 2].setHue (23ms)|

I tested a smaller version of this with my Philips Hue bulbs, and it worked every time using random(360):

One thing to keep in mind with colors is that Saturation is just as important as Hue. For example, if my saturation is maxed at 100, then the hue adjustments are very noticeable. If my saturation number is real low, then I cannot visually tell when the hue changes.

I suspect that is what is happening to you.


Adding the following command to your daytime code would likely solve your issue, and allow you to notice the hue changes:

temp


#5

Thanks for the reply.

I actually tried exactly that earlier today but it didn’t help. I will give it another go.


#6

Just to rule out a faulty bulb or device handler, would you please import “n8oo” and push test a few times?
(waiting 4-5 seconds between each push)

temp


#7

Well… It just took a Set Color HSL with my random hue. I can try your test case shortly.


#8

Your code brings up the light with its previous color settings and does not change it regardless of how many times I hit test. I tested it with both of my Aeotec bulbs.

This is the original problem.


#9

I imported one of my Hue bulbs into WebCore, and…

Setting the hue on the Hue works with your test code. Not sure if I’m happy or sad.


#10

Well, even though the test seemed negative, it does help us to rule out many possibilities.
It actually sounds like either your RGB bulbs or Device Handler does not like the command “Set hue”.

Hmmm, that gets me thinking…
“Set hue” is a device command…
and
“Set color … (HSL)” is an emulated command

I wonder if this slight alteration will work for your bulbs when testing?

index

(This is how I normally change hues)


The single line looks like this:

temp


#11

Yes, the Set Color HSL worked with my Aeotec bulbs.


#12

Perfect. It should be easy to implement that now in your original piston, since we know it works!!

Excellent detective work!!


#13

Thanks so much. I don’t think I would arrived at this point anytime soon without your help.


#14

I am glad to be able to help… :+1:


I guess it helps us to keep in mind that there are so many different manufacturers, (all doing things a little differently) it makes sense that certain code ends up working better with certain devices.

I don’t own any Aeotec RGBs, so this was a learning experience for me as well.

Perhaps it should be me thanking you…


#15

Any thoughts on why it would suddenly stop working?

I know I added a second motion sensor a few weeks ago, but I’m fairly certain that it was stuck on blue before that. Even if it did stop working right about that time I don’t see why it would have worked with the Set Hue for months and then stop working.


#16

It stopped working again? Or are you asking about the original issue?


#17

Sorry. Original issue.


#18

Without doing more testing, I am not sure why it stopped working originally.