Enquote YAML occurances of alias strings (#16576)

This commit is contained in:
Franck Nijhof 2021-02-15 08:08:37 +01:00 committed by GitHub
parent b2a0e20306
commit cfa3128142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
129 changed files with 303 additions and 303 deletions

View File

@ -24,7 +24,7 @@ binary_sensor:
name: living_room_switch
automation:
- alias: Turn on living room light
- alias: "Turn on living room light"
trigger:
platform: event
event_type: button_pressed
@ -35,7 +35,7 @@ automation:
service: light.turn_on
entity_id: light.hue_color_lamp_3
- alias: Turn off living room light
- alias: "Turn off living room light"
trigger:
platform: event
event_type: button_pressed

View File

@ -23,7 +23,7 @@ input_boolean:
automation:
#turns it on at 5am
- alias: Enable First Morning Trigger
- alias: "Enable First Morning Trigger"
trigger:
- platform: time
at: "05:00:00"
@ -32,7 +32,7 @@ automation:
entity_id: input_boolean.trigger_first_morning
# turns it off an hour after sunrise
- alias: Disable First Morning Trigger
- alias: "Disable First Morning Trigger"
trigger:
- platform: sun
event: sunrise
@ -45,7 +45,7 @@ automation:
# This is the main automation. It triggers when my motion sensor is triggered
# (in this case, a motion sensor from a security system attached to my Vera)
- alias: First Morning Motion
- alias: "First Morning Motion"
trigger:
platform: state
entity_id: binary_sensor.livingroom_motion

View File

@ -55,54 +55,54 @@ automation:
script:
alarm_room1:
alias: Alarm room1
alias: "Alarm room1"
sequence:
- alias: Alarm Room1 Start
- alias: "Alarm Room1 Start"
service: homeassistant.turn_on
data:
entity_id: switch.AlmSnd1
- alias: Set Ack Room1
- alias: "Set Ack Room1"
service: homeassistant.turn_on
data:
entity_id: input_boolean.ack1
- alias: email_Room1
- alias: "email_Room1"
service: notify.email
data:
message: "Movement alarm in Room1"
- delay:
# time interval for alarm sound and light flashing
seconds: 60
- alias: Alarm Room1 Stop
- alias: "Alarm Room1 Stop"
service: homeassistant.turn_off
data:
entity_id: switch.AlmSnd1
flash_room1:
alias: Flash Room1 On
alias: "Flash Room1 On"
sequence:
- alias: Light Room1 On
- alias: "Light Room1 On"
service: homeassistant.turn_on
data:
entity_id: switch.REL1
- delay:
# time for flash light on
seconds: 1
- alias: Light Room1 Off
- alias: "Light Room1 Off"
service: homeassistant.turn_off
data:
entity_id: switch.REL1
- alias: loop_room1
- alias: "loop_room1"
service: script.turn_on
data:
entity_id: script.flash_loop
flash_loop:
alias: Flash loop
alias: "Flash loop"
sequence:
- delay:
# time for flash light off
seconds: 1
- alias: loop_room1
- alias: "loop_room1"
service: script.turn_on
data:
entity_id: script.flash_room1

View File

@ -107,7 +107,7 @@ Now the script.
```yaml
script:
ramp_light:
alias: Ramp Light Brightness
alias: "Ramp Light Brightness"
description: Ramp light brightness up or down
fields:
direction:

View File

@ -64,14 +64,14 @@ To automate Foscam being set to "on" (facing the correct way with motion sensor
```yaml
automation:
- alias: Set Foscam to Away Mode when I leave home
- alias: "Set Foscam to Away Mode when I leave home"
trigger:
platform: state
entity_id: group.family
from: "home"
action:
service: script.foscam_on
- alias: Set Foscam to Home Mode when I arrive Home
- alias: "Set Foscam to Home Mode when I arrive Home"
trigger:
platform: state
entity_id: group.family

View File

@ -46,7 +46,7 @@ Use as [`script`](/integrations/script/) in automations.
{% raw %}
```yaml
automation:
alias: Send me a message when I get home
alias: "Send me a message when I get home"
trigger:
platform: state
entity_id: device_tracker.me

View File

@ -15,7 +15,7 @@ notify:
recipient: recipient@jabber.org
automation:
- alias: Update notification
- alias: "Update notification"
trigger:
- platform: state
entity_id: binary_sensor.updater
@ -38,7 +38,7 @@ notify:
name: pushbullet
automation:
- alias: Update notification
- alias: "Update notification"
trigger:
- platform: state
entity_id: binary_sensor.updater

View File

@ -15,7 +15,7 @@ notify me:
name: mypushbullet
automation:
- alias: FanOn
- alias: "FanOn"
trigger:
platform: numeric_state
entity_id: sensor.furnace
@ -34,7 +34,7 @@ If you also want a notification when it drops back down below that limit, you co
{% raw %}
```yaml
- alias: FanOff
- alias: "FanOff"
trigger:
platform: numeric_state
entity_id: sensor.furnace

View File

@ -26,7 +26,7 @@ media_player:
automation:
# If you select "Rain", play the "rain.mp3" file
- alias: Play Rain Lullaby
- alias: "Play Rain Lullaby"
trigger:
platform: state
@ -42,7 +42,7 @@ automation:
# If you select "Babbling Brook", play the "babbling_brook.mp3" file
- alias: Play Babbling Brook Lullaby
- alias: "Play Babbling Brook Lullaby"
trigger:
platform: state
@ -57,7 +57,7 @@ automation:
media_content_type: music
# If you select "None, turn the Chromecast off
- alias: Stop the Lullaby
- alias: "Stop the Lullaby"
trigger:
platform: state
@ -100,7 +100,7 @@ input_select:
icon: mdi:airplay
automation:
- alias: Stop Streaming Radio
- alias: "Stop Streaming Radio"
trigger:
- platform: state
entity_id: input_select.radio_station
@ -125,7 +125,7 @@ automation:
none
{% endif %}
- alias: Stream Radio - Template
- alias: "Stream Radio - Template"
trigger:
- platform: state
entity_id: input_select.radio_station

View File

@ -21,7 +21,7 @@ and automation part to your `configuration.yaml` file.
```yaml
automation:
- alias: Send message at a given time
- alias: "Send message at a given time"
trigger:
platform: time
at: "12:15:00"

View File

@ -10,7 +10,7 @@ This recipe will turn on a light when there is motion and turn off the light whe
```yaml
automation:
- alias: Turn on kitchen light when there is movement
- alias: "Turn on kitchen light when there is movement"
trigger:
platform: state
entity_id: sensor.motion_sensor
@ -19,7 +19,7 @@ automation:
service: light.turn_on
entity_id: light.kitchen_light
- alias: Turn off kitchen light 10 minutes after last movement
- alias: "Turn off kitchen light 10 minutes after last movement"
trigger:
platform: state
entity_id: sensor.motion_sensor
@ -35,7 +35,7 @@ Or in the case of multiple sensors/triggers:
```yaml
automation:
- alias: Turn on hallway lights when the doorbell rings, the front door opens or if there is movement
- alias: "Turn on hallway lights when the doorbell rings, the front door opens or if there is movement"
trigger:
- platform: state
entity_id: sensor.motion_sensor, binary_sensor.front_door, binary_sensor.doorbell
@ -50,7 +50,7 @@ automation:
data:
entity_id: timer.hallway
- alias: Turn off hallway lights 10 minutes after trigger
- alias: "Turn off hallway lights 10 minutes after trigger"
trigger:
platform: event
event_type: timer.finished
@ -71,7 +71,7 @@ timer:
You can also restrict lights from turning on based on time of day and implement transitions for fading lights on and off.
```yaml
- alias: Motion Sensor Lights On
- alias: "Motion Sensor Lights On"
trigger:
platform: state
entity_id: binary_sensor.ecolink_pir_motion_sensor_sensor
@ -87,7 +87,7 @@ You can also restrict lights from turning on based on time of day and implement
transition: 15
- alias: Motion Sensor Lights Off
- alias: "Motion Sensor Lights Off"
trigger:
- platform: state
entity_id: binary_sensor.ecolink_pir_motion_sensor_sensor

View File

@ -111,7 +111,7 @@ At startup, automations by default restore their last state of when Home Assista
```yaml
automation:
- alias: Automation Name
- alias: "Automation Name"
initial_state: false
trigger:
- platform: ...
@ -126,7 +126,7 @@ If you want to migrate your manual automations to use the editor, you'll have to
```yaml
# Example automations.yaml entry. Note, automations.yaml is always a list!
- id: my_unique_id # <-- Required for editor to work, for automations created with the editor the id will be automatically generated.
alias: Hello world
alias: "Hello world"
trigger:
- platform: state
entity_id: sun.sun

View File

@ -231,7 +231,7 @@ These work recursively. As an example using `!include_dir_* automation`, will in
```yaml
automation:
- alias: Automation 1
- alias: "Automation 1"
trigger:
platform: state
entity_id: device_tracker.iphone
@ -239,7 +239,7 @@ automation:
action:
service: light.turn_on
entity_id: light.entryway
- alias: Automation 2
- alias: "Automation 2"
trigger:
platform: state
entity_id: device_tracker.iphone
@ -260,7 +260,7 @@ automation: !include_dir_list automation/presence/
`automation/presence/automation1.yaml`
```yaml
alias: Automation 1
alias: "Automation 1"
trigger:
platform: state
entity_id: device_tracker.iphone
@ -273,7 +273,7 @@ action:
`automation/presence/automation2.yaml`
```yaml
alias: Automation 2
alias: "Automation 2"
trigger:
platform: state
entity_id: device_tracker.iphone
@ -370,7 +370,7 @@ speech:
```yaml
automation:
- alias: Automation 1
- alias: "Automation 1"
trigger:
platform: state
entity_id: device_tracker.iphone
@ -378,7 +378,7 @@ automation:
action:
service: light.turn_on
entity_id: light.entryway
- alias: Automation 2
- alias: "Automation 2"
trigger:
platform: state
entity_id: device_tracker.iphone
@ -399,7 +399,7 @@ automation: !include_dir_merge_list automation/
`automation/presence.yaml`
```yaml
- alias: Automation 1
- alias: "Automation 1"
trigger:
platform: state
entity_id: device_tracker.iphone
@ -407,7 +407,7 @@ automation: !include_dir_merge_list automation/
action:
service: light.turn_on
entity_id: light.entryway
- alias: Automation 2
- alias: "Automation 2"
trigger:
platform: state
entity_id: device_tracker.iphone

View File

@ -47,7 +47,7 @@ script:
The most important one is the action to call a service. This can be done in various ways. For all the different possibilities, have a look at the [service calls page].
```yaml
- alias: Bedroom lights on
- alias: "Bedroom lights on"
service: light.turn_on
data:
entity_id: group.bedroom
@ -74,7 +74,7 @@ The variables action allows you to set/override variables that will be accessibl
- light.kitchen
- light.living_room
brightness: 100
- alias: Control lights
- alias: "Control lights"
service: light.turn_on
data:
entity_id: "{{ entities }}"
@ -290,7 +290,7 @@ The `event_data` accepts templates.
The following automation example shows how to raise a custom event called `event_light_state_changed` with `entity_id` as the event data. The action part could be inside a script or an automation.
```yaml
- alias: Fire Event
- alias: "Fire Event"
trigger:
- platform: state
entity_id: switch.kitchen
@ -306,7 +306,7 @@ The following automation example shows how to capture the custom event `event_li
{% raw %}
```yaml
- alias: Capture Event
- alias: "Capture Event"
trigger:
- platform: event
event_type: event_light_state_changed
@ -367,7 +367,7 @@ script:
do_something:
sequence:
- service: script.get_ready_for_something
- alias: Repeat the sequence AS LONG AS the conditions are true
- alias: "Repeat the sequence AS LONG AS the conditions are true"
repeat:
while:
- condition: state
@ -415,7 +415,7 @@ automation:
state: "off"
mode: single
action:
- alias: Repeat the sequence UNTIL the conditions are true
- alias: "Repeat the sequence UNTIL the conditions are true"
repeat:
sequence:
# Run command that for some reason doesn't always work

View File

@ -65,7 +65,7 @@ state: on
If there is an automation that handles that event, it will be automatically triggered. See below:
```yaml
- alias: Capture Event
- alias: "Capture Event"
trigger:
platform: event
event_type: event_light_state_changed

View File

@ -1153,7 +1153,7 @@ Let's see how this works in an automation for a Scene Master that's assigned as
```yaml
- id: "1234567890"
alias: Double-press Button 2 to toggle all lights
alias: "Double-press Button 2 to toggle all lights"
trigger:
- platform: event
event_type: zwave.scene_activated
@ -1202,7 +1202,7 @@ Here is an example configuration needed for the scene controller:
```yaml
automation:
- alias: Sync the indicator value on button events
- alias: "Sync the indicator value on button events"
trigger:
- platform: event
event_type: zwave.scene_activated
@ -1392,7 +1392,7 @@ Button four release|4|7740
Example Event:
```yaml
- alias: MatrixButton2
- alias: "MatrixButton2"
trigger:
- event_type: zwave.scene_activated
platform: event
@ -1594,7 +1594,7 @@ Button two triple tap|2|4
Example Event:
```yaml
- alias: JascoButton1
- alias: "JascoButton1"
trigger:
- event_type: zwave.scene_activated
platform: event

View File

@ -8,7 +8,7 @@ description: "Events generated by the Z-Wave component."
Home Assistant will trigger an event when the Z-Wave network is complete, meaning all of the nodes on the network have been queried. This can take quite some time, depending on wakeup intervals on the battery-powered devices on the network.
```yaml
- alias: Z-Wave network is complete
- alias: "Z-Wave network is complete"
trigger:
platform: event
event_type: zwave.network_complete
@ -19,7 +19,7 @@ Home Assistant will trigger an event when the Z-Wave network is complete, meanin
Home Assistant will trigger an event when the Z-Wave network is complete, but some nodes are marked dead, meaning all of the nodes on the network have been queried. This can take quite some time, depending on wakeup intervals on the battery-powered devices on the network.
```yaml
- alias: Z-Wave network is complete some dead
- alias: "Z-Wave network is complete some dead"
trigger:
platform: event
event_type: zwave.network_complete_some_dead
@ -30,7 +30,7 @@ Home Assistant will trigger an event when the Z-Wave network is complete, but so
Home Assistant will trigger an event when the Z-Wave network is ready for use. Between `zwave.network_start` and `zwave.network_ready` Home Assistant will feel sluggish when trying to send commands to Z-Wave nodes. This is because the controller is requesting information from all of the nodes on the network. When this is triggered, all awake nodes have been queried and sleeping nodes will be queried when they awake.
```yaml
- alias: Z-Wave network is ready
- alias: "Z-Wave network is ready"
trigger:
platform: event
event_type: zwave.network_ready
@ -41,7 +41,7 @@ Home Assistant will trigger an event when the Z-Wave network is ready for use. B
Home Assistant will trigger an event when the Z-Wave network is set up to be started.
```yaml
- alias: Z-Wave network is starting
- alias: "Z-Wave network is starting"
trigger:
platform: event
event_type: zwave.network_start
@ -52,7 +52,7 @@ Home Assistant will trigger an event when the Z-Wave network is set up to be sta
Home Assistant will trigger an event when the Z-Wave network is stopping.
```yaml
- alias: Z-Wave network is stopping
- alias: "Z-Wave network is stopping"
trigger:
platform: event
event_type: zwave.network_stop
@ -64,7 +64,7 @@ Home Assistant will trigger an event when command_class_basic changes value on a
Example:
```yaml
- alias: Minimote Button Pressed
- alias: "Minimote Button Pressed"
trigger:
platform: event
event_type: zwave.node_event
@ -82,7 +82,7 @@ Some devices can also trigger scene activation events, which can be used in auto
```yaml
# Example configuration.yaml automation entry
automation:
- alias: Turn on Desk light
- alias: "Turn on Desk light"
trigger:
platform: event
event_type: zwave.scene_activated

View File

@ -57,7 +57,7 @@ The Arlo integration also provides a camera service to enable/disable the motion
```yaml
#automation.yaml
- alias: Enable Arlo upon HA start'
- alias: "Enable Arlo upon HA start'"
initial_state: "on"
trigger:
platform: homeassistant
@ -104,7 +104,7 @@ Arming the Arlo Base Station when leaving.
```yaml
- id: arm_arlo_when_leaving
alias: Arm Arlo cameras when leaving
alias: "Arm Arlo cameras when leaving"
trigger:
platform: state
entity_id: group.family
@ -119,7 +119,7 @@ Setting Arlo to a custom mode (mapped to `home_mode_name` in `configuration.yaml
```yaml
- id: disarm_arlo_when_arriving
alias: Set Arlo cameras to Home mode when arriving
alias: "Set Arlo cameras to Home mode when arriving"
trigger:
platform: state
entity_id: group.family

View File

@ -82,7 +82,7 @@ Using the lock operation sensors, you can detect when a user operates a lock and
```yaml
- id: "1583706446906"
alias: joe_doe_front_door_operate
alias: "joe_doe_front_door_operate"
description: John Doe locks or unlocks the Front Door
trigger:
- entity_id: sensor.front_door_operator

View File

@ -79,7 +79,7 @@ See the example below for how an automation trigger translates to a message on t
```yaml
automation:
- alias: Sunset Service Bus message
- alias: "Sunset Service Bus message"
trigger:
platform: sun
event: sunset

View File

@ -38,7 +38,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
#### Motion
```yaml
- alias: If there is motion and its dark turn on the gateway light
- alias: "If there is motion and its dark turn on the gateway light"
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d000xxxxxc2
@ -56,7 +56,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
- service: automation.turn_on
data:
entity_id: automation.MOTION_OFF
- alias: If there no motion for 5 minutes turn off the gateway light
- alias: "If there no motion for 5 minutes turn off the gateway light"
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_158d000xxxxxc2
@ -75,7 +75,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
#### Door and/or Window
```yaml
- alias: If the window is open turn off the radiator
- alias: "If the window is open turn off the radiator"
trigger:
platform: state
entity_id: binary_sensor.door_window_sensor_158d000xxxxxc2
@ -86,7 +86,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
entity_id: climate.livingroom
data:
operation_mode: "Off"
- alias: If the window is closed for 5 minutes turn on the radiator again
- alias: "If the window is closed for 5 minutes turn on the radiator again"
trigger:
platform: state
entity_id: binary_sensor.door_window_sensor_158d000xxxxxc2
@ -99,7 +99,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
entity_id: climate.livingroom
data:
operation_mode: "Smart schedule"
- alias: Notify if door is opened when away
- alias: "Notify if door is opened when away"
trigger:
platform: state
entity_id: binary_sensor.door_window_sensor_15xxxxxxc9xx6b
@ -118,7 +118,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
#### Smoke
```yaml
- alias: Send notification on fire alarm
- alias: "Send notification on fire alarm"
trigger:
platform: state
entity_id: binary_sensor.smoke_sensor_158d0001574899
@ -141,7 +141,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
{% raw %}
```yaml
- alias: Send notification on gas alarm
- alias: "Send notification on gas alarm"
trigger:
platform: state
entity_id: binary_sensor.natgas_sensor_158dxxxxxxxxxx
@ -161,7 +161,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
As indicated in the table on top of this page there are 3 versions of the button. For the round shaped button the available events are `single`, `double`, `hold`, `long_click_press` and `long_click_release`. Aqara branded buttons are square shaped. Model WXKG11LM only supports `single`, `double`, `long_click_press`and `hold` events. WXKG12LM supports `single`, `double`, `long_click_press` and `shake` events. For the Aqara versions the delay between two clicks to generate a double click must be larger than with the round button. Clicking too quickly generates a single click event.
```yaml
- alias: Toggle dining light on single press
- alias: "Toggle dining light on single press"
trigger:
platform: event
event_type: xiaomi_aqara.click
@ -171,7 +171,7 @@ As indicated in the table on top of this page there are 3 versions of the button
action:
service: switch.toggle
entity_id: switch.wall_switch_left_158d000xxxxx01
- alias: Toggle couch light on double click
- alias: "Toggle couch light on double click"
trigger:
platform: event
event_type: xiaomi_aqara.click
@ -181,7 +181,7 @@ As indicated in the table on top of this page there are 3 versions of the button
action:
service: switch.toggle
entity_id: switch.wall_switch_right_158d000xxxxx01
- alias: Let a dog bark on long press
- alias: "Let a dog bark on long press"
trigger:
platform: event
event_type: xiaomi_aqara.click
@ -201,7 +201,7 @@ As indicated in the table on top of this page there are 3 versions of the button
Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swing`, `alert`, `free_fall` and `rotate`. The integration stores the last action as the attribute `last_action`.
```yaml
- alias: Cube event flip90
- alias: "Cube event flip90"
trigger:
platform: event
event_type: xiaomi_aqara.cube_action
@ -213,7 +213,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
entity_id: light.gateway_light_28xxxxxxxxxx
data:
color_name: "springgreen"
- alias: Cube event flip180
- alias: "Cube event flip180"
trigger:
platform: event
event_type: xiaomi_aqara.cube_action
@ -225,7 +225,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
entity_id: light.gateway_light_28xxxxxxxxxx
data:
color_name: "darkviolet"
- alias: Cube event move
- alias: "Cube event move"
trigger:
platform: event
event_type: xiaomi_aqara.cube_action
@ -237,7 +237,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
entity_id: light.gateway_light_28xxxxxxxxxx
data:
color_name: "gold"
- alias: Cube event tap_twice
- alias: "Cube event tap_twice"
trigger:
platform: event
event_type: xiaomi_aqara.cube_action
@ -249,7 +249,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
entity_id: light.gateway_light_28xxxxxxxxxx
data:
color_name: "deepskyblue"
- alias: Cube event shake_air
- alias: "Cube event shake_air"
trigger:
platform: event
event_type: xiaomi_aqara.cube_action
@ -270,7 +270,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
{% raw %}
```yaml
- alias: Decrease brightness of the gateway light
- alias: "Decrease brightness of the gateway light"
trigger:
platform: event
event_type: xiaomi_aqara.click
@ -292,7 +292,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
10
{% endif %}
- alias: Increase brightness of the gateway light
- alias: "Increase brightness of the gateway light"
trigger:
platform: event
event_type: xiaomi_aqara.click
@ -314,7 +314,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
10
{% endif %}
- alias: Turn off the gateway light
- alias: "Turn off the gateway light"
trigger:
platform: event
event_type: xiaomi_aqara.click
@ -333,7 +333,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
This automation toggles the living room lamp on vibration/tilt.
```yaml
- alias: Turn on Living Room Lamp on vibration
- alias: "Turn on Living Room Lamp on vibration"
trigger:
platform: event
event_type: xiaomi_aqara.movement
@ -344,7 +344,7 @@ This automation toggles the living room lamp on vibration/tilt.
service: light.toggle
data:
entity_id: light.living_room_lamp
- alias: Turn on Living Room Lamp on tilt
- alias: "Turn on Living Room Lamp on tilt"
trigger:
platform: event
event_type: xiaomi_aqara.movement

View File

@ -101,7 +101,7 @@ The following are some examples showing how to correctly make service calls usin
This example script shows how to take a picture with your camera, named `My Camera` in your Blink app (this is **not necessarily** the friendly name in home-assistant). After snapping a picture, the image will then be saved to a local directory called `/tmp/my_image.jpg`. Note that this example makes use of services found in the [camera integration](/integrations/camera#service-snapshot)
```yaml
alias: Blink Snap Picture
alias: "Blink Snap Picture"
sequence:
- service: blink.trigger_camera
data:
@ -122,7 +122,7 @@ Here, this example assumes your blink module is named `My Sync Module` and that
```yaml
- id: arm_blink_when_away
alias: Arm Blink When Away
alias: "Arm Blink When Away"
trigger:
platform: state
entity_id: all
@ -138,7 +138,7 @@ Similar to the previous example, this automation will disarm blink when arriving
```yaml
- id: disarm_blink_when_home
alias: Disarm Blink When Home
alias: "Disarm Blink When Home"
trigger:
platform: state
entity_id: all
@ -158,7 +158,7 @@ Again, this example assumes your camera's name (in the blink app) is `My Camera`
```yaml
- id: save_blink_video_on_motion
alias: Save Blink Video on Motion
alias: "Save Blink Video on Motion"
trigger:
platform: state
entity_id: binary_sensor.blink_my_camera_motion_detected

View File

@ -163,7 +163,7 @@ calendar:
# automations.yaml
- id: wakeup
alias: worktime wakeup
alias: "worktime wakeup"
trigger:
platform: time
at: "06:40:00"

View File

@ -25,7 +25,7 @@ Home Assistant has its own Cast application to show the Home Assistant UI on any
```yaml
cast_downstairs_on_kitchen:
alias: Show Downstairs on kitchen
alias: "Show Downstairs on kitchen"
sequence:
- data:
dashboard_path: lovelace
@ -52,7 +52,7 @@ Optional:
```yaml
'cast_youtube_to_my_chromecast':
alias: Cast YouTube to My Chromecast
alias: "Cast YouTube to My Chromecast"
sequence:
- data:
entity_id: media_player.my_chromecast
@ -77,7 +77,7 @@ Optional:
```yaml
'cast_supla_to_my_chromecast':
alias: Cast supla to My Chromecast
alias: "Cast supla to My Chromecast"
sequence:
- data:
entity_id: media_player.my_chromecast
@ -96,7 +96,7 @@ To cast media directly from a configured Plex server, set the fields [as documen
```yaml
'cast_plex_to_chromecast':
alias: Cast Plex to Chromecast
alias: "Cast Plex to Chromecast"
sequence:
- service: media_player.play_media
data:

View File

@ -59,7 +59,7 @@ Example usage in an automation, taking the album art present on a Chromecast and
```yaml
#automation.yaml
- alias: Chromecast to Shelf Lights
- alias: "Chromecast to Shelf Lights"
trigger:
- platform: state
@ -76,7 +76,7 @@ With a nicer transition period of 5 seconds and setting brightness to 100% each
```yaml
#automation.yaml
- alias: Nicer Chromecast to Shelf Lights
- alias: "Nicer Chromecast to Shelf Lights"
trigger:
- platform: state

View File

@ -143,7 +143,7 @@ system_log:
# Example configuration.yaml entry
automation:
- id: 'errorcounterautomation'
alias: Error Counting Automation
alias: "Error Counting Automation"
trigger:
platform: event
event_type: system_log_event

View File

@ -195,7 +195,7 @@ Requesting support for additional devices requires the device model (can be acqu
```yaml
automation:
- alias: 'Toggle lamp from dimmer'
- alias: "'Toggle lamp from dimmer'"
initial_state: "on"
trigger:
platform: event
@ -207,7 +207,7 @@ automation:
service: light.toggle
entity_id: light.lamp
- alias: 'Increase brightness of lamp from dimmer'
- alias: "Increase brightness of lamp from dimmer"
initial_state: "on"
trigger:
platform: event
@ -223,7 +223,7 @@ automation:
{% set bri = state_attr('light.lamp', 'brightness') | int %}
{{ [bri+30, 249] | min }}
- alias: 'Decrease brightness of lamp from dimmer'
- alias: "Decrease brightness of lamp from dimmer"
initial_state: "on"
trigger:
platform: event
@ -260,7 +260,7 @@ automation:
```yaml
automation:
- alias: React to color wheel changes
- alias: "React to color wheel changes"
trigger:
- platform: event
event_type: deconz_event
@ -285,7 +285,7 @@ Note: Requires `on: true` to change color while the Philips Hue bulb is off. If
```yaml
automation:
- alias: Flash Hue Bulb with Doorbell Motion
- alias: "Flash Hue Bulb with Doorbell Motion"
mode: single
trigger:
- platform: state

View File

@ -20,7 +20,7 @@ Example:
```yaml
- id: "123456789"
alias: Light turns off
alias: "Light turns off"
trigger:
- platform: device
device_id: 7a92d5ee74014a0b86903fc669b0bcd6

View File

@ -44,7 +44,7 @@ If you have a sensor session running, and once you have enabled the Dexcom integ
```yaml
- id: '1234567890123'
alias: overnight_low_kitchen_lights
alias: "overnight_low_kitchen_lights"
description: Turn on the lights in the kitchen if my blood sugar drops low overnight
trigger:
- below: '65'

View File

@ -209,7 +209,7 @@ image_processing:
```yaml
# Example advanced automations.yaml entry
- alias: Doods scanning
- alias: "Doods scanning"
trigger:
- platform: state
entity_id:

View File

@ -173,7 +173,7 @@ Note: Remember to complete the schedule assignment steps above for each event ty
### Automation Example
```yaml
- alias: Doorbird Ring
- alias: "Doorbird Ring"
trigger:
platform: event
event_type: doorbird_driveway_gate_somebody_pressed_the_button

View File

@ -69,7 +69,7 @@ This is a notify platform and thus can be controlled by calling the notify servi
```yaml
# Example automation notification entry
automation:
- alias: The sun has set
- alias: "The sun has set"
trigger:
platform: sun
event: sunset

View File

@ -58,7 +58,7 @@ Along with the event the following payload parameters are available:
#### Example Automation:
```yaml
- alias: Download Failed Notification
- alias: "Download Failed Notification"
trigger:
platform: event
event_type: downloader_download_failed

View File

@ -109,7 +109,7 @@ The following is an example implementation of an automation:
```yaml
# Example automation
- id: amp_volume_up
alias: Increase amplifier volume
alias: "Increase amplifier volume"
trigger:
- platform: event
event_type: roku_command

View File

@ -133,7 +133,7 @@ Sample automation to switch lights on and off:
```yaml
# Example automation to turn lights on/off on button release
automation:
- alias: hall light switches
- alias: "hall light switches"
trigger:
platform: event
event_type: button_pressed

View File

@ -42,7 +42,7 @@ The phone number used in **target** should be registered with Facebook messenger
```yaml
# Example automation notification entry
automation:
- alias: Evening Greeting
- alias: "Evening Greeting"
trigger:
platform: sun
event: sunset

View File

@ -99,7 +99,7 @@ Use the `image_processing.detect_face` events to trigger automations, and breako
```yaml
- id: '12345'
alias: Ringo Starr recognised
alias: "Ringo Starr recognised"
trigger:
platform: event
event_type: image_processing.detect_face
@ -144,7 +144,7 @@ You can use an automation to receive a notification when you train a face:
```yaml
- id: '1533703568569'
alias: Face taught
alias: "Face taught"
trigger:
- event_data:
service: facebox.teach_face
@ -174,7 +174,7 @@ you can create an automation to receive notifications on Facebox errors:
```yaml
- id: '1533703568577'
alias: Facebox error
alias: "Facebox error"
trigger:
platform: event
event_type: system_log_event

View File

@ -56,7 +56,7 @@ Feedreader events can be used out of the box to trigger automation actions, e.g.
```yaml
automation:
- alias: Trigger action when new element(s) in RSS feed
- alias: "Trigger action when new element(s) in RSS feed"
trigger:
platform: event
event_type: feedreader
@ -69,7 +69,7 @@ automation:
```yaml
automation:
- alias: Send notification of RSS feed title when updated
- alias: "Send notification of RSS feed title when updated"
trigger:
platform: event
event_type: feedreader

View File

@ -120,7 +120,7 @@ These are documented below.
```yaml
automation:
- alias: 'Switch on a light when incident is received'
- alias: "Switch on a light when incident is received"
trigger:
platform: state
entity_id: sensor.incidents
@ -128,7 +128,7 @@ automation:
service: light.turn_on
entity_id: light.bedroom
- alias: 'Play TTS incident details when incident is received'
- alias: "Play TTS incident details when incident is received"
trigger:
platform: state
entity_id: sensor.incidents
@ -148,7 +148,7 @@ automation:
{{ state_attr('sensor.incidents','message_to_speech_url') }}
media_content_type: "audio/mp4"
- alias: 'Send response acknowledgement when a button is pressed'
- alias: "Send response acknowledgement when a button is pressed"
trigger:
platform: state
entity_id: switch.response_button
@ -156,7 +156,7 @@ automation:
service: homeassistant.turn_on
entity_id: switch.incident_response
- alias: 'Cast FireServiceRota dashboard to Nest Hub'
- alias: "Cast FireServiceRota dashboard to Nest Hub"
trigger:
platform: homeassistant
event: start

View File

@ -72,7 +72,7 @@ The flic integration fires `flic_click` events on the bus. You can capture the e
```yaml
# Example configuration.yaml automation entry
automation:
- alias: Turn on lights in the living room when flic is pressed once
- alias: "Turn on lights in the living room when flic is pressed once"
trigger:
platform: event
event_type: flic_click
@ -97,7 +97,7 @@ To help detect and debug flic button clicks, you can use this automation that se
```yaml
automation:
- alias: FLIC Html5 notify on every click
- alias: "FLIC Html5 notify on every click"
trigger:
platform: event
event_type: flic_click

View File

@ -60,7 +60,7 @@ Automations can be triggered on filesystem event data using a template. The foll
```yaml
#Send notification for new image (including the image itself)
automation:
 alias: New file alert
 alias: "New file alert"
trigger:
  platform: event
  event_type: folder_watcher

View File

@ -50,7 +50,7 @@ Foursquare check-in events can be used out of the box to trigger automation acti
```yaml
automation:
- alias: Trigger action when you check into a venue.
- alias: "Trigger action when you check into a venue."
trigger:
platform: event
event_type: foursquare.push

View File

@ -85,7 +85,7 @@ Each such entity has a state attribute that will contain a list of any such issu
{% raw %}
```yaml
- alias: GeniusHub Error Alerts
- alias: "GeniusHub Error Alerts"
trigger:
platform: numeric_state
entity_id: sensor.geniushub_errors
@ -106,7 +106,7 @@ This alert may be useful to see if the CH is being turned on whilst you're on a
{% raw %}
```yaml
- alias: GeniusHub CH State Change Alert
- alias: "GeniusHub CH State Change Alert"
trigger:
platform: state
entity_id: binary_sensor.dual_channel_receiver_2_1

View File

@ -51,7 +51,7 @@ zone:
passive: true
automation:
- alias: 'Bush Fire Alert'
- alias: "Bush Fire Alert"
trigger:
platform: geo_location
source: nsw_rural_fire_service_feed

View File

@ -51,7 +51,7 @@ The current price for the Load Zone will appear as a sensor:
```yaml
- id: '1572630019168'
alias: Stop Tesla Charging if Power Price Spikes
alias: "Stop Tesla Charging if Power Price Spikes"
description: ""
trigger:
- above: '30'

View File

@ -244,7 +244,7 @@ sensor:
scan_interval: 10
automation:
- alias: Reconnect Hangouts
- alias: "Reconnect Hangouts"
trigger:
- entity_id: sensor.external_ip
platform: state

View File

@ -456,7 +456,7 @@ binary_sensor:
{{as_timestamp(now()) - as_timestamp(states.sensor.office_voltage.last_changed) < 600}}
automation:
- alias: Homematic Reconnect
- alias: "Homematic Reconnect"
trigger:
platform: state
entity_id: binary_sensor.homematic_up
@ -503,7 +503,7 @@ automation:
```yaml
automation:
- alias: Homematic CCU Reboot
- alias: "Homematic CCU Reboot"
trigger:
platform: state
entity_id: sensor.v_last_reboot

View File

@ -171,7 +171,7 @@ Example of adding a tag to your notification. This won't create new notification
{% raw %}
```yaml
- alias: Push/update notification of sensor state with tag
- alias: "Push/update notification of sensor state with tag"
trigger:
- platform: state
entity_id: sensor.sensor
@ -272,7 +272,7 @@ You will receive an event named `html5_notification.received` when the
notification is received on the device.
```yaml
- alias: HTML5 push notification received and displayed on device
- alias: "HTML5 push notification received and displayed on device"
trigger:
platform: event
event_type: html5_notification.received
@ -283,7 +283,7 @@ notification is received on the device.
You will receive an event named `html5_notification.clicked` when the notification or a notification action button is clicked. The action button clicked is available as `action` in the `event_data`.
```yaml
- alias: HTML5 push notification clicked
- alias: "HTML5 push notification clicked"
trigger:
platform: event
event_type: html5_notification.clicked
@ -292,7 +292,7 @@ You will receive an event named `html5_notification.clicked` when the notificati
or
```yaml
- alias: HTML5 push notification action button clicked
- alias: "HTML5 push notification action button clicked"
trigger:
platform: event
event_type: html5_notification.clicked
@ -305,7 +305,7 @@ or
You will receive an event named `html5_notification.closed` when the notification is closed.
```yaml
- alias: HTML5 push notification clicked
- alias: "HTML5 push notification clicked"
trigger:
platform: event
event_type: html5_notification.closed

View File

@ -93,7 +93,7 @@ To start Hyperion with an effect, use the following automation:
```yaml
automation:
- id: one
alias: Turn Hyperion effect on when light goes on
alias: "Turn Hyperion effect on when light goes on"
trigger:
- platform: state
entity_id: light.hyperion
@ -108,7 +108,7 @@ automation:
To have the lights playing an effect when pausing, idle or turn off a media player like Plex you can use this example:
```yaml
- alias: Set hyperion effect after playback
- alias: "Set hyperion effect after playback"
trigger:
- platform: state
entity_id: media_player.plex
@ -129,7 +129,7 @@ To have the lights playing an effect when pausing, idle or turn off a media play
To capture the screen when playing something on a media_player you can use this example:
```yaml
- alias: Set hyperion when playback starts
- alias: "Set hyperion when playback starts"
trigger:
- platform: state
entity_id: media_player.plex

View File

@ -38,7 +38,7 @@ You then need to consume that incoming information with the following automation
```yaml
automation:
- id: this_is_the_automation_id
alias: The optional automation alias
alias: "The optional automation alias"
trigger:
- event_data:
action: call_service
@ -131,7 +131,7 @@ You need to setup a unique trigger for each event you sent to IFTTT.
```yaml
# Example configuration.yaml Automation entry
automation:
alias: Startup Notification
alias: "Startup Notification"
trigger:
platform: homeassistant
event: start
@ -149,7 +149,7 @@ IFTTT can also be used in scripts and with templates. Here is the above automati
```yaml
# Example configuration.yaml Automation entry
automation:
alias: Startup Notification
alias: "Startup Notification"
trigger:
platform: homeassistant
event: start

View File

@ -19,7 +19,7 @@ The `found_plate` event is triggered after OpenALPR has found a new license plat
```yaml
# Example configuration.yaml automation entry
automation:
- alias: Open garage door
- alias: "Open garage door"
trigger:
platform: event
event_type: image_processing.found_plate
@ -40,7 +40,7 @@ The `detect_face` event is triggered after a Face entity has found a face.
```yaml
# Example configuration.yaml automation entry
automation:
- alias: Known person in front of my door
- alias: "Known person in front of my door"
trigger:
platform: event
event_type: image_processing.detect_face
@ -63,7 +63,7 @@ sensor:
scan_interval: 10000
...
automation:
- alias: Scan for faces when motion detected
- alias: "Scan for faces when motion detected"
trigger:
- platform: state
entity_id: sensor.door_motion_sensor

View File

@ -41,7 +41,7 @@ To send an alert if the CV pressure is too low or too high, consider the followi
{% raw %}
```yaml
- alias: Low CV Pressure Alert
- alias: "Low CV Pressure Alert"
trigger:
platform: numeric_state
entity_id: sensor.cv_pressure

View File

@ -71,7 +71,7 @@ Here's an example of an automation using the above `input_boolean`. This action
```yaml
automation:
alias: Arriving home
alias: "Arriving home"
trigger:
platform: state
entity_id: binary_sensor.motion_garage

View File

@ -125,7 +125,7 @@ input_number:
max: 254
step: 1
automation:
- alias: Bedroom Light - Adjust Brightness
- alias: "Bedroom Light - Adjust Brightness"
trigger:
platform: state
entity_id: input_number.bedroom_brightness
@ -163,7 +163,7 @@ input_number:
max: 254
step: 1
automation:
- alias: Bedroom Light - Custom
- alias: "Bedroom Light - Custom"
trigger:
platform: state
entity_id: input_select.scene_bedroom
@ -195,7 +195,7 @@ input_number:
# This automation script runs when a value is received via MQTT on retained topic: setTemperature
# It sets the value slider on the GUI. This slides also had its own automation when the value is changed.
automation:
- alias: Set temp slider
- alias: "Set temp slider"
trigger:
platform: mqtt
topic: "setTemperature"
@ -207,7 +207,7 @@ automation:
# This second automation script runs when the target temperature slider is moved.
# It publishes its value to the same MQTT topic it is also subscribed to.
- alias: Temp slider moved
- alias: "Temp slider moved"
trigger:
platform: state
entity_id: input_number.target_temp
@ -245,7 +245,7 @@ input_number:
step: 10
automation:
- alias: turn something off after x time after turning it on
- alias: "turn something off after x time after turning it on"
trigger:
platform: state
entity_id: switch.something

View File

@ -135,7 +135,7 @@ The following example shows the usage of the `input_select.select_option` servic
```yaml
# Example configuration.yaml entry
automation:
- alias: example automation
- alias: "example automation"
trigger:
platform: event
event_type: MY_CUSTOM_EVENT
@ -151,7 +151,7 @@ To dynamically set the `input_select` options you can call `input_select.set_opt
```yaml
# Example configuration.yaml entry
automation:
- alias: example automation
- alias: "example automation"
trigger:
platform: event
event_type: MY_CUSTOM_EVENT
@ -183,7 +183,7 @@ input_select:
# Automation.
# This automation script runs when a value is received via MQTT on retained topic: thermostatMode
# It sets the value selector on the GUI. This selector also had its own automation when the value is changed.
- alias: Set Thermostat Mode Selector
- alias: "Set Thermostat Mode Selector"
trigger:
platform: mqtt
topic: "thermostatMode"
@ -196,7 +196,7 @@ input_select:
# This automation script runs when the thermostat mode selector is changed.
# It publishes its value to the same MQTT topic it is also subscribed to.
- alias: Set Thermostat Mode
- alias: "Set Thermostat Mode"
trigger:
platform: state
entity_id: input_select.thermostat_mode

View File

@ -127,7 +127,7 @@ input_text:
name: Brightness
automation:
- alias: Bedroom Light - Custom
- alias: "Bedroom Light - Custom"
trigger:
platform: state
entity_id: input_select.scene_bedroom

View File

@ -103,7 +103,7 @@ Trigger an INSTEON scene on or off, is done via automations. Two services are pr
automation:
# Trigger an INSTEON scene 25
- id: trigger_scene_25_on
alias: Turn on scene 25
alias: "Turn on scene 25"
action:
- service: insteon.scene_on
group: 25
@ -126,7 +126,7 @@ This allows the mini-remotes to be configured as triggers for automations. Here
automation:
# 4 or 8 button remote with button c pressed
- id: light_on
alias: Turn a light on
alias: "Turn a light on"
trigger:
- platform: event
event_type: insteon.button_on
@ -143,7 +143,7 @@ automation:
# single button remote
- id: light_off
alias: Turn a light off
alias: "Turn a light off"
trigger:
- platform: event
event_type: insteon.button_on
@ -361,7 +361,7 @@ Trigger an INSTEON scene on or off is done via automations. Two services are pro
automation:
# Trigger an INSTEON scene 25
- id: trigger_scene_25_on
alias: Turn on scene 25
alias: "Turn on scene 25"
trigger:
- ...
action:
@ -387,7 +387,7 @@ This allows the mini-remotes to be configured as triggers for automations. Here
automation:
# 4 or 8 button remote with button c pressed
- id: light_on
alias: Turn a light on
alias: "Turn a light on"
trigger:
- platform: event
event_type: insteon.button_on
@ -404,7 +404,7 @@ automation:
# single button remote
- id: light_off
alias: Turn a light off
alias: "Turn a light off"
trigger:
- platform: event
event_type: insteon.button_on

View File

@ -117,7 +117,7 @@ A Home Assistant `isy994_control` event is emitted for every "control" event in
```yaml
automation:
- alias: turn off living room on double tap lightswitch
- alias: "turn off living room on double tap lightswitch"
trigger:
platform: event
event_type: isy994_control

View File

@ -84,7 +84,7 @@ And an automation rule to breathe life into it:
```yaml
automation:
alias: Keyboard all lights on
alias: "Keyboard all lights on"
trigger:
platform: event
event_type: keyboard_remote_command_received
@ -109,7 +109,7 @@ Here's an automation example that plays a sound through a media player whenever
```yaml
automation:
- alias: Keyboard Connected
- alias: "Keyboard Connected"
trigger:
platform: event
event_type: keyboard_remote_connected
@ -120,7 +120,7 @@ automation:
media_content_id: keyboard_connected.wav
media_content_type: music
- alias: Bluetooth Keyboard Disconnected
- alias: "Bluetooth Keyboard Disconnected"
trigger:
platform: event
event_type: keyboard_remote_disconnected

View File

@ -208,7 +208,7 @@ Example automation using these IR codes to toggle a Sonoff plug.
```yaml
# Example kira_sensor
- id: "1583339338363"
alias: Panasonic On
alias: "Panasonic On"
description: Turn on sonoff s20 relay
trigger:
- entity_id: sensor.kira_wireless

View File

@ -230,13 +230,13 @@ This example and the following requires to have the [script.json-cec](https://gi
```yaml
script:
play_kodi_pvr:
alias: Turn on the silly box
alias: "Turn on the silly box"
sequence:
- alias: TV on
- alias: "TV on"
service: media_player.turn_on
data:
entity_id: media_player.kodi
- alias: Play TV channel
- alias: "Play TV channel"
service: media_player.play_media
data:
entity_id: media_player.kodi
@ -266,9 +266,9 @@ script:
```yaml
script:
play_kodi_smp:
alias: Turn on the silly box with random Firefighter Sam episode
alias: "Turn on the silly box with random Firefighter Sam episode"
sequence:
- alias: TV on
- alias: "TV on"
service: media_player.turn_on
data:
entity_id: media_player.kodi
@ -286,9 +286,9 @@ script:
```yaml
script:
update_library:
alias: Update Kodi Library
alias: "Update Kodi Library"
sequence:
- alias: Call Kodi update
- alias: "Call Kodi update"
service: kodi.call_method
data:
entity_id: media_player.kodi

View File

@ -211,7 +211,7 @@ life360:
```yaml
automation:
- alias: Life360 Overdue Update
- alias: "Life360 Overdue Update"
trigger:
platform: event
event_type: life360_update_overdue
@ -225,7 +225,7 @@ automation:
trigger.event.data.entity_id
}} is overdue.
- alias: Life360 Update Restored
- alias: "Life360 Update Restored"
trigger:
platform: event
event_type: life360_update_restored

View File

@ -42,7 +42,7 @@ Change the light to a new state.
The LIFX platform supports several light effects. You can start these effects with default options by using the `effect` attribute of the normal [`light.turn_on`](/integrations/light/#service-lightturn_on) service, for example like this:
```yaml
automation:
- alias: ...
- alias: "..."
trigger:
# ...
action:

View File

@ -50,7 +50,7 @@ Here's an example of a script using the above light group.
```yaml
script:
turn_on_kitchen_lights:
alias: Kitchen lights on
alias: "Kitchen lights on"
sequence:
service: light.turn_on
data:

View File

@ -52,7 +52,7 @@ In order to apply attributes to an entity, you will need to add `data:` to the c
# Example configuration.yaml entry
automation:
- id: one
alias: Turn on light when motion is detected
alias: "Turn on light when motion is detected"
trigger:
- platform: state
entity_id: binary_sensor.motion_1
@ -67,7 +67,7 @@ automation:
```yaml
# Ledlist morning on, red
- id: llmor
alias: Stair morning on
alias: "Stair morning on"
trigger:
- at: '05:00'
platform: time

View File

@ -106,7 +106,7 @@ Note that the `brightness`, `color` and `temperature` attributes cannot be used
```yaml
automation:
- alias: ...
- alias: "..."
trigger:
# ...
action:

View File

@ -83,7 +83,7 @@ The LIRC integration fires `ir_command_received` events on the bus. You can capt
```yaml
# Example configuration.yaml automation entry
automation:
- alias: Off on Remote
- alias: "Off on Remote"
trigger:
platform: event
event_type: ir_command_received

View File

@ -167,7 +167,7 @@ component to fire an event.
# Example configuration.yaml entry
script:
add_logbook_entry:
alias: Add Logbook
alias: "Add Logbook"
sequence:
- service: logbook.log
data:

View File

@ -91,7 +91,7 @@ Below you find an example of an automation.
```yaml
automation:
- alias: Alert me about weather warnings
- alias: "Alert me about weather warnings"
trigger:
platform: state
entity_id: binary_sensor.meteoalarm

View File

@ -140,7 +140,7 @@ An automation example to report a battery failure:
```yaml
- id: flower1_moisture_unavailable_check
alias: Flower 1 sensors available
alias: "Flower 1 sensors available"
trigger:
- entity_id: sensor.flower1_moisture
for: 24:00:00

View File

@ -85,7 +85,7 @@ Automations can be triggered on new files created on the Minio server using the
```yaml
#Automatically upload new local files
automation:
- alias: Upload camera snapshot
- alias: "Upload camera snapshot"
trigger:
platform: event
event_type: folder_watcher
@ -103,7 +103,7 @@ automation:
data:
file: "{{ trigger.event.data.path }}"
- alias: Download new Minio file
- alias: "Download new Minio file"
trigger:
- platform: event
event_type: minio

View File

@ -71,7 +71,7 @@ Some example automations:
```yaml
automation:
- alias: Notify CallerID
- alias: "Notify CallerID"
trigger:
platform: state
entity_id: sensor.modem_callerid
@ -80,7 +80,7 @@ automation:
service: notify.notify
data:
message: "Call from {{ state_attr('sensor.modem_callerid', 'cid_name') }} at {{ state_attr('sensor.modem_callerid', 'cid_number') }} "
- alias: Notify CallerID webui
- alias: "Notify CallerID webui"
trigger:
platform: state
entity_id: sensor.modem_callerid
@ -90,7 +90,7 @@ automation:
data:
title: "Call from"
message: "{{ state_attr('sensor.modem_callerid', 'cid_time').strftime("%I:%M %p") }} {{ state_attr('sensor.modem_callerid', 'cid_name') }} {{ state_attr('sensor.modem_callerid', 'cid_number') }} "
- alias: Say CallerID
- alias: "Say CallerID"
trigger:
platform: state
entity_id: sensor.modem_callerid

View File

@ -326,7 +326,7 @@ The lower level Pub/Sub subscriber receives events in real time and internally f
This automation will trigger when a `nest_event` event type with a type of `camera_motion` is received from the specified `device_id`.
```yaml
alias: motion alert
alias: "motion alert"
trigger:
- platform: event
event_type: nest_event

View File

@ -119,7 +119,7 @@ Example:
```yaml
# Example automation for webhooks based Netatmo events
- alias: Netatmo event example
- alias: "Netatmo event example"
description: "Count all events pushed by the Netatmo API"
trigger:
- event_data: {}
@ -137,7 +137,7 @@ Example:
```yaml
# Example automation for Netatmo Welcome
- alias: Motion at home
- alias: "Motion at home"
description: "Motion detected at home"
trigger:
- event_type: netatmo_event
@ -161,7 +161,7 @@ Example:
```yaml
# Example automation for Netatmo Presence
- alias: Motion at home
- alias: "Motion at home"
description: "Motion detected at home"
trigger:
- event_type: netatmo_event
@ -185,7 +185,7 @@ Example:
```yaml
# Example automation
- alias: door or window open or movement
- alias: "door or window open or movement"
description: "Notifies which door or window is open or was moved"
trigger:
- event_type: netatmo_event

View File

@ -190,7 +190,7 @@ The following automation example processes incoming SMS messages with the [Conve
```yaml
automation:
- alias: SMS conversation
- alias: "SMS conversation"
trigger:
- platform: event
event_type: netgear_lte_sms

View File

@ -38,7 +38,7 @@ The state is the last reading from Nightscout, and you can see other information
```yaml
- id: "1234567890123"
alias: overnight_low_kitchen_lights
alias: "overnight_low_kitchen_lights"
description: Turn on the lights in the kitchen if my blood sugar drops low overnight
trigger:
- below: "65"

View File

@ -51,7 +51,7 @@ Example automation to send a Telegram message on a completed download:
{% raw %}
```yaml
- alias: Completed Torrent
- alias: "Completed Torrent"
trigger:
platform: event
event_type: nzbget_download_complete

View File

@ -94,7 +94,7 @@ usage is to only retrieve data during the daytime:
```yaml
automation:
- alias: Update OpenUV every 30 minutes during the daytime
- alias: "Update OpenUV every 30 minutes during the daytime"
trigger:
platform: time_pattern
minutes: "/30"
@ -115,7 +115,7 @@ Update the UV index data every 20 minutes while the sun is at least 10 degrees a
```yaml
automation:
- alias: Update OpenUV every 20 minutes while the sun is at least 10 degrees above the horizon
- alias: "Update OpenUV every 20 minutes while the sun is at least 10 degrees above the horizon"
trigger:
platform: time_pattern
minutes: "/20"
@ -134,7 +134,7 @@ Update the protection window once a day:
```yaml
automation:
- alias: Update OpenUV protection window once a day
- alias: "Update OpenUV protection window once a day"
trigger:
platform: time
at: "02:12:00"
@ -148,7 +148,7 @@ etc.) might be to simply query the API less often:
```yaml
automation:
- alias: Update OpenUV every hour (24 of 50 calls per day)
- alias: "Update OpenUV every hour (24 of 50 calls per day)"
trigger:
platform: time_pattern
minutes: "/60"

View File

@ -100,7 +100,7 @@ The following example show how to implement an automation for the **button_press
```yaml
# Example configuration.yaml Automation entry
automation:
alias: Point button press
alias: "Point button press"
trigger:
- platform: state
entity_id: binary_sensor.point_button_press # Change this accordingly
@ -121,7 +121,7 @@ The events shown as [binary sensors](#binary-sensor) are sent to Home Assistant
```yaml
# Example configuration.yaml Automation entry
automation:
alias: Point button press (webhook)
alias: "Point button press (webhook)"
trigger:
- platform: event
event_type: point_webhook_received

View File

@ -100,7 +100,7 @@ QwikSwitch devices (i.e., transmitter buttons) will fire events on the Home Assi
```yaml
automation:
- alias: Action - Respond to A button press
- alias: "Action - Respond to A button press"
trigger:
platform: event
event_type: qwikswitch.button.@12df34

View File

@ -124,7 +124,7 @@ The service can be used as part of an automation script. For example:
```yaml
# Example configuration.yaml automation entry
automation:
- alias: Turn irrigation on
- alias: "Turn irrigation on"
trigger:
platform: time
at: "5:30:00"

View File

@ -280,7 +280,7 @@ scene:
light.ceiling_lights: off
automation:
- alias: Use doorbell button to trigger scene
- alias: "Use doorbell button to trigger scene"
trigger:
- platform: event
event_type: rfxtrx_event

View File

@ -166,7 +166,7 @@ Having configured the zones and the outputs, you can use them for automation, su
For example:
```yaml
alias: Flick the input switch when movement in bedroom detected
alias: "Flick the input switch when movement in bedroom detected"
trigger:
platform: state
entity_id: "binary_sensor.bedroom"

View File

@ -160,7 +160,7 @@ The following example turns off some entities as soon as a window opens. The sta
```yaml
# Example automation using snapshot
- alias: Window opened
- alias: "Window opened"
trigger:
- platform: state
entity_id: binary_sensor.window
@ -181,7 +181,7 @@ The following example turns off some entities as soon as a window opens. The sta
data:
entity_id: climate.ecobee
hvac_mode: "off"
- alias: Window closed
- alias: "Window closed"
trigger:
- platform: state
entity_id: binary_sensor.window

View File

@ -118,7 +118,7 @@ Mode | Description
```yaml
script: 
wakeup:
alias: Wake Up
alias: "Wake Up"
icon: "mdi:party-popper"
description: "Turns on the bedroom lights and then the living room lights after a delay"
variables:
@ -137,7 +137,7 @@ script: 
message: is waking up
entity_id: device_tracker.paulus
domain: light
- alias: Bedroom lights on
- alias: "Bedroom lights on"
service: light.turn_on
data:
entity_id: group.bedroom
@ -145,7 +145,7 @@ script: 
- delay:
# supports seconds, milliseconds, minutes, hours
minutes: "{{ minutes }}"
- alias: Living room lights on
- alias: "Living room lights on"
service: light.turn_on
data:
entity_id: "{{ turn_on_entity }}"

View File

@ -40,7 +40,7 @@ Any service data passed into the service call to activate the shell command will
```yaml
# Apply value of a GUI slider to the shell_command
automation:
- alias: run_set_ac
- alias: "run_set_ac"
trigger:
platform: state
entity_id: input_number.ac_temperature

View File

@ -104,7 +104,7 @@ To use the SMTP notification, refer to it in an automation or script like in thi
```yaml
burglar:
alias: Burglar Alarm
alias: "Burglar Alarm"
sequence:
- service: shell_command.snapshot
- delay:
@ -125,7 +125,7 @@ The optional `html` field makes a custom text/HTML multi-part message, allowing
```yaml
burglar:
alias: Burglar Alarm
alias: "Burglar Alarm"
sequence:
- service: shell_command.snapshot
- delay:

View File

@ -138,7 +138,7 @@ Removes an item from the queue.
```yaml
# Example automation to remove just played song from queue
alias: Remove last played song from queue
alias: "Remove last played song from queue"
id: Remove last played song from queue
trigger:
- platform: state

View File

@ -53,7 +53,7 @@ The `changed_by` attribute enables one to be able to take different actions depe
```yaml
automation:
- alias: Alarm status changed
- alias: "Alarm status changed"
trigger:
- platform: state
entity_id: alarm_control_panel.alarm_1

View File

@ -61,7 +61,7 @@ The service can be used as part of an automation script. For example:
```yaml
# Example configuration.yaml automation entry
automation:
- alias: Turn HVAC on
- alias: "Turn HVAC on"
trigger:
platform: time
at: "5:30:00"
@ -71,7 +71,7 @@ automation:
data:
V_IR_SEND: "0xC284" # the IR code to send
- alias: Turn HVAC off
- alias: "Turn HVAC off"
trigger:
platform: time
at: "0:30:00"

View File

@ -89,7 +89,7 @@ counter:
icon: mdi:alert
automation:
- alias: Count warnings
- alias: "Count warnings"
trigger:
platform: event
event_type: system_log_event
@ -108,7 +108,7 @@ This automation will create a persistent notification whenever an error or warni
```yaml
automation:
- alias: Create notifications for "service" errors
- alias: "Create notifications for "service" errors"
trigger:
platform: event
event_type: system_log_event
@ -130,7 +130,7 @@ This automation will create a new log entry when the door is opened:
```yaml
automation:
- alias: Log door opened
- alias: "Log door opened"
trigger:
platform: state
entity_id: binary_sensor.door

View File

@ -52,7 +52,7 @@ One of the most fun applications of tags is to pick music in your living room. T
```yaml
automation:
- id: handle_tag_scan
alias: Handle Tag Scan
alias: "Handle Tag Scan"
mode: single
# Hide warnings when triggered while in delay.
max_exceeded: silent

View File

@ -201,7 +201,7 @@ image_processing:
```yaml
# Example advanced automations.yaml entry
- alias: TensorFlow scanning
- alias: "TensorFlow scanning"
trigger:
- platform: state
entity_id:

View File

@ -105,7 +105,7 @@ input_number:
icon: mdi:thermometer
automation:
- alias: Alert when My Smoke Probe 1 is above threshold
- alias: "Alert when My Smoke Probe 1 is above threshold"
trigger:
platform: template
value_template: >-

View File

@ -128,7 +128,7 @@ timer:
```yaml
# Example automations.yaml entry
- alias: Timerswitch
- alias: "Timerswitch"
id: "Timerstart"
# Timer is started when the switch pumprun is set to on.
trigger:
@ -140,7 +140,7 @@ timer:
entity_id: timer.test
# When timer is stopped, the time run out, another message is sent
- alias: Timerstop
- alias: "Timerstop"
id: "Timerstop"
trigger:
- platform: event
@ -160,22 +160,22 @@ With the [`script`](/integrations/script/) integration you would be able to cont
```yaml
script:
start_timer:
alias: Start timer
alias: "Start timer"
sequence:
- service: timer.start
entity_id: timer.test
pause_timer:
alias: Pause timer
alias: "Pause timer"
sequence:
- service: timer.pause
entity_id: timer.test
cancel_timer:
alias: Cancel timer
alias: "Cancel timer"
sequence:
- service: timer.cancel
entity_id: timer.test
finish_timer:
alias: Finish timer
alias: "Finish timer"
sequence:
- service: timer.finish
entity_id: timer.test

View File

@ -97,7 +97,7 @@ Example of an automation that notifies on successful download and removes the to
{% raw %}
```yaml
- alias: Notify and remove completed torrent
- alias: "Notify and remove completed torrent"
trigger:
platform: event
event_type: transmission_downloaded_torrent

View File

@ -44,7 +44,7 @@ Twilio is a notify platform and thus can be controlled by calling the notify ser
```yaml
# Example automation notification entry
automation:
- alias: The sun has set
- alias: "The sun has set"
trigger:
platform: sun
event: sunset

View File

@ -47,7 +47,7 @@ Media can be included with messages by setting the optional `media_url` variable
```yaml
# Example automation notification entry
automation:
- alias: The sun has set
- alias: "The sun has set"
trigger:
platform: sun
event: sunset

View File

@ -211,7 +211,7 @@ media_player:
command: standby
automation:
- alias: Turn on the TV when Kodi is activated
- alias: "Turn on the TV when Kodi is activated"
trigger:
platform: state
entity_id: media_player.kodi_tv
@ -221,7 +221,7 @@ automation:
- service: media_player.turn_on
entity_id: media_player.kodi_tv
- alias: Turn off the TV when Kodi is in idle > 15 min
- alias: "Turn off the TV when Kodi is in idle > 15 min"
trigger:
platform: state
entity_id: media_player.kodi_tv

View File

@ -173,7 +173,7 @@ Start a scene blinking.
```yaml
#automation:
- alias: 'Specific scene activated'
- alias: "'Specific scene activated'"
description: "Trigger when scene 9 on network 42 is activated"
trigger:
platform: event

Some files were not shown because too many files have changed in this diff Show More