renemarc/home-assistant-config

View on GitHub
scripts/README.md

Summary

Maintainability
Test Coverage
<!-- Header -->
[link-profile]:https://github.com/renemarc
[link-repo]:https://github.com/renemarc/home-assistant-config

<a name="top"></a>
<code>[renemarc][link-profile] / **[home-assistant-config][link-repo]** / **sensors** /</code>

<p align="right"><sub><strong><a href="https://github.com/renemarc/home-assistant-config">๐Ÿ  Home Assistant configuration for a smart-looking place! ๐Ÿ˜Ž</a><br>Be sure to <a href="#" title="star">โญ๏ธ</a> or <a href="#" title="fork">๐Ÿ”ฑ</a> this repo!</strong></sub></p>

<!-- Hero -->
<figure>
    <div align="center">
        <a href="#smart-scenes" title="Scripts
(Philips Hue commercial)"><img src="https://media.giphy.com/media/NR9nzexxmvIfC/giphy.gif" alt="Philips Hue commercial"></a>
    </div>
</figure>

<h1 align="center">Scripts</h1>

For the most part, actions and requirements are based on publishโ€“subscribe pattern where devices and rooms are smart-enough to respond themselves to global parameters and responsible for their own states. See [`/automations/`](../automations) and [`/inputs/input_booleans.yaml`](../inputs/input_booleans.yaml) for details.

## Smart scenes

Smart scenes are a hybrid approach, where global parameters are used when appropriate, and some direct control is employed to achieve a specific setup. They are used both in [`/automations/`](../automations) and as a manual selector in [`/inputs/input_selects.yaml`](../inputs/input_selects.yaml) and [`/appdaemon/dashboards/Main.dash`](../appdaemon/dashboards/Main.dash).

### [`๐Ÿ”† ./scene_daylight.yaml`](scene_daylight.yaml)

Turn on all lights, and set most of the smart ones to a bright daylight white temperature.

<div align="center">
    <figure>
        <div>
            <a href="https://cheezburger.com/7425309184" title="Daylight!"><img src="https://media.giphy.com/media/CPutABwbvXC92/giphy.gif" alt="Opening curtains"></a>
        </div>
        <figcaption>
            <p><strong>Daylight!</strong></p>
        </figcaption>
    </figure>
</div>

<p align="right"><a href="#top" title="Back to top">๐Ÿ”</a></p>

### [`๐Ÿ  ./scene_default.yaml`](scene_default.yaml)

Used to disable scene mode and return light selectors to their default states.

<p align="right"><a href="#top" title="Back to top">๐Ÿ”</a></p>

### [`๐Ÿ‘พ ./scene_gaming.yaml`](scene_gaming.yaml)

Set lounge smart lights to video gaming themed colours and effects, as the HTPC is used for gaming also.

<div align="center">
    <figure>
        <div>
            <a href="https://www.youtube.com/watch?v=x-Wg4mr75yYs" title="Randy March playing video games"><img src="https://media.giphy.com/media/3o6Zt3XykpTtUq39zq/giphy.gif" alt="Randy March playing video games"></a>
        </div>
        <figcaption>
            <p><strong><a href="https://www.youtube.com/watch?v=x-Wg4mr75yY" title="Just 5 more minutes...">Randy March playing video games.</a></strong></p>
        </figcaption>
    </figure>
</div>

<p align="right"><a href="#top" title="Back to top">๐Ÿ”</a></p>

### [`๐Ÿ“บ ./scene_movie.yaml`](scene_movie.yaml)

Enable lounge ambiant lights and set its smart ones to television-friendly colours and effects.

<div align="center">
    <figure>
        <div>
            <a href="https://www.youtube.com/watch?v=sOnqjkJTMaA&t=3m50s" title="Michael Jackson's Thriller music video"><img src="https://media.giphy.com/media/pUeXcg80cO8I8/giphy.gif" alt="Michael Jackson in Thriller"></a>
        </div>
        <figcaption>
            <p><strong><a href="https://www.youtube.com/watch?v=sOnqjkJTMaA&t=3m50s" title="Michael Jackson's Thriller music video">โ™ซโ™ฌโ™ช You know it's thriller, Thriller night... โ™ชโ™ซโ™ฌ</a></strong></p>
        </figcaption>
    </figure>
</div>

<p align="right"><a href="#top" title="Back to top">๐Ÿ”</a></p>

### [`๐Ÿ’ ./scene_romantic.yaml`](scene_romantic.yaml)

Turn on accent lights, dim some others, pick a romantic colour theme, set the mood for _looooove!_

<div align="center">
    <figure>
        <div>
            <a href="https://www.youtube.com/watch?v=zmTj1oqCBKo?t=14s" title="Quagmire's home automation. Giggity Giggity!"><img src="https://i.ytimg.com/vi/zmTj1oqCBKo/mqdefault.jpg" alt="Quagmire's home automation"></a>
        </div>
        <figcaption>
           <p><strong><a href="https://www.youtube.com/watch?v=zmTj1oqCBKo?t=14s" title="Giggity!">Quagmire's Home Automation.</a> Giggity Giggity!</strong></p>
        </figcaption>
    </figure>
</div>

<p align="right"><a href="#top" title="Back to top">๐Ÿ”</a></p>

## Other scripts

### [`๐ŸŽฅ ./blink_snapshot.yaml`](blink_snapshot.yaml)

Capture a still image from a Blink camera.

### [`๐Ÿ‘ฎ ./tamper_reset.yaml`](tamper_reset.yaml)

Reset the state for tampered perimeter devices list.

<div align="center">
    <figure>
        <div>
            <a href="https://www.youtube.com/watch?v=JGAV8wvYdVI" title="The Romantics' One in a Million music video"><img src="https://media.giphy.com/media/sChf4Eo55W8x2/giphy.gif" alt="Reset button"></a>
        </div>
        <figcaption>
            <p><strong><a href="https://www.youtube.com/watch?v=JGAV8wvYdVI" title="The Romantics' One in a Million music video">โ™ซโ™ฌโ™ช One in a Million... โ™ชโ™ซโ™ฌ</a></strong></p>
        </figcaption>
    </figure>
</div>

<p align="right"><a href="#top" title="Back to top">๐Ÿ”</a></p>

### [`โ˜€ ./wake_up.yaml`](wake_up.yaml)

Quickly disable all blocking modes, therefore activating all lights.

<div align="center">
    <figure>
        <div>
            <a href="https://www.youtube.com/watch?v=5_RUut1px3Q" title="Chuck Norris facts"><img src="https://memegenerator.net/img/instances/18858590/i-dont-turn-on-the-light-i-turn-off-the-dark.jpg" alt="Chuck Norris doesn't turn on the light. He turns off the dark." width="400"></a>
        </div>
        <figcaption>
            <p><strong><a href="https://www.youtube.com/watch?v=5_RUut1px3Q" title="Chuck Norris facts">Chuck Norris this.</a></strong></p>
        </figcaption>
    </figure>
</div>

<!-- Footer -->
<p align="right"><a href="#top" title="Back to top">๐Ÿ”</a></p>

<p align="center"><strong>Don't forget to <a href="#" title="star">โญ๏ธ</a> or <a href="#" title="fork">๐Ÿ”ฑ</a> this repo! ๐Ÿ˜ƒ</strong></p>

[๐Ÿ  Home][link-repo]