Open weather app bug - cloudiness

Hi,

I’m trying to use cloudiness output to control shades however it seems the output for cloudiness is a string not and integer so that means I can’t use “>” or “<“ comparators for integers. The cloudiness variable only spits out numbers so this seems to be a bug. Can this be fixed?

I can replicate this in Rule Machine.

@bobbyD

Just create a number variable and use set variable to assign the string value to it. It will do the conversion when it sets the number variable. Then use that variable for your comparisons.

Wouldn’t it make more sense for an attribute consisting of numbers to be treated as an integer rather than a string?

3 Likes

The work-around is good, but agree that it makes sense that...

And then people won't run into this issue and have to use a work-around. :wink:

1 Like

Not sure why this attribute was specified as a string, but from what I can see in their API docs, it should be a percent, which I assume would always be numeric. This will be changed in the next platform release, currently in beta.

3 Likes