Random color for Ikea bulbs via the Ikea button

I would like to create a flow that, when the left Ikea button is pressed, selects a random color and applies it to the specified bulb. However, when I click the button, a random number is selected, but the bulb doesn’t change color. I think the issue is that the “°” symbol is missing after the number, and I can’t add it. Is there another solution?

Previously, I created a flow using the “generate a random color” card for Ikea bulbs, but this flow generates a different color for each bulb. I would like a random generation that applies the same color to both of my bulbs.

Here you’ll find the real values used by capabilities
https://tools.developer.homey.app/tools/devices
You will find there is no color capability number greater than 1, so 360 is not gonna work. It should be “between 0 and 1”


You can use the card’s red dot for error messages, so use it I’d say!
Screenshot from 2024-08-22 00-33-06


No, there shouldn’t be anything used but numeric values

1 Like

Even though I generate a random value between 0.00 and 0.99, it always selects either 0 or 1. I found another solution using a script, and it works.

CleanShot 2024-08-22 at 14.38.48@2x

const nb_aleatoire = Math.floor(Math.random() * 100) / 100;
return nb_aleatoire;

I think you should let the “Custom logic” app developer know you found a bug.
That card probably only works with zero digits now.

This is also a way to accomplish it

Value check: