SmartThings Community

Bloomsky Weather Station

weather
dth_weather
project_alerts

(Barton.) #1896

Thanks. I added that to the code. The new app still says it can’t connect to the device. Maybe it takes a while to show up properly?


(Jimmy) #1897

go to edit the device in the IDE and click update. then force close the new app and re-open it. you can also try editing the color of the device in the new app. that’s triggered a refresh for me, too.


(Barton.) #1898

Thanks. That worked. It’s just not showing all the other readings like UV and humidity. Not that I actually ever use them.


(Jimmy) #1899

Yeah, it just gets the things you would see on a moisture sensor. Better then nothing and at least let’s you use those attributes in the custom automation creator in the new app.


(Realy Living Dream) #1900

Without checking, it should show lux, unless that’s lost in the new app modifications.


(Jimmy) #1901

it lost that in the new app because the VID doesn’t support LUX. it’s not really “lost”, just not displayed.


(Realy Living Dream) #1902

Okay, I use it in Action Tiles and as trigger for exterior lights.


#1903

For the last couple of weeks, I’ve been getting 0 battery levels from the BS API, even though the official BS app reports the battery is fine (has a charge) … anyone else seeing this?


(Chris) #1904

I’ve been having the same issue.


(DaveC) #1905

@swamplynx … Check your DeviceHander to see if codes that calculate voltage of battery, look like below

    def pct = (miliVolts - minVolts) / (maxVolts - minVolts)
        result = Math.min(100, (int) pct * 100)

If yes, change it like below. This fix for mine. Or just put the close bracket for pct * 100

def pct = ((miliVolts - minVolts) / (maxVolts - minVolts) * 100)
        result = Math.min(100, (int) pct)

(Chris) #1906

Awesome. Thanks for the fix. @tslagle13 maybe you can apply the fix to the github repo when you get a chance.


(Mike Coscia) #1907

Same issue, I have been getting a 0% error for about a week. I tried this fix but get the following error upon saving…

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
script_dth_metadata_0db5aa6c_0f56_45e6_bdf8_26ff598a1aef: 513: expecting '}', found ')' @ line 513, column 75.
/ (maxVolts - minVolts) * 100)
^

(DaveC) #1908

@mikecoscia … It looks like you did not have correct open and close parenthesis. Please double check it


(Mike Coscia) #1909

Fixed, thanks!


(Shane Schwarzman) #1910

Hey guys, I just tried installing the bloomsky app, and when I setup the app it doesnt create the device. this is the error im getting

Error: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.collectAll() is applicable for argument types: (script_app_b82d826c9176fe7ac5fac2af94cce9e55a383bde535c754fb3049abcedb5a8a1$_getBloomskyIds_closure3$_closure10) values: [script_app_b82d826c9176fe7ac5fac2af94cce9e55a383bde535c754fb3049abcedb5a8a1$_getBloomskyIds_closure3$_closure10@47bb7ee1]
Possible solutions: collect(), collect(), collect(groovy.lang.Closure), collect(groovy.lang.Closure), collectMany(groovy.lang.Closure), collect(java.util.Collection, groovy.lang.Closure)


(Gtls7880) #1911

I want to know how to fix the same error


(Shane Schwarzman) #1912

Does anyone have the answer to our issue? I’m still running into the same error code. It appears the Child App wont create


#1913

I’m also getting the same error as the two posts above me. Please help. I bought the bloomsky specifically because it connected to smartthings, but the DTH and smartapp don’t seem to be working anymore.

The error is:
debug Error: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.collectAll() is applicable for argument types: (script_app_b82d826c9176fe7ac5fac2af94cce9e55a383bde535c754fb3049abcedb5a8a1$_getBloomskyIds_closure3$_closure10) values: [script_app_b82d826c9176fe7ac5fac2af94cce9e55a383bde535c754fb3049abcedb5a8a1$_getBloomskyIds_closure3$_closure10@421062a8]
Possible solutions: collect(), collect(), collect(groovy.lang.Closure), collect(groovy.lang.Closure), collectMany(groovy.lang.Closure), collect(java.util.Collection, groovy.lang.Closure)

Does anyone have a fix? Does the DEV have a fix?


(Augustin) #1914

Just bought the bloomsky and I have the same error. :frowning:


#1915

Everyone who is getting the error when trying to connect for the first time………. with the help of smartthings member dchau11, I was able to fix the code and now it works fine.

Log into your IDE
Go to “my smartapps”
Click on the “bloomsky (connect)” app
Scroll down to line 100
Change: collectAll{it.DeviceID} to collect{it.DeviceID}
Save, publish
Load BloomSky smartapp in smartthings, enjoy.

Just have to remove the All on the collect command.