<commit_before># Realistic Random

This is a simple plugin for random lighting control in Indigo.  Unlike other approaches, the plugin will create separate, randomized, WAIT-ON-WAIT-OFF cycles for each light it controls.  

This allows for more realistic effects. For example, you may want the bathroom light to have several widely-varying off periods and short on periods, while ceiling lights remain on for very long periods with only the start and end time randomized.

This approach also means that each device will turn off on it's own idependent schedule versus all devices turning off at once.

## Devices

The plugin defines one new type of Device, called Realistic Randomizer.  Each Realistic Randomizer device can control up to 10 relay/dimmer devices.  If you need more, just create additional Randomizers.

#### Configuration

* **Device** (1-10)  
Define up to 10 relay or dimmer devices for this device to control.

* **Min Delay** (1-10)  
The minimum amount of time before the controlled device is tuned on each cycle.

* **Max Delay** (1-10)  
The maximum amount of time before the controlled device is tuned on each cycle.

* **Min Duration** (1-10)  
The minimum amount of time the controlled device remains on each cycle.

* **Min Duration** (1-10)  
The maximum amount of time the controlled device remains on each cycle.


#### States

* **Next Update**  
Seconds after epoch when the next update is scheduled.  Used internally.


## How to Use

* Turn the Realistic Randomizer device on to begin scheuling WAIT-ON-WAIT-OFF cycles for each dimmer/relay device it controls.

* Turn the Realsitic Randomizer device off to stop scheduling new cycles.  All controlled devices will complete their current cycles as scheduled.  

As a practical matter, this means you will likely want to turn the randomizer on and off in advance of when you would like the actual lights on and off.  A little trial-and-error may be required.<commit_msg>typos<commit_after># Realistic Random

This is a simple plugin for random lighting control in Indigo.  Unlike other approaches, the plugin will create separate, randomized, WAIT-ON-WAIT-OFF cycles for each light it controls.  

This allows for more realistic effects. For example, you may want the bathroom light to have several widely-varying off periods and short on periods, while ceiling lights remain on for very long periods with only the start and end time randomized.

This approach also means that each light will turn off on it's own independent schedule versus all lights turning off at once.

## Devices

The plugin defines one new type of Device, called Realistic Randomizer.  Each Realistic Randomizer device can control up to 10 relay/dimmer devices.  If you need more, just create additional Randomizers.

#### Configuration

* **Device** (1-10)  
Define up to 10 relay or dimmer devices for this device to control.

* **Min Delay** (1-10)  
The minimum amount of time before the controlled device is turned on each cycle.

* **Max Delay** (1-10)  
The maximum amount of time before the controlled device is turned on each cycle.

* **Min Duration** (1-10)  
The minimum amount of time the controlled device remains on each cycle.

* **Min Duration** (1-10)  
The maximum amount of time the controlled device remains on each cycle.


#### States

* **Next Update**  
Seconds after epoch when the next update is scheduled.  Used internally.


## How to Use

* Turn the Realistic Randomizer device on to begin scheduling WAIT-ON-WAIT-OFF cycles for each dimmer/relay device it controls.

* Turn the Realistic Randomizer device off to stop scheduling new cycles.  All controlled devices will complete their current cycles as scheduled.  

As a practical matter, this means you will likely want to turn the randomizer on and off in advance of when you would like the actual lights on and off.  A little trial-and-error may be required.
{'fraction_non_alphanumeric': 0.05282051282051282, 'fraction_numerical': 0.009743589743589744, 'mean_word_length': 4.086049543676662, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2027614', 'n_tokens_mistral': 998, 'n_tokens_neox': 950, 'n_words': 589}