Update hyperion.markdown (#9641)

* Update hyperion.markdown

* ✏️ Tweak
This commit is contained in:
IIIdefconIII 2019-06-19 17:11:27 +02:00 committed by Franck Nijhof
parent 146796a4f7
commit 945d488299

View File

@ -44,7 +44,7 @@ light:
required: false
type: string
priority:
description: The priority of the Hyperion instance.
description: The priority of the Hyperion instance make sure this is higher then the system prio in hyperion itself.
required: false
type: int
default: 128
@ -65,7 +65,7 @@ light:
default: "['HDMI', 'Cinema brighten lights', 'Cinema dim lights', 'Knight rider', 'Blue mood blobs', 'Cold mood blobs', 'Full color mood blobs', 'Green mood blobs', 'Red mood blobs', 'Warm mood blobs', 'Police Lights Single', 'Police Lights Solid', 'Rainbow mood', 'Rainbow swirl fast', 'Rainbow swirl', 'Random', 'Running dots', 'System Shutdown', 'Snake', 'Sparks Color', 'Sparks', 'Strobe blue', 'Strobe Raspbmc', 'Strobe white', 'Color traces', 'UDP multicast listener', 'UDP listener', 'X-Mas']"
{% endconfiguration %}
## {% linkable_title Example %}
## {% linkable_title Examples %}
To start Hyperion with an effect, use the following automation:
@ -83,3 +83,39 @@ automation:
entity_id: light.hyperion
effect: "Full color mood blobs"
```
To have the lights playing a effect when pausing, idle or turn off a media player like plex you can use this example:
```
- alias: Set hyperion effect after playback
trigger:
- platform: state
entity_id: media_player.plex_iiidefcontoweriii
to: 'off'
- platform: state
entity_id: media_player.plex_iiidefcontoweriii
to: 'paused'
- platform: state
entity_id: media_player.plex_iiidefcontoweriii
to: 'idle'
action:
- service: light.turn_on
data:
entity_id: light.hyperion
effect: "Full color mood blobs"
```
To capture the screen when playing something of a media_player you can use this example:
```
- alias: Set hyperion when playback starts
trigger:
- platform: state
entity_id: media_player.plex_iiidefcontoweriii
to: 'playing'
action:
- service: light.turn_on
data:
entity_id: light.hyperion
effect: HDMI
```