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 name: living_room_switch
automation: automation:
- alias: Turn on living room light - alias: "Turn on living room light"
trigger: trigger:
platform: event platform: event
event_type: button_pressed event_type: button_pressed
@ -35,7 +35,7 @@ automation:
service: light.turn_on service: light.turn_on
entity_id: light.hue_color_lamp_3 entity_id: light.hue_color_lamp_3
- alias: Turn off living room light - alias: "Turn off living room light"
trigger: trigger:
platform: event platform: event
event_type: button_pressed event_type: button_pressed

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ notify me:
name: mypushbullet name: mypushbullet
automation: automation:
- alias: FanOn - alias: "FanOn"
trigger: trigger:
platform: numeric_state platform: numeric_state
entity_id: sensor.furnace 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 %} {% raw %}
```yaml ```yaml
- alias: FanOff - alias: "FanOff"
trigger: trigger:
platform: numeric_state platform: numeric_state
entity_id: sensor.furnace entity_id: sensor.furnace

View File

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

View File

@ -21,7 +21,7 @@ and automation part to your `configuration.yaml` file.
```yaml ```yaml
automation: automation:
- alias: Send message at a given time - alias: "Send message at a given time"
trigger: trigger:
platform: time platform: time
at: "12:15:00" 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 ```yaml
automation: automation:
- alias: Turn on kitchen light when there is movement - alias: "Turn on kitchen light when there is movement"
trigger: trigger:
platform: state platform: state
entity_id: sensor.motion_sensor entity_id: sensor.motion_sensor
@ -19,7 +19,7 @@ automation:
service: light.turn_on service: light.turn_on
entity_id: light.kitchen_light 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: trigger:
platform: state platform: state
entity_id: sensor.motion_sensor entity_id: sensor.motion_sensor
@ -35,7 +35,7 @@ Or in the case of multiple sensors/triggers:
```yaml ```yaml
automation: 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: trigger:
- platform: state - platform: state
entity_id: sensor.motion_sensor, binary_sensor.front_door, binary_sensor.doorbell entity_id: sensor.motion_sensor, binary_sensor.front_door, binary_sensor.doorbell
@ -50,7 +50,7 @@ automation:
data: data:
entity_id: timer.hallway entity_id: timer.hallway
- alias: Turn off hallway lights 10 minutes after trigger - alias: "Turn off hallway lights 10 minutes after trigger"
trigger: trigger:
platform: event platform: event
event_type: timer.finished 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. You can also restrict lights from turning on based on time of day and implement transitions for fading lights on and off.
```yaml ```yaml
- alias: Motion Sensor Lights On - alias: "Motion Sensor Lights On"
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.ecolink_pir_motion_sensor_sensor 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 transition: 15
- alias: Motion Sensor Lights Off - alias: "Motion Sensor Lights Off"
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.ecolink_pir_motion_sensor_sensor 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 ```yaml
automation: automation:
- alias: Automation Name - alias: "Automation Name"
initial_state: false initial_state: false
trigger: trigger:
- platform: ... - platform: ...
@ -126,7 +126,7 @@ If you want to migrate your manual automations to use the editor, you'll have to
```yaml ```yaml
# Example automations.yaml entry. Note, automations.yaml is always a list! # 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. - 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: trigger:
- platform: state - platform: state
entity_id: sun.sun entity_id: sun.sun

View File

@ -231,7 +231,7 @@ These work recursively. As an example using `!include_dir_* automation`, will in
```yaml ```yaml
automation: automation:
- alias: Automation 1 - alias: "Automation 1"
trigger: trigger:
platform: state platform: state
entity_id: device_tracker.iphone entity_id: device_tracker.iphone
@ -239,7 +239,7 @@ automation:
action: action:
service: light.turn_on service: light.turn_on
entity_id: light.entryway entity_id: light.entryway
- alias: Automation 2 - alias: "Automation 2"
trigger: trigger:
platform: state platform: state
entity_id: device_tracker.iphone entity_id: device_tracker.iphone
@ -260,7 +260,7 @@ automation: !include_dir_list automation/presence/
`automation/presence/automation1.yaml` `automation/presence/automation1.yaml`
```yaml ```yaml
alias: Automation 1 alias: "Automation 1"
trigger: trigger:
platform: state platform: state
entity_id: device_tracker.iphone entity_id: device_tracker.iphone
@ -273,7 +273,7 @@ action:
`automation/presence/automation2.yaml` `automation/presence/automation2.yaml`
```yaml ```yaml
alias: Automation 2 alias: "Automation 2"
trigger: trigger:
platform: state platform: state
entity_id: device_tracker.iphone entity_id: device_tracker.iphone
@ -370,7 +370,7 @@ speech:
```yaml ```yaml
automation: automation:
- alias: Automation 1 - alias: "Automation 1"
trigger: trigger:
platform: state platform: state
entity_id: device_tracker.iphone entity_id: device_tracker.iphone
@ -378,7 +378,7 @@ automation:
action: action:
service: light.turn_on service: light.turn_on
entity_id: light.entryway entity_id: light.entryway
- alias: Automation 2 - alias: "Automation 2"
trigger: trigger:
platform: state platform: state
entity_id: device_tracker.iphone entity_id: device_tracker.iphone
@ -399,7 +399,7 @@ automation: !include_dir_merge_list automation/
`automation/presence.yaml` `automation/presence.yaml`
```yaml ```yaml
- alias: Automation 1 - alias: "Automation 1"
trigger: trigger:
platform: state platform: state
entity_id: device_tracker.iphone entity_id: device_tracker.iphone
@ -407,7 +407,7 @@ automation: !include_dir_merge_list automation/
action: action:
service: light.turn_on service: light.turn_on
entity_id: light.entryway entity_id: light.entryway
- alias: Automation 2 - alias: "Automation 2"
trigger: trigger:
platform: state platform: state
entity_id: device_tracker.iphone 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]. 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 ```yaml
- alias: Bedroom lights on - alias: "Bedroom lights on"
service: light.turn_on service: light.turn_on
data: data:
entity_id: group.bedroom entity_id: group.bedroom
@ -74,7 +74,7 @@ The variables action allows you to set/override variables that will be accessibl
- light.kitchen - light.kitchen
- light.living_room - light.living_room
brightness: 100 brightness: 100
- alias: Control lights - alias: "Control lights"
service: light.turn_on service: light.turn_on
data: data:
entity_id: "{{ entities }}" 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. 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 ```yaml
- alias: Fire Event - alias: "Fire Event"
trigger: trigger:
- platform: state - platform: state
entity_id: switch.kitchen entity_id: switch.kitchen
@ -306,7 +306,7 @@ The following automation example shows how to capture the custom event `event_li
{% raw %} {% raw %}
```yaml ```yaml
- alias: Capture Event - alias: "Capture Event"
trigger: trigger:
- platform: event - platform: event
event_type: event_light_state_changed event_type: event_light_state_changed
@ -367,7 +367,7 @@ script:
do_something: do_something:
sequence: sequence:
- service: script.get_ready_for_something - 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: repeat:
while: while:
- condition: state - condition: state
@ -415,7 +415,7 @@ automation:
state: "off" state: "off"
mode: single mode: single
action: action:
- alias: Repeat the sequence UNTIL the conditions are true - alias: "Repeat the sequence UNTIL the conditions are true"
repeat: repeat:
sequence: sequence:
# Run command that for some reason doesn't always work # 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: If there is an automation that handles that event, it will be automatically triggered. See below:
```yaml ```yaml
- alias: Capture Event - alias: "Capture Event"
trigger: trigger:
platform: event platform: event
event_type: event_light_state_changed 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 ```yaml
- id: "1234567890" - id: "1234567890"
alias: Double-press Button 2 to toggle all lights alias: "Double-press Button 2 to toggle all lights"
trigger: trigger:
- platform: event - platform: event
event_type: zwave.scene_activated event_type: zwave.scene_activated
@ -1202,7 +1202,7 @@ Here is an example configuration needed for the scene controller:
```yaml ```yaml
automation: automation:
- alias: Sync the indicator value on button events - alias: "Sync the indicator value on button events"
trigger: trigger:
- platform: event - platform: event
event_type: zwave.scene_activated event_type: zwave.scene_activated
@ -1392,7 +1392,7 @@ Button four release|4|7740
Example Event: Example Event:
```yaml ```yaml
- alias: MatrixButton2 - alias: "MatrixButton2"
trigger: trigger:
- event_type: zwave.scene_activated - event_type: zwave.scene_activated
platform: event platform: event
@ -1594,7 +1594,7 @@ Button two triple tap|2|4
Example Event: Example Event:
```yaml ```yaml
- alias: JascoButton1 - alias: "JascoButton1"
trigger: trigger:
- event_type: zwave.scene_activated - event_type: zwave.scene_activated
platform: event 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. 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 ```yaml
- alias: Z-Wave network is complete - alias: "Z-Wave network is complete"
trigger: trigger:
platform: event platform: event
event_type: zwave.network_complete 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. 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 ```yaml
- alias: Z-Wave network is complete some dead - alias: "Z-Wave network is complete some dead"
trigger: trigger:
platform: event platform: event
event_type: zwave.network_complete_some_dead 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. 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 ```yaml
- alias: Z-Wave network is ready - alias: "Z-Wave network is ready"
trigger: trigger:
platform: event platform: event
event_type: zwave.network_ready 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. Home Assistant will trigger an event when the Z-Wave network is set up to be started.
```yaml ```yaml
- alias: Z-Wave network is starting - alias: "Z-Wave network is starting"
trigger: trigger:
platform: event platform: event
event_type: zwave.network_start 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. Home Assistant will trigger an event when the Z-Wave network is stopping.
```yaml ```yaml
- alias: Z-Wave network is stopping - alias: "Z-Wave network is stopping"
trigger: trigger:
platform: event platform: event
event_type: zwave.network_stop event_type: zwave.network_stop
@ -64,7 +64,7 @@ Home Assistant will trigger an event when command_class_basic changes value on a
Example: Example:
```yaml ```yaml
- alias: Minimote Button Pressed - alias: "Minimote Button Pressed"
trigger: trigger:
platform: event platform: event
event_type: zwave.node_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 ```yaml
# Example configuration.yaml automation entry # Example configuration.yaml automation entry
automation: automation:
- alias: Turn on Desk light - alias: "Turn on Desk light"
trigger: trigger:
platform: event platform: event
event_type: zwave.scene_activated 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 ```yaml
#automation.yaml #automation.yaml
- alias: Enable Arlo upon HA start' - alias: "Enable Arlo upon HA start'"
initial_state: "on" initial_state: "on"
trigger: trigger:
platform: homeassistant platform: homeassistant
@ -104,7 +104,7 @@ Arming the Arlo Base Station when leaving.
```yaml ```yaml
- id: arm_arlo_when_leaving - id: arm_arlo_when_leaving
alias: Arm Arlo cameras when leaving alias: "Arm Arlo cameras when leaving"
trigger: trigger:
platform: state platform: state
entity_id: group.family entity_id: group.family
@ -119,7 +119,7 @@ Setting Arlo to a custom mode (mapped to `home_mode_name` in `configuration.yaml
```yaml ```yaml
- id: disarm_arlo_when_arriving - id: disarm_arlo_when_arriving
alias: Set Arlo cameras to Home mode when arriving alias: "Set Arlo cameras to Home mode when arriving"
trigger: trigger:
platform: state platform: state
entity_id: group.family 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 ```yaml
- id: "1583706446906" - id: "1583706446906"
alias: joe_doe_front_door_operate alias: "joe_doe_front_door_operate"
description: John Doe locks or unlocks the Front Door description: John Doe locks or unlocks the Front Door
trigger: trigger:
- entity_id: sensor.front_door_operator - 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 ```yaml
automation: automation:
- alias: Sunset Service Bus message - alias: "Sunset Service Bus message"
trigger: trigger:
platform: sun platform: sun
event: sunset event: sunset

View File

@ -38,7 +38,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
#### Motion #### Motion
```yaml ```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: trigger:
platform: state platform: state
entity_id: binary_sensor.motion_sensor_158d000xxxxxc2 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 - service: automation.turn_on
data: data:
entity_id: automation.MOTION_OFF 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: trigger:
platform: state platform: state
entity_id: binary_sensor.motion_sensor_158d000xxxxxc2 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 #### Door and/or Window
```yaml ```yaml
- alias: If the window is open turn off the radiator - alias: "If the window is open turn off the radiator"
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.door_window_sensor_158d000xxxxxc2 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 entity_id: climate.livingroom
data: data:
operation_mode: "Off" 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: trigger:
platform: state platform: state
entity_id: binary_sensor.door_window_sensor_158d000xxxxxc2 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 entity_id: climate.livingroom
data: data:
operation_mode: "Smart schedule" operation_mode: "Smart schedule"
- alias: Notify if door is opened when away - alias: "Notify if door is opened when away"
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.door_window_sensor_15xxxxxxc9xx6b 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 #### Smoke
```yaml ```yaml
- alias: Send notification on fire alarm - alias: "Send notification on fire alarm"
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.smoke_sensor_158d0001574899 entity_id: binary_sensor.smoke_sensor_158d0001574899
@ -141,7 +141,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
{% raw %} {% raw %}
```yaml ```yaml
- alias: Send notification on gas alarm - alias: "Send notification on gas alarm"
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.natgas_sensor_158dxxxxxxxxxx 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. 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 ```yaml
- alias: Toggle dining light on single press - alias: "Toggle dining light on single press"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.click 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: action:
service: switch.toggle service: switch.toggle
entity_id: switch.wall_switch_left_158d000xxxxx01 entity_id: switch.wall_switch_left_158d000xxxxx01
- alias: Toggle couch light on double click - alias: "Toggle couch light on double click"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.click 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: action:
service: switch.toggle service: switch.toggle
entity_id: switch.wall_switch_right_158d000xxxxx01 entity_id: switch.wall_switch_right_158d000xxxxx01
- alias: Let a dog bark on long press - alias: "Let a dog bark on long press"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.click 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`. 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 ```yaml
- alias: Cube event flip90 - alias: "Cube event flip90"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.cube_action 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 entity_id: light.gateway_light_28xxxxxxxxxx
data: data:
color_name: "springgreen" color_name: "springgreen"
- alias: Cube event flip180 - alias: "Cube event flip180"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.cube_action 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 entity_id: light.gateway_light_28xxxxxxxxxx
data: data:
color_name: "darkviolet" color_name: "darkviolet"
- alias: Cube event move - alias: "Cube event move"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.cube_action 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 entity_id: light.gateway_light_28xxxxxxxxxx
data: data:
color_name: "gold" color_name: "gold"
- alias: Cube event tap_twice - alias: "Cube event tap_twice"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.cube_action 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 entity_id: light.gateway_light_28xxxxxxxxxx
data: data:
color_name: "deepskyblue" color_name: "deepskyblue"
- alias: Cube event shake_air - alias: "Cube event shake_air"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.cube_action 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 %} {% raw %}
```yaml ```yaml
- alias: Decrease brightness of the gateway light - alias: "Decrease brightness of the gateway light"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.click event_type: xiaomi_aqara.click
@ -292,7 +292,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
10 10
{% endif %} {% endif %}
- alias: Increase brightness of the gateway light - alias: "Increase brightness of the gateway light"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.click event_type: xiaomi_aqara.click
@ -314,7 +314,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
10 10
{% endif %} {% endif %}
- alias: Turn off the gateway light - alias: "Turn off the gateway light"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.click 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. This automation toggles the living room lamp on vibration/tilt.
```yaml ```yaml
- alias: Turn on Living Room Lamp on vibration - alias: "Turn on Living Room Lamp on vibration"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.movement event_type: xiaomi_aqara.movement
@ -344,7 +344,7 @@ This automation toggles the living room lamp on vibration/tilt.
service: light.toggle service: light.toggle
data: data:
entity_id: light.living_room_lamp entity_id: light.living_room_lamp
- alias: Turn on Living Room Lamp on tilt - alias: "Turn on Living Room Lamp on tilt"
trigger: trigger:
platform: event platform: event
event_type: xiaomi_aqara.movement 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) 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 ```yaml
alias: Blink Snap Picture alias: "Blink Snap Picture"
sequence: sequence:
- service: blink.trigger_camera - service: blink.trigger_camera
data: data:
@ -122,7 +122,7 @@ Here, this example assumes your blink module is named `My Sync Module` and that
```yaml ```yaml
- id: arm_blink_when_away - id: arm_blink_when_away
alias: Arm Blink When Away alias: "Arm Blink When Away"
trigger: trigger:
platform: state platform: state
entity_id: all entity_id: all
@ -138,7 +138,7 @@ Similar to the previous example, this automation will disarm blink when arriving
```yaml ```yaml
- id: disarm_blink_when_home - id: disarm_blink_when_home
alias: Disarm Blink When Home alias: "Disarm Blink When Home"
trigger: trigger:
platform: state platform: state
entity_id: all entity_id: all
@ -158,7 +158,7 @@ Again, this example assumes your camera's name (in the blink app) is `My Camera`
```yaml ```yaml
- id: save_blink_video_on_motion - id: save_blink_video_on_motion
alias: Save Blink Video on Motion alias: "Save Blink Video on Motion"
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.blink_my_camera_motion_detected entity_id: binary_sensor.blink_my_camera_motion_detected

View File

@ -163,7 +163,7 @@ calendar:
# automations.yaml # automations.yaml
- id: wakeup - id: wakeup
alias: worktime wakeup alias: "worktime wakeup"
trigger: trigger:
platform: time platform: time
at: "06:40:00" 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 ```yaml
cast_downstairs_on_kitchen: cast_downstairs_on_kitchen:
alias: Show Downstairs on kitchen alias: "Show Downstairs on kitchen"
sequence: sequence:
- data: - data:
dashboard_path: lovelace dashboard_path: lovelace
@ -52,7 +52,7 @@ Optional:
```yaml ```yaml
'cast_youtube_to_my_chromecast': 'cast_youtube_to_my_chromecast':
alias: Cast YouTube to My Chromecast alias: "Cast YouTube to My Chromecast"
sequence: sequence:
- data: - data:
entity_id: media_player.my_chromecast entity_id: media_player.my_chromecast
@ -77,7 +77,7 @@ Optional:
```yaml ```yaml
'cast_supla_to_my_chromecast': 'cast_supla_to_my_chromecast':
alias: Cast supla to My Chromecast alias: "Cast supla to My Chromecast"
sequence: sequence:
- data: - data:
entity_id: media_player.my_chromecast 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 ```yaml
'cast_plex_to_chromecast': 'cast_plex_to_chromecast':
alias: Cast Plex to Chromecast alias: "Cast Plex to Chromecast"
sequence: sequence:
- service: media_player.play_media - service: media_player.play_media
data: data:

View File

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

View File

@ -143,7 +143,7 @@ system_log:
# Example configuration.yaml entry # Example configuration.yaml entry
automation: automation:
- id: 'errorcounterautomation' - id: 'errorcounterautomation'
alias: Error Counting Automation alias: "Error Counting Automation"
trigger: trigger:
platform: event platform: event
event_type: system_log_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 ```yaml
automation: automation:
- alias: 'Toggle lamp from dimmer' - alias: "'Toggle lamp from dimmer'"
initial_state: "on" initial_state: "on"
trigger: trigger:
platform: event platform: event
@ -207,7 +207,7 @@ automation:
service: light.toggle service: light.toggle
entity_id: light.lamp entity_id: light.lamp
- alias: 'Increase brightness of lamp from dimmer' - alias: "Increase brightness of lamp from dimmer"
initial_state: "on" initial_state: "on"
trigger: trigger:
platform: event platform: event
@ -223,7 +223,7 @@ automation:
{% set bri = state_attr('light.lamp', 'brightness') | int %} {% set bri = state_attr('light.lamp', 'brightness') | int %}
{{ [bri+30, 249] | min }} {{ [bri+30, 249] | min }}
- alias: 'Decrease brightness of lamp from dimmer' - alias: "Decrease brightness of lamp from dimmer"
initial_state: "on" initial_state: "on"
trigger: trigger:
platform: event platform: event
@ -260,7 +260,7 @@ automation:
```yaml ```yaml
automation: automation:
- alias: React to color wheel changes - alias: "React to color wheel changes"
trigger: trigger:
- platform: event - platform: event
event_type: deconz_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 ```yaml
automation: automation:
- alias: Flash Hue Bulb with Doorbell Motion - alias: "Flash Hue Bulb with Doorbell Motion"
mode: single mode: single
trigger: trigger:
- platform: state - platform: state

View File

@ -20,7 +20,7 @@ Example:
```yaml ```yaml
- id: "123456789" - id: "123456789"
alias: Light turns off alias: "Light turns off"
trigger: trigger:
- platform: device - platform: device
device_id: 7a92d5ee74014a0b86903fc669b0bcd6 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 ```yaml
- id: '1234567890123' - 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 description: Turn on the lights in the kitchen if my blood sugar drops low overnight
trigger: trigger:
- below: '65' - below: '65'

View File

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

View File

@ -173,7 +173,7 @@ Note: Remember to complete the schedule assignment steps above for each event ty
### Automation Example ### Automation Example
```yaml ```yaml
- alias: Doorbird Ring - alias: "Doorbird Ring"
trigger: trigger:
platform: event platform: event
event_type: doorbird_driveway_gate_somebody_pressed_the_button 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 ```yaml
# Example automation notification entry # Example automation notification entry
automation: automation:
- alias: The sun has set - alias: "The sun has set"
trigger: trigger:
platform: sun platform: sun
event: sunset event: sunset

View File

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

View File

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

View File

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

View File

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

View File

@ -99,7 +99,7 @@ Use the `image_processing.detect_face` events to trigger automations, and breako
```yaml ```yaml
- id: '12345' - id: '12345'
alias: Ringo Starr recognised alias: "Ringo Starr recognised"
trigger: trigger:
platform: event platform: event
event_type: image_processing.detect_face 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 ```yaml
- id: '1533703568569' - id: '1533703568569'
alias: Face taught alias: "Face taught"
trigger: trigger:
- event_data: - event_data:
service: facebox.teach_face service: facebox.teach_face
@ -174,7 +174,7 @@ you can create an automation to receive notifications on Facebox errors:
```yaml ```yaml
- id: '1533703568577' - id: '1533703568577'
alias: Facebox error alias: "Facebox error"
trigger: trigger:
platform: event platform: event
event_type: system_log_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 ```yaml
automation: automation:
- alias: Trigger action when new element(s) in RSS feed - alias: "Trigger action when new element(s) in RSS feed"
trigger: trigger:
platform: event platform: event
event_type: feedreader event_type: feedreader
@ -69,7 +69,7 @@ automation:
```yaml ```yaml
automation: automation:
- alias: Send notification of RSS feed title when updated - alias: "Send notification of RSS feed title when updated"
trigger: trigger:
platform: event platform: event
event_type: feedreader event_type: feedreader

View File

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

View File

@ -72,7 +72,7 @@ The flic integration fires `flic_click` events on the bus. You can capture the e
```yaml ```yaml
# Example configuration.yaml automation entry # Example configuration.yaml automation entry
automation: 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: trigger:
platform: event platform: event
event_type: flic_click event_type: flic_click
@ -97,7 +97,7 @@ To help detect and debug flic button clicks, you can use this automation that se
```yaml ```yaml
automation: automation:
- alias: FLIC Html5 notify on every click - alias: "FLIC Html5 notify on every click"
trigger: trigger:
platform: event platform: event
event_type: flic_click event_type: flic_click

View File

@ -60,7 +60,7 @@ Automations can be triggered on filesystem event data using a template. The foll
```yaml ```yaml
#Send notification for new image (including the image itself) #Send notification for new image (including the image itself)
automation: automation:
 alias: New file alert  alias: "New file alert"
trigger: trigger:
  platform: event   platform: event
  event_type: folder_watcher   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 ```yaml
automation: automation:
- alias: Trigger action when you check into a venue. - alias: "Trigger action when you check into a venue."
trigger: trigger:
platform: event platform: event
event_type: foursquare.push 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 %} {% raw %}
```yaml ```yaml
- alias: GeniusHub Error Alerts - alias: "GeniusHub Error Alerts"
trigger: trigger:
platform: numeric_state platform: numeric_state
entity_id: sensor.geniushub_errors 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 %} {% raw %}
```yaml ```yaml
- alias: GeniusHub CH State Change Alert - alias: "GeniusHub CH State Change Alert"
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.dual_channel_receiver_2_1 entity_id: binary_sensor.dual_channel_receiver_2_1

View File

@ -51,7 +51,7 @@ zone:
passive: true passive: true
automation: automation:
- alias: 'Bush Fire Alert' - alias: "Bush Fire Alert"
trigger: trigger:
platform: geo_location platform: geo_location
source: nsw_rural_fire_service_feed 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 ```yaml
- id: '1572630019168' - id: '1572630019168'
alias: Stop Tesla Charging if Power Price Spikes alias: "Stop Tesla Charging if Power Price Spikes"
description: "" description: ""
trigger: trigger:
- above: '30' - above: '30'

View File

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

View File

@ -456,7 +456,7 @@ binary_sensor:
{{as_timestamp(now()) - as_timestamp(states.sensor.office_voltage.last_changed) < 600}} {{as_timestamp(now()) - as_timestamp(states.sensor.office_voltage.last_changed) < 600}}
automation: automation:
- alias: Homematic Reconnect - alias: "Homematic Reconnect"
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.homematic_up entity_id: binary_sensor.homematic_up
@ -503,7 +503,7 @@ automation:
```yaml ```yaml
automation: automation:
- alias: Homematic CCU Reboot - alias: "Homematic CCU Reboot"
trigger: trigger:
platform: state platform: state
entity_id: sensor.v_last_reboot 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 %} {% raw %}
```yaml ```yaml
- alias: Push/update notification of sensor state with tag - alias: "Push/update notification of sensor state with tag"
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.sensor 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. notification is received on the device.
```yaml ```yaml
- alias: HTML5 push notification received and displayed on device - alias: "HTML5 push notification received and displayed on device"
trigger: trigger:
platform: event platform: event
event_type: html5_notification.received 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`. 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 ```yaml
- alias: HTML5 push notification clicked - alias: "HTML5 push notification clicked"
trigger: trigger:
platform: event platform: event
event_type: html5_notification.clicked event_type: html5_notification.clicked
@ -292,7 +292,7 @@ You will receive an event named `html5_notification.clicked` when the notificati
or or
```yaml ```yaml
- alias: HTML5 push notification action button clicked - alias: "HTML5 push notification action button clicked"
trigger: trigger:
platform: event platform: event
event_type: html5_notification.clicked event_type: html5_notification.clicked
@ -305,7 +305,7 @@ or
You will receive an event named `html5_notification.closed` when the notification is closed. You will receive an event named `html5_notification.closed` when the notification is closed.
```yaml ```yaml
- alias: HTML5 push notification clicked - alias: "HTML5 push notification clicked"
trigger: trigger:
platform: event platform: event
event_type: html5_notification.closed event_type: html5_notification.closed

View File

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

View File

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

View File

@ -19,7 +19,7 @@ The `found_plate` event is triggered after OpenALPR has found a new license plat
```yaml ```yaml
# Example configuration.yaml automation entry # Example configuration.yaml automation entry
automation: automation:
- alias: Open garage door - alias: "Open garage door"
trigger: trigger:
platform: event platform: event
event_type: image_processing.found_plate 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 ```yaml
# Example configuration.yaml automation entry # Example configuration.yaml automation entry
automation: automation:
- alias: Known person in front of my door - alias: "Known person in front of my door"
trigger: trigger:
platform: event platform: event
event_type: image_processing.detect_face event_type: image_processing.detect_face
@ -63,7 +63,7 @@ sensor:
scan_interval: 10000 scan_interval: 10000
... ...
automation: automation:
- alias: Scan for faces when motion detected - alias: "Scan for faces when motion detected"
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.door_motion_sensor 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 %} {% raw %}
```yaml ```yaml
- alias: Low CV Pressure Alert - alias: "Low CV Pressure Alert"
trigger: trigger:
platform: numeric_state platform: numeric_state
entity_id: sensor.cv_pressure 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 ```yaml
automation: automation:
alias: Arriving home alias: "Arriving home"
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.motion_garage entity_id: binary_sensor.motion_garage

View File

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

View File

@ -135,7 +135,7 @@ The following example shows the usage of the `input_select.select_option` servic
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
automation: automation:
- alias: example automation - alias: "example automation"
trigger: trigger:
platform: event platform: event
event_type: MY_CUSTOM_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 ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
automation: automation:
- alias: example automation - alias: "example automation"
trigger: trigger:
platform: event platform: event
event_type: MY_CUSTOM_EVENT event_type: MY_CUSTOM_EVENT
@ -183,7 +183,7 @@ input_select:
# Automation. # Automation.
# This automation script runs when a value is received via MQTT on retained topic: thermostatMode # 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. # 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: trigger:
platform: mqtt platform: mqtt
topic: "thermostatMode" topic: "thermostatMode"
@ -196,7 +196,7 @@ input_select:
# This automation script runs when the thermostat mode selector is changed. # 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. # It publishes its value to the same MQTT topic it is also subscribed to.
- alias: Set Thermostat Mode - alias: "Set Thermostat Mode"
trigger: trigger:
platform: state platform: state
entity_id: input_select.thermostat_mode entity_id: input_select.thermostat_mode

View File

@ -127,7 +127,7 @@ input_text:
name: Brightness name: Brightness
automation: automation:
- alias: Bedroom Light - Custom - alias: "Bedroom Light - Custom"
trigger: trigger:
platform: state platform: state
entity_id: input_select.scene_bedroom 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: automation:
# Trigger an INSTEON scene 25 # Trigger an INSTEON scene 25
- id: trigger_scene_25_on - id: trigger_scene_25_on
alias: Turn on scene 25 alias: "Turn on scene 25"
action: action:
- service: insteon.scene_on - service: insteon.scene_on
group: 25 group: 25
@ -126,7 +126,7 @@ This allows the mini-remotes to be configured as triggers for automations. Here
automation: automation:
# 4 or 8 button remote with button c pressed # 4 or 8 button remote with button c pressed
- id: light_on - id: light_on
alias: Turn a light on alias: "Turn a light on"
trigger: trigger:
- platform: event - platform: event
event_type: insteon.button_on event_type: insteon.button_on
@ -143,7 +143,7 @@ automation:
# single button remote # single button remote
- id: light_off - id: light_off
alias: Turn a light off alias: "Turn a light off"
trigger: trigger:
- platform: event - platform: event
event_type: insteon.button_on 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: automation:
# Trigger an INSTEON scene 25 # Trigger an INSTEON scene 25
- id: trigger_scene_25_on - id: trigger_scene_25_on
alias: Turn on scene 25 alias: "Turn on scene 25"
trigger: trigger:
- ... - ...
action: action:
@ -387,7 +387,7 @@ This allows the mini-remotes to be configured as triggers for automations. Here
automation: automation:
# 4 or 8 button remote with button c pressed # 4 or 8 button remote with button c pressed
- id: light_on - id: light_on
alias: Turn a light on alias: "Turn a light on"
trigger: trigger:
- platform: event - platform: event
event_type: insteon.button_on event_type: insteon.button_on
@ -404,7 +404,7 @@ automation:
# single button remote # single button remote
- id: light_off - id: light_off
alias: Turn a light off alias: "Turn a light off"
trigger: trigger:
- platform: event - platform: event
event_type: insteon.button_on 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 ```yaml
automation: automation:
- alias: turn off living room on double tap lightswitch - alias: "turn off living room on double tap lightswitch"
trigger: trigger:
platform: event platform: event
event_type: isy994_control event_type: isy994_control

View File

@ -84,7 +84,7 @@ And an automation rule to breathe life into it:
```yaml ```yaml
automation: automation:
alias: Keyboard all lights on alias: "Keyboard all lights on"
trigger: trigger:
platform: event platform: event
event_type: keyboard_remote_command_received 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 ```yaml
automation: automation:
- alias: Keyboard Connected - alias: "Keyboard Connected"
trigger: trigger:
platform: event platform: event
event_type: keyboard_remote_connected event_type: keyboard_remote_connected
@ -120,7 +120,7 @@ automation:
media_content_id: keyboard_connected.wav media_content_id: keyboard_connected.wav
media_content_type: music media_content_type: music
- alias: Bluetooth Keyboard Disconnected - alias: "Bluetooth Keyboard Disconnected"
trigger: trigger:
platform: event platform: event
event_type: keyboard_remote_disconnected event_type: keyboard_remote_disconnected

View File

@ -208,7 +208,7 @@ Example automation using these IR codes to toggle a Sonoff plug.
```yaml ```yaml
# Example kira_sensor # Example kira_sensor
- id: "1583339338363" - id: "1583339338363"
alias: Panasonic On alias: "Panasonic On"
description: Turn on sonoff s20 relay description: Turn on sonoff s20 relay
trigger: trigger:
- entity_id: sensor.kira_wireless - 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 ```yaml
script: script:
play_kodi_pvr: play_kodi_pvr:
alias: Turn on the silly box alias: "Turn on the silly box"
sequence: sequence:
- alias: TV on - alias: "TV on"
service: media_player.turn_on service: media_player.turn_on
data: data:
entity_id: media_player.kodi entity_id: media_player.kodi
- alias: Play TV channel - alias: "Play TV channel"
service: media_player.play_media service: media_player.play_media
data: data:
entity_id: media_player.kodi entity_id: media_player.kodi
@ -266,9 +266,9 @@ script:
```yaml ```yaml
script: script:
play_kodi_smp: 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: sequence:
- alias: TV on - alias: "TV on"
service: media_player.turn_on service: media_player.turn_on
data: data:
entity_id: media_player.kodi entity_id: media_player.kodi
@ -286,9 +286,9 @@ script:
```yaml ```yaml
script: script:
update_library: update_library:
alias: Update Kodi Library alias: "Update Kodi Library"
sequence: sequence:
- alias: Call Kodi update - alias: "Call Kodi update"
service: kodi.call_method service: kodi.call_method
data: data:
entity_id: media_player.kodi entity_id: media_player.kodi

View File

@ -211,7 +211,7 @@ life360:
```yaml ```yaml
automation: automation:
- alias: Life360 Overdue Update - alias: "Life360 Overdue Update"
trigger: trigger:
platform: event platform: event
event_type: life360_update_overdue event_type: life360_update_overdue
@ -225,7 +225,7 @@ automation:
trigger.event.data.entity_id trigger.event.data.entity_id
}} is overdue. }} is overdue.
- alias: Life360 Update Restored - alias: "Life360 Update Restored"
trigger: trigger:
platform: event platform: event
event_type: life360_update_restored 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: 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 ```yaml
automation: automation:
- alias: ... - alias: "..."
trigger: trigger:
# ... # ...
action: action:

View File

@ -50,7 +50,7 @@ Here's an example of a script using the above light group.
```yaml ```yaml
script: script:
turn_on_kitchen_lights: turn_on_kitchen_lights:
alias: Kitchen lights on alias: "Kitchen lights on"
sequence: sequence:
service: light.turn_on service: light.turn_on
data: 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 # Example configuration.yaml entry
automation: automation:
- id: one - id: one
alias: Turn on light when motion is detected alias: "Turn on light when motion is detected"
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.motion_1 entity_id: binary_sensor.motion_1
@ -67,7 +67,7 @@ automation:
```yaml ```yaml
# Ledlist morning on, red # Ledlist morning on, red
- id: llmor - id: llmor
alias: Stair morning on alias: "Stair morning on"
trigger: trigger:
- at: '05:00' - at: '05:00'
platform: time platform: time

View File

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

View File

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

View File

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

View File

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

View File

@ -140,7 +140,7 @@ An automation example to report a battery failure:
```yaml ```yaml
- id: flower1_moisture_unavailable_check - id: flower1_moisture_unavailable_check
alias: Flower 1 sensors available alias: "Flower 1 sensors available"
trigger: trigger:
- entity_id: sensor.flower1_moisture - entity_id: sensor.flower1_moisture
for: 24:00:00 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 ```yaml
#Automatically upload new local files #Automatically upload new local files
automation: automation:
- alias: Upload camera snapshot - alias: "Upload camera snapshot"
trigger: trigger:
platform: event platform: event
event_type: folder_watcher event_type: folder_watcher
@ -103,7 +103,7 @@ automation:
data: data:
file: "{{ trigger.event.data.path }}" file: "{{ trigger.event.data.path }}"
- alias: Download new Minio file - alias: "Download new Minio file"
trigger: trigger:
- platform: event - platform: event
event_type: minio event_type: minio

View File

@ -71,7 +71,7 @@ Some example automations:
```yaml ```yaml
automation: automation:
- alias: Notify CallerID - alias: "Notify CallerID"
trigger: trigger:
platform: state platform: state
entity_id: sensor.modem_callerid entity_id: sensor.modem_callerid
@ -80,7 +80,7 @@ automation:
service: notify.notify service: notify.notify
data: data:
message: "Call from {{ state_attr('sensor.modem_callerid', 'cid_name') }} at {{ state_attr('sensor.modem_callerid', 'cid_number') }} " 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: trigger:
platform: state platform: state
entity_id: sensor.modem_callerid entity_id: sensor.modem_callerid
@ -90,7 +90,7 @@ automation:
data: data:
title: "Call from" 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') }} " 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: trigger:
platform: state platform: state
entity_id: sensor.modem_callerid 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`. This automation will trigger when a `nest_event` event type with a type of `camera_motion` is received from the specified `device_id`.
```yaml ```yaml
alias: motion alert alias: "motion alert"
trigger: trigger:
- platform: event - platform: event
event_type: nest_event event_type: nest_event

View File

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

View File

@ -190,7 +190,7 @@ The following automation example processes incoming SMS messages with the [Conve
```yaml ```yaml
automation: automation:
- alias: SMS conversation - alias: "SMS conversation"
trigger: trigger:
- platform: event - platform: event
event_type: netgear_lte_sms 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 ```yaml
- id: "1234567890123" - 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 description: Turn on the lights in the kitchen if my blood sugar drops low overnight
trigger: trigger:
- below: "65" - below: "65"

View File

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

View File

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

View File

@ -100,7 +100,7 @@ The following example show how to implement an automation for the **button_press
```yaml ```yaml
# Example configuration.yaml Automation entry # Example configuration.yaml Automation entry
automation: automation:
alias: Point button press alias: "Point button press"
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.point_button_press # Change this accordingly 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 ```yaml
# Example configuration.yaml Automation entry # Example configuration.yaml Automation entry
automation: automation:
alias: Point button press (webhook) alias: "Point button press (webhook)"
trigger: trigger:
- platform: event - platform: event
event_type: point_webhook_received 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 ```yaml
automation: automation:
- alias: Action - Respond to A button press - alias: "Action - Respond to A button press"
trigger: trigger:
platform: event platform: event
event_type: qwikswitch.button.@12df34 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 ```yaml
# Example configuration.yaml automation entry # Example configuration.yaml automation entry
automation: automation:
- alias: Turn irrigation on - alias: "Turn irrigation on"
trigger: trigger:
platform: time platform: time
at: "5:30:00" at: "5:30:00"

View File

@ -280,7 +280,7 @@ scene:
light.ceiling_lights: off light.ceiling_lights: off
automation: automation:
- alias: Use doorbell button to trigger scene - alias: "Use doorbell button to trigger scene"
trigger: trigger:
- platform: event - platform: event
event_type: rfxtrx_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: For example:
```yaml ```yaml
alias: Flick the input switch when movement in bedroom detected alias: "Flick the input switch when movement in bedroom detected"
trigger: trigger:
platform: state platform: state
entity_id: "binary_sensor.bedroom" 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 ```yaml
# Example automation using snapshot # Example automation using snapshot
- alias: Window opened - alias: "Window opened"
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.window 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: data:
entity_id: climate.ecobee entity_id: climate.ecobee
hvac_mode: "off" hvac_mode: "off"
- alias: Window closed - alias: "Window closed"
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.window entity_id: binary_sensor.window

View File

@ -118,7 +118,7 @@ Mode | Description
```yaml ```yaml
script:  script: 
wakeup: wakeup:
alias: Wake Up alias: "Wake Up"
icon: "mdi:party-popper" icon: "mdi:party-popper"
description: "Turns on the bedroom lights and then the living room lights after a delay" description: "Turns on the bedroom lights and then the living room lights after a delay"
variables: variables:
@ -137,7 +137,7 @@ script: 
message: is waking up message: is waking up
entity_id: device_tracker.paulus entity_id: device_tracker.paulus
domain: light domain: light
- alias: Bedroom lights on - alias: "Bedroom lights on"
service: light.turn_on service: light.turn_on
data: data:
entity_id: group.bedroom entity_id: group.bedroom
@ -145,7 +145,7 @@ script: 
- delay: - delay:
# supports seconds, milliseconds, minutes, hours # supports seconds, milliseconds, minutes, hours
minutes: "{{ minutes }}" minutes: "{{ minutes }}"
- alias: Living room lights on - alias: "Living room lights on"
service: light.turn_on service: light.turn_on
data: data:
entity_id: "{{ turn_on_entity }}" 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 ```yaml
# Apply value of a GUI slider to the shell_command # Apply value of a GUI slider to the shell_command
automation: automation:
- alias: run_set_ac - alias: "run_set_ac"
trigger: trigger:
platform: state platform: state
entity_id: input_number.ac_temperature 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 ```yaml
burglar: burglar:
alias: Burglar Alarm alias: "Burglar Alarm"
sequence: sequence:
- service: shell_command.snapshot - service: shell_command.snapshot
- delay: - delay:
@ -125,7 +125,7 @@ The optional `html` field makes a custom text/HTML multi-part message, allowing
```yaml ```yaml
burglar: burglar:
alias: Burglar Alarm alias: "Burglar Alarm"
sequence: sequence:
- service: shell_command.snapshot - service: shell_command.snapshot
- delay: - delay:

View File

@ -138,7 +138,7 @@ Removes an item from the queue.
```yaml ```yaml
# Example automation to remove just played song from queue # 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 id: Remove last played song from queue
trigger: trigger:
- platform: state - platform: state

View File

@ -53,7 +53,7 @@ The `changed_by` attribute enables one to be able to take different actions depe
```yaml ```yaml
automation: automation:
- alias: Alarm status changed - alias: "Alarm status changed"
trigger: trigger:
- platform: state - platform: state
entity_id: alarm_control_panel.alarm_1 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 ```yaml
# Example configuration.yaml automation entry # Example configuration.yaml automation entry
automation: automation:
- alias: Turn HVAC on - alias: "Turn HVAC on"
trigger: trigger:
platform: time platform: time
at: "5:30:00" at: "5:30:00"
@ -71,7 +71,7 @@ automation:
data: data:
V_IR_SEND: "0xC284" # the IR code to send V_IR_SEND: "0xC284" # the IR code to send
- alias: Turn HVAC off - alias: "Turn HVAC off"
trigger: trigger:
platform: time platform: time
at: "0:30:00" at: "0:30:00"

View File

@ -89,7 +89,7 @@ counter:
icon: mdi:alert icon: mdi:alert
automation: automation:
- alias: Count warnings - alias: "Count warnings"
trigger: trigger:
platform: event platform: event
event_type: system_log_event event_type: system_log_event
@ -108,7 +108,7 @@ This automation will create a persistent notification whenever an error or warni
```yaml ```yaml
automation: automation:
- alias: Create notifications for "service" errors - alias: "Create notifications for "service" errors"
trigger: trigger:
platform: event platform: event
event_type: system_log_event event_type: system_log_event
@ -130,7 +130,7 @@ This automation will create a new log entry when the door is opened:
```yaml ```yaml
automation: automation:
- alias: Log door opened - alias: "Log door opened"
trigger: trigger:
platform: state platform: state
entity_id: binary_sensor.door 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 ```yaml
automation: automation:
- id: handle_tag_scan - id: handle_tag_scan
alias: Handle Tag Scan alias: "Handle Tag Scan"
mode: single mode: single
# Hide warnings when triggered while in delay. # Hide warnings when triggered while in delay.
max_exceeded: silent max_exceeded: silent

View File

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

View File

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

View File

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

View File

@ -97,7 +97,7 @@ Example of an automation that notifies on successful download and removes the to
{% raw %} {% raw %}
```yaml ```yaml
- alias: Notify and remove completed torrent - alias: "Notify and remove completed torrent"
trigger: trigger:
platform: event platform: event
event_type: transmission_downloaded_torrent 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 ```yaml
# Example automation notification entry # Example automation notification entry
automation: automation:
- alias: The sun has set - alias: "The sun has set"
trigger: trigger:
platform: sun platform: sun
event: sunset event: sunset

View File

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

View File

@ -211,7 +211,7 @@ media_player:
command: standby command: standby
automation: automation:
- alias: Turn on the TV when Kodi is activated - alias: "Turn on the TV when Kodi is activated"
trigger: trigger:
platform: state platform: state
entity_id: media_player.kodi_tv entity_id: media_player.kodi_tv
@ -221,7 +221,7 @@ automation:
- service: media_player.turn_on - service: media_player.turn_on
entity_id: media_player.kodi_tv 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: trigger:
platform: state platform: state
entity_id: media_player.kodi_tv entity_id: media_player.kodi_tv

View File

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

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