bleBox Device integration

good info. I will look at on my Saturday. Strange things are going on.

Please confirm the CHILD device driver you are using. I am going to hard code some of the values that are causing (and should not be) problems. Something really strange is going on.

Device type: wLightBox
Hardware version: 5.2
Software version: 0.1022
API type: wLightBox
API version: 20200229

Driver version 2.0
wLightbox rgbw

What I am seeing is problems with parent to child communications during setup and child preferences causng problems. These are significant indicating platform changes.

  • sendCommand is missing channel and fadeSpeed. Channel is passed from parent. Fade speed is calculated from a preference.
  • preference debug and descriptionText are both null.
  • parent.refresh() (child calling refresh in parent) is failing

Next try (without structure change)

  • Hardcode the child to solve the date problems.
  • do not call parent refresh for the refresh command. Use another command.

Have you test. This may fail.

The next test is to combine the parent-child into a single driver. This will make the HMI more complex and you may not be even able to access the enhanced child functions (colors, levels, etc.) from the new smart-things interface anyway.

Dave

One other thing:

If you just want to have minimal control of the light strip (on and off or on/off and level), I can also do a single driver for that very quickly for you. As long as the IDE is active, it would be consistent with the smartThing phone app as long as the IDE is active (next six months or so).

dave

I have updated the blebox wLightBox rgbw DRIVER only. try it when you get time. Path:

https://raw.githubusercontent.com/DaveGut/bleBox-SmartThings/master/devicetypes/davegut/blebox-wlightbox-rgbw.src/blebox-wlightbox-rgbw.groovy

I am sending the logs.

69dbef8d-652d-44d0-ac9f-92624932f902 20:41:55: error groovy.lang.MissingMethodException: No signature of method: script_app_d78a778ef1d5c66f3d6787dd0a04ec17fe8856b06cb145d8b509581b3383f9e6.childCommand() is applicable for argument types: (java.lang.String, java.lang.String, null) values: [rgbw, 00000000, null] @line 132 (off)

69dbef8d-652d-44d0-ac9f-92624932f902 20:41:55: debug Lampa sypialnia 1.3.02: off

69dbef8d-652d-44d0-ac9f-92624932f902 20:41:27: error groovy.lang.MissingMethodException: No signature of method: script_app_d78a778ef1d5c66f3d6787dd0a04ec17fe8856b06cb145d8b509581b3383f9e6.childCommand() is applicable for argument types: (java.lang.String, java.lang.String, null) values: [rgbw, 00000000, null] @line 127 (on)

69dbef8d-652d-44d0-ac9f-92624932f902 20:41:27: debug Lampa sypialnia 1.3.02: on: 00000000

69dbef8d-652d-44d0-ac9f-92624932f902 20:41:19: error groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.math.BigDecimal#plus.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.Character]
[class java.lang.String]
[class java.lang.Number]
[class java.math.MathContext] @line 194 (setColor)

69dbef8d-652d-44d0-ac9f-92624932f902 20:41:19: debug Lampa sypialnia 1.3.02: setColor: [hue:null, saturation:null, level:14.0]

69dbef8d-652d-44d0-ac9f-92624932f902 20:41:19: debug Lampa sypialnia 1.3.02: setLevel: level = 14.0)

69dbef8d-652d-44d0-ac9f-92624932f902 20:40:49: error groovy.lang.MissingPropertyException: No such property: level for class: java.lang.String @line 192 (setColor)

69dbef8d-652d-44d0-ac9f-92624932f902 20:40:49: debug Lampa sypialnia 1.3.02: setColor: #a75163

69dbef8d-652d-44d0-ac9f-92624932f902 20:40:02: error groovy.lang.MissingMethodException: No signature of method: script_app_d78a778ef1d5c66f3d6787dd0a04ec17fe8856b06cb145d8b509581b3383f9e6.childCommand() is applicable for argument types: (java.lang.String, java.lang.String, null) values: [rgbw, 00000000, null] @line 127 (on)

69dbef8d-652d-44d0-ac9f-92624932f902 20:40:02: debug Lampa sypialnia 1.3.02: on: 00000000

69dbef8d-652d-44d0-ac9f-92624932f902 20:40:02: debug Lampa sypialnia 1.3.02: on: 00000000

69dbef8d-652d-44d0-ac9f-92624932f902 20:40:00: error groovy.lang.MissingMethodException: No signature of method: script_app_d78a778ef1d5c66f3d6787dd0a04ec17fe8856b06cb145d8b509581b3383f9e6.childCommand() is applicable for argument types: (java.lang.String, java.lang.String, null) values: [rgbw, 00000000, null] @line 132 (off)

69dbef8d-652d-44d0-ac9f-92624932f902 20:40:00: debug Lampa sypialnia 1.3.02: off

69dbef8d-652d-44d0-ac9f-92624932f902 20:40:00: debug Lampa sypialnia 1.3.02: off

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:49: error groovy.lang.MissingMethodException: No signature of method: script_app_d78a778ef1d5c66f3d6787dd0a04ec17fe8856b06cb145d8b509581b3383f9e6.childCommand() is applicable for argument types: (java.lang.String, java.lang.String, null) values: [rgbw, 00000000, null] @line 132 (off)

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:49: debug Lampa sypialnia 1.3.02: off

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:49: debug Lampa sypialnia 1.3.02: setLevel: level = 0.0)

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:47: error groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.math.BigDecimal#plus.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.Character]
[class java.lang.String]
[class java.lang.Number]
[class java.math.MathContext] @line 194 (setColor)

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:47: debug Lampa sypialnia 1.3.02: setColor: [hue:null, saturation:null, level:30.0]

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:47: debug Lampa sypialnia 1.3.02: setLevel: level = 30.0)

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:43: error groovy.lang.MissingMethodException: No signature of method: script_app_d78a778ef1d5c66f3d6787dd0a04ec17fe8856b06cb145d8b509581b3383f9e6.childCommand() is applicable for argument types: (java.lang.String, java.lang.String, null) values: [rgbw, 00000000, null] @line 127 (on)

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:43: debug Lampa sypialnia 1.3.02: on: 00000000

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:41: error groovy.lang.MissingMethodException: No signature of method: script_app_d78a778ef1d5c66f3d6787dd0a04ec17fe8856b06cb145d8b509581b3383f9e6.childCommand() is applicable for argument types: (java.lang.String, java.lang.String, null) values: [rgbw, 00000000, null] @line 132 (off)

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:41: debug Lampa sypialnia 1.3.02: off

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:41: debug Lampa sypialnia 1.3.02: off

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:32: info Lampa sypialnia 1.3.02: Description text logging is true.

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:32: info Lampa sypialnia 1.3.02: Debug logging is: true.

69dbef8d-652d-44d0-ac9f-92624932f902 20:39:32: info Lampa sypialnia 1.3.02: Updating…


Parent works

OK, What I can offer is a childless driver that allow on/off and set level, no child device. There are definitely some issues with the smartThing and how they currently work children (again, this code worked when released in 2019 - but as the hub sunsets, changes are occuring).

What do you want???

Simple controller on, off and level. If it is possible.

I will have it today or tomorrow. Not a hard item.

Thank you. I am grateful to you.

It ma be several days. I will have to check the algorithms for level out in Hubitat first. Not a big deal, just some time consumption (and keep me busy which is good.

Dave