Away mode light controller based on room based probability function


#1

I have been working on a away/vacation light controller where I define the probability of the light is on in each room to ensure that the lights do not change state randomly. In the afternoon some rooms are more likely to have light on, but at night this will change

In the piston I have defined the probability as a fixed percentage for each room, but I would like to find a smart way to describe these probability percentages as a function of time. Therefore I hope someone can give me some hints about this or in general how to improve the piston