mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Fixed automation configuration example
This commit is contained in:
parent
886e5aed0d
commit
a13e993003
@ -54,13 +54,13 @@ Adding in the sun condition as we only want this when it's dark.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
automation:
|
automation:
|
||||||
- action: "Media player paused/stopped"
|
- alias: "Media player paused/stopped"
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: media_player.htpc
|
entity_id: media_player.htpc
|
||||||
from: 'playing'
|
from: 'playing'
|
||||||
condition:
|
condition:
|
||||||
- platform: sun
|
- platform: state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
state: 'below_horizon'
|
state: 'below_horizon'
|
||||||
action:
|
action:
|
||||||
@ -73,7 +73,7 @@ automation:
|
|||||||
entity_id: media_player.htpc
|
entity_id: media_player.htpc
|
||||||
to: 'playing'
|
to: 'playing'
|
||||||
condition:
|
condition:
|
||||||
- platform: sun
|
- platform: state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
state: 'below_horizon'
|
state: 'below_horizon'
|
||||||
action:
|
action:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user