cancel
Showing results for 
Search instead for 
Did you mean: 

Random Number/Random Selection

rdzhuang
Community Member

Hi,

Not sure if this is possible with YAMLs, butI'd like to use a random number or choose a random device from a list of devices. Would be amazing if I could use a loop as well. Does anyone have any ideas how I can accomplish that?

2 REPLIES 2

rob29
Community Member

Hi Pal, did you find the way how to use random numbers? I would like to create a script to turn on/off the light randomly when I am not at home. 

rdzhuang
Community Member

I did not. Funny though because that's the same use-case I wanted it for.