<commit_before><script type="text/x-red" data-help-name="lifx-list-lights">
  <p>Gets lights belonging to the authenticated account.</p>

  <h3>Inputs</h3>
    <dl class="message-properties">
      <dt class="optional">payload.selector
        <span class="property-type">string</span>
      </dt>
      <dd>selector to limit which lights are to be listed</dd>
    </dl>

  <h3>Outputs</h3>
    <dl class="message-properties">
      <dt>payload
        <span class="property-type">Object</span>
      </dt>
      <dd>collection of light objects</dd>
    </dl>

  <h3>Details</h3>
    <p>The node can be configured in the Edit Dialog, or received as parameters in <code>msg.payload</code></p>

  <h3>References</h3>
    <ul>
      <li><a href="https://github.com/alisdairjsmyth/node-red-contrib-lifx-api">Github</a> - the nodes github repository</li>
      <li><a href="https://api.developer.lifx.com/docs/list-lights">List Lights</a> - API documentation</li>
    </ul>
</script>

<script type="text/x-red" data-help-name="lifx-set-state">
  <p>Sets the state of the lights within the selector.</p>

  <h3>Inputs</h3>
    <dl class="message-properties">
      <dt class="optional">payload
        <span class="property-type">Object</span>
      </dt>
      <dd>intended light state</dd>
    </dl>

  <h3>Details</h3>
    <p>The node can be configured in the Edit Dialog, or received as parameters in <code>msg.payload</code>.  All parameters (except for the selector) are optional. If you do not supply a parameter, the node will leave that value untouched.</p>

  <h3>References</h3>
    <ul>
      <li><a href="https://github.com/alisdairjsmyth/node-red-contrib-lifx-api">Github</a> - the nodes github repository</li>
      <li><a href="https://api.developer.lifx.com/docs/set-state">Set State</a> - API documentation</li>
    </ul>

</script>

<script type="text/x-red" data-help-name="lifx-set-states">
    <p>This node allows you to set different states on multiple selectors in a single request.</p>
    <p>Each hash in states is comprised of a state hash as per Set State, except with the inclusion of selector.</p>
    <p>You can optionally use the defaults hash to specify the base hash that each state hash is built from.</p>
    <p>The node only receives its parameters in <code>msg.payload</code>:</p>
    <ul>
        <li> <code>states</code></li>
        <ul>
            <li> <code>selector</code>: The selector to limit which lights are toggled.</li>
            <li> <code>power</code>: The power state you want to set on the selector. on or off</li>
            <li> <code>color</code>: The color to set the light to.</li>
            <li> <code>brightness</code>: The brightness level from 0.0 to 1.0. Overrides any brightness set in color (if any).</li>
            <li> <code>duration</code>: How long in seconds you want the power action to take.</li>
            <li> <code>infrared</code>: The maximum brightness of the infrared channel.</li>
        </ul>
        <li> <code>defaults</code></li>
        <ul>
            <li> <code>power</code>: The power state you want to set on all selectors. on or off</li>
            <li> <code>color</code>: The color to set the light to.</li>
            <li> <code>brightness</code>: The brightness level from 0.0 to 1.0. Overrides any brightness set in color (if any).</li>
            <li> <code>duration</code>: How long in seconds you want the power action to take.</li>
            <li> <code>infrared</code>: The maximum brightness of the infrared channel.</li>
        </ul>
    </ul>
</script>

<script type="text/x-red" data-help-name="lifx-toggle-power">
    <p>Turn off lights if any of them are on, or turn them on if they are all off. All lights matched by the selector will share the same power state after this action. Physically powered off lights are ignored.</p>
    <p>The node can be configured in the Edit Dialog, or received as parameters in <code>msg.payload</code>:</p>
    <ul>
        <li> <code>selector</code>: The selector to limit which lights are toggled.</li>
    </ul>
</script>

<script type="text/x-red" data-help-name="lifx-pulse-effect">
    <p>Performs a pulse effect by quickly flashing between the given colors. Use the parameters to tweak the effect.</p>
    <p>The node can be configured in the Edit Dialog, or received as parameters in <code>msg.payload</code>:</p>
    <ul>
        <li> <code>selector</code>: The selector to limit which lights will run the effect.</li>
        <li> <code>color</code>: The color to use for the pulse effect.</li>
        <li> <code>from_color</code>: The color to start the effect from.</li>
        <li> <code>period</code>: The time in seconds for one cyles of the effect.</li>
        <li> <code>cycles</code>: The number of times to repeat the effect.</li>
        <li> <code>persist</code>: If false set the light back to its previous value when effect ends, if true leave the last effect color.</li>
        <li> <code>power_on</code>: If true, turn the bulb on if it is not already on.</li>
    </ul>
</script>

<script type="text/x-red" data-help-name="lifx-breathe-effect">
    <p>Performs a breathe effect by slowly fading between the given colors. Use the parameters to tweak the effect.</p>
    <p>The node can be configured in the Edit Dialog, or received as parameters in <code>msg.payload</code>:</p>
    <ul><commit_msg>Updated set states node help to comply with style guide<commit_after><script type="text/x-red" data-help-name="lifx-list-lights">
  <p>Gets lights belonging to the authenticated account.</p>

  <h3>Inputs</h3>
    <dl class="message-properties">
      <dt class="optional">payload.selector
        <span class="property-type">string</span>
      </dt>
      <dd>selector to limit which lights are to be listed</dd>
    </dl>

  <h3>Outputs</h3>
    <dl class="message-properties">
      <dt>payload
        <span class="property-type">Object</span>
      </dt>
      <dd>collection of light objects</dd>
    </dl>

  <h3>Details</h3>
    <p>The node can be configured in the Edit Dialog, or received as parameters in <code>msg.payload</code></p>

  <h3>References</h3>
    <ul>
      <li><a href="https://github.com/alisdairjsmyth/node-red-contrib-lifx-api">Github</a> - the nodes github repository</li>
      <li><a href="https://api.developer.lifx.com/docs/list-lights">List Lights</a> - API documentation</li>
    </ul>
</script>

<script type="text/x-red" data-help-name="lifx-set-state">
  <p>Sets the state of the lights within the selector.</p>

  <h3>Inputs</h3>
    <dl class="message-properties">
      <dt class="optional">payload
        <span class="property-type">Object</span>
      </dt>
      <dd>intended light state</dd>
    </dl>

  <h3>Details</h3>
    <p>The node can be configured in the Edit Dialog, or received as parameters in <code>msg.payload</code>.  All parameters (except for the selector) are optional. If you do not supply a parameter, the node will leave that value untouched.</p>

  <h3>References</h3>
    <ul>
      <li><a href="https://github.com/alisdairjsmyth/node-red-contrib-lifx-api">Github</a> - the nodes github repository</li>
      <li><a href="https://api.developer.lifx.com/docs/set-state">Set State</a> - API documentation</li>
    </ul>

</script>

<script type="text/x-red" data-help-name="lifx-set-states">
  <p>This node allows you to set different states on multiple selectors in a single request.</p>

  <h3>Inputs</h3>
    <dl class="message-properties">
      <dt>payload
        <span class="property-type">Object</span>
      </dt>
      <dd>Array of light state hashes</dd>
    </dl>

  <h3>Details</h3>
    <p>Each hash in states is comprised of a state hash as per Set State, except with the inclusion of selector.</p>
    <p>You can optionally use the defaults hash to specify the base hash that each state hash is built from.</p>

  <h3>References</h3>
    <ul>
      <li><a href="https://github.com/alisdairjsmyth/node-red-contrib-lifx-api">Github</a> - the nodes github repository</li>
      <li><a href="https://api.developer.lifx.com/docs/set-states">Set States</a> - API documentation</li>
    </ul>
</script>

<script type="text/x-red" data-help-name="lifx-toggle-power">
    <p>Turn off lights if any of them are on, or turn them on if they are all off. All lights matched by the selector will share the same power state after this action. Physically powered off lights are ignored.</p>
    <p>The node can be configured in the Edit Dialog, or received as parameters in <code>msg.payload</code>:</p>
    <ul>
        <li> <code>selector</code>: The selector to limit which lights are toggled.</li>
    </ul>
</script>

<script type="text/x-red" data-help-name="lifx-pulse-effect">
    <p>Performs a pulse effect by quickly flashing between the given colors. Use the parameters to tweak the effect.</p>
    <p>The node can be configured in the Edit Dialog, or received as parameters in <code>msg.payload</code>:</p>
    <ul>
        <li> <code>selector</code>: The selector to limit which lights will run the effect.</li>
        <li> <code>color</code>: The color to use for the pulse effect.</li>
        <li> <code>from_color</code>: The color to start the effect from.</li>
        <li> <code>period</code>: The time in seconds for one cyles of the effect.</li>
        <li> <code>cycles</code>: The number of times to repeat the effect.</li>
        <li> <code>persist</code>: If false set the light back to its previous value when effect ends, if true leave the last effect color.</li>
        <li> <code>power_on</code>: If true, turn the bulb on if it is not already on.</li>
    </ul>
</script>

<script type="text/x-red" data-help-name="lifx-breathe-effect">
    <p>Performs a breathe effect by slowly fading between the given colors. Use the parameters to tweak the effect.</p>
    <p>The node can be configured in the Edit Dialog, or received as parameters in <code>msg.payload</code>:</p>
    <ul>
{'fraction_non_alphanumeric': 0.1419393696044971, 'fraction_numerical': 0.004216020879341498, 'mean_word_length': 3.187894073139975, 'pattern_counts': {'":': 0, '<': 373, '<?xml version=': 0, '>': 373, 'https://': 10, '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': '1188741', 'n_tokens_mistral': 3150, 'n_tokens_neox': 3081, 'n_words': 1072}