Rename 'service' to 'action' in automations and scripts (#34023)

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
Franck Nijhof 2024-07-31 14:37:02 +02:00 committed by GitHub
parent 0bb40fd2cc
commit 6ca14d3efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
284 changed files with 1116 additions and 1116 deletions

View File

@ -18,7 +18,7 @@ automation:
- platform: sun
event: sunset
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id:
- light.kitchen
@ -37,11 +37,11 @@ automation 2:
notification_action: notify.paulus_iphone
action:
# Actions are scripts so can also be a list of actions
- service: "{{ notification_action }}"
- action: "{{ notification_action }}"
data:
message: "Beautiful sunset!"
- delay: 0:35
- service: notify.notify
- action: notify.notify
data:
message: "Oh wow you really missed something great."
```
@ -58,7 +58,7 @@ automation:
entity_id: sensor.office_occupancy
to: "on"
action:
- service: notify.notify
- action: notify.notify
data:
message: "Testing conditional actions"
- condition: or
@ -70,7 +70,7 @@ automation:
- condition: state
entity_id: sensor.office_illuminance
below: 10
- service: scene.turn_on
- action: scene.turn_on
target:
entity_id: scene.office_at_evening
```

View File

@ -30,7 +30,7 @@ automation:
entity_id: sensor.office_lux_sensor
below: 10
action:
- service: scene.turn_on
- action: scene.turn_on
target:
entity_id: scene.office_lights
```
@ -50,7 +50,7 @@ automation:
to: "on"
condition: "{{ state_attr('sun.sun', 'elevation') < 4 }}"
action:
- service: scene.turn_on
- action: scene.turn_on
target:
entity_id: scene.office_lights
```

View File

@ -206,7 +206,7 @@ automation:
entity_id: device_tracker.paulus
id: paulus_device
action:
- service: notify.notify
- action: notify.notify
data:
message: >
Paulus just changed from {{ trigger.from_state.state }}
@ -219,7 +219,7 @@ automation 2:
- platform: mqtt
topic: "/notify/+"
action:
service: >
action: >
notify.{{ trigger.topic.split('/')[-1] }}
data:
message: "{{ trigger.payload }}"
@ -236,7 +236,7 @@ automation 3:
# Trigger when someone leaves one of those lights on for 10 minutes.
for: "00:10:00"
action:
- service: light.turn_off
- action: light.turn_off
target:
# Turn off whichever entity triggered the automation.
entity_id: "{{ trigger.entity_id }}"
@ -257,7 +257,7 @@ automation 4:
value_template: "{{ trigger.event.data.tag_id == '8b6d6755-b4d5-4c23-818b-cf224d221ab7'}}"
action:
# Turn off various lights
- service: light.turn_off
- action: light.turn_off
target:
entity_id:
- light.kitchen

View File

@ -339,7 +339,7 @@ automation:
minutes: "{{ states('input_number.high_temp_min')|int }}"
seconds: "{{ states('input_number.high_temp_sec')|int }}"
action:
- service: persistent_notification.create
- action: persistent_notification.create
data:
message: >
{{ trigger.to_state.name }} too high for {{ trigger.for }}!
@ -515,7 +515,7 @@ automation:
minutes: "{{ states('input_number.lock_min')|int }}"
seconds: "{{ states('input_number.lock_sec')|int }}"
action:
- service: lock.lock
- action: lock.lock
target:
entity_id: lock.my_place
```
@ -574,7 +574,7 @@ automation:
# Can be a positive or negative number
below: -4.0
action:
- service: switch.turn_on
- action: switch.turn_on
target:
entity_id: switch.exterior_lighting
```
@ -713,10 +713,10 @@ automation:
entity_id: binary_sensor.motion
to: "on"
action:
- service: climate.turn_on
- action: climate.turn_on
target:
entity_id: climate.office
- service: input_datetime.set_datetime
- action: input_datetime.set_datetime
target:
entity_id: input_datetime.turn_off_ac
data:
@ -727,7 +727,7 @@ automation:
- platform: time
at: input_datetime.turn_off_ac
action:
- service: climate.turn_off
- action: climate.turn_off
target:
entity_id: climate.office
```
@ -744,7 +744,7 @@ automation:
- platform: time
at: sensor.phone_next_alarm
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.bedroom
```

View File

@ -158,7 +158,7 @@ automation my_lights:
before: "23:00:00"
action:
# With a single service entry, we don't need a '-' before service - though you can if you want to
- service: homeassistant.turn_on
- action: homeassistant.turn_on
target:
entity_id: group.living_room
@ -169,7 +169,7 @@ automation my_lights:
entity_id: all
to: "not_home"
action:
- service: light.turn_off
- action: light.turn_off
target:
entity_id: all
@ -184,7 +184,7 @@ automation my_lights:
- condition: time
after: "20:00"
action:
- service: notify.notify
- action: notify.notify
data:
message: "Paulus left the house"
@ -197,7 +197,7 @@ automation my_lights:
event_data:
entity_id: binary_sensor.cube_158d000103a3de
action:
- service: notify.pushover
- action: notify.pushover
data:
title: "Cube event detected"
message: "Cube has triggered this event: {{ trigger.event }}"
@ -256,7 +256,7 @@ If you want to migrate your manual automations to use the editor, you'll have to
below: 25
value_template: "{{ float(state.state) + 2 }}"
action:
- service: light.turn_on
- action: light.turn_on
```
{% endraw %}

View File

@ -271,7 +271,7 @@ trigger:
to: "on"
action:
- service: light.turn_on
- action: light.turn_on
target: !input light_target
- wait_for_trigger:
platform: state
@ -279,7 +279,7 @@ action:
from: "on"
to: "off"
- delay: !input no_motion_wait
- service: light.turn_off
- action: light.turn_off
target: !input light_target
```

View File

@ -75,7 +75,7 @@ The output of this selector is a list of actions. For example:
```yaml
# Example action selector output result
- service: scene.turn_on
- action: scene.turn_on
target:
entity_id: scene.watching_movies
metadata: {}
@ -1372,7 +1372,7 @@ a script sequence. For example:
```yaml
action:
- service: light.turn_on
- action: light.turn_on
target: !input lights
```

View File

@ -49,7 +49,7 @@ trigger:
entity_id: binary_sensor.motion_kitchen
action:
service: >
action: >
{% if trigger.to_state.state == "on" %}
light.turn_on
{% else %}
@ -104,7 +104,7 @@ Inputs are not limited to strings. They can contain complex objects too. So in t
```yaml
action:
service: >
action: >
{% if trigger.to_state.state == "on" %}
light.turn_on
{% else %}
@ -238,7 +238,7 @@ trigger:
entity_id: !input motion_sensor
action:
- service: >
- action: >
{% if trigger.to_state.state == "on" %}
light.turn_on
{% else %}

View File

@ -272,7 +272,7 @@ automation:
entity_id: device_tracker.iphone
to: "home"
action:
service: light.turn_on
action: light.turn_on
target:
entity_id: light.entryway
- alias: "Automation 2"
@ -281,7 +281,7 @@ automation:
entity_id: device_tracker.iphone
from: "home"
action:
service: light.turn_off
action: light.turn_off
target:
entity_id: light.entryway
```
@ -303,7 +303,7 @@ trigger:
entity_id: device_tracker.iphone
to: "home"
action:
service: light.turn_on
action: light.turn_on
target:
entity_id: light.entryway
```
@ -317,7 +317,7 @@ trigger:
entity_id: device_tracker.iphone
from: "home"
action:
service: light.turn_off
action: light.turn_off
target:
entity_id: light.entryway
```
@ -334,7 +334,7 @@ alexa:
intents:
LocateIntent:
action:
service: notify.pushover
action: notify.pushover
data:
message: "Your location has been queried via Alexa."
speech:
@ -372,7 +372,7 @@ alexa:
```yaml
{% raw %}
action:
service: notify.pushover
action: notify.pushover
data:
message: "Your location has been queried via Alexa."
speech:
@ -413,7 +413,7 @@ automation:
entity_id: device_tracker.iphone
to: "home"
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.entryway
- alias: "Automation 2"
@ -422,7 +422,7 @@ automation:
entity_id: device_tracker.iphone
from: "home"
action:
- service: light.turn_off
- action: light.turn_off
target:
entity_id: light.entryway
```
@ -444,7 +444,7 @@ automation: !include_dir_merge_list automation/
entity_id: device_tracker.iphone
to: "home"
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.entryway
- alias: "Automation 2"
@ -453,7 +453,7 @@ automation: !include_dir_merge_list automation/
entity_id: device_tracker.iphone
from: "home"
action:
- service: light.turn_off
- action: light.turn_off
target:
entity_id: light.entryway
```

View File

@ -34,7 +34,7 @@ Templates can get big pretty fast. To keep a clear overview, consider using YAML
script:
msg_who_is_home:
sequence:
- service: notify.notify
- action: notify.notify
data:
message: >
{% if is_state('device_tracker.paulus', 'home') %}

View File

@ -63,7 +63,7 @@ automation:
from: "not_home"
to: "home"
action:
service: scene.turn_on
action: scene.turn_on
target:
entity_id: scene.romantic
```
@ -81,7 +81,7 @@ automation:
from: "not_home"
to: "home"
action:
service: scene.apply
action: scene.apply
data:
entities:
light.tv_back_light:
@ -110,7 +110,7 @@ automation:
from: "not_home"
to: "home"
action:
service: scene.turn_on
action: scene.turn_on
target:
entity_id: scene.romantic
data:

View File

@ -19,7 +19,7 @@ The menu on the top-right has options to **Duplicate scene** and **Delete scene*
A scene can be called in {% term automation %} action and {% term scripts %} using a turn on scene {% term action %}:
```yaml
service: scene.turn_on
action: scene.turn_on
target:
entity_id: scene.my_unique_id
```

View File

@ -21,11 +21,11 @@ script:
sequence:
# This is written using the Script Syntax
- alias: "Turn on ceiling light"
service: light.turn_on
action: light.turn_on
target:
entity_id: light.ceiling
- alias: "Notify that ceiling light is turned on"
service: notify.notify
action: notify.notify
data:
message: "Turned on the ceiling light!"
```
@ -38,7 +38,7 @@ Performing an action can be done in various ways. For all the different possibil
```yaml
- alias: "Bedroom lights on"
service: light.turn_on
action: light.turn_on
target:
entity_id: group.bedroom
data:
@ -67,7 +67,7 @@ The variables {% term action %} allows you to set/override variables that will b
- light.living_room
brightness: 100
- alias: "Control lights"
service: light.turn_on
action: light.turn_on
target:
entity_id: "{{ entities }}"
data:
@ -85,7 +85,7 @@ Variables can be templated.
variables:
blind_state_message: "The blind is {{ states('cover.blind') }}."
- alias: "Notify about the state of the blind"
service: notify.mobile_app_iphone
action: notify.mobile_app_iphone
data:
message: "{{ blind_state_message }}"
```
@ -115,11 +115,11 @@ sequence:
- variables:
people: "{{ people + 1 }}"
# At this scope, people will now be 1 ...
- service: notify.notify
- action: notify.notify
data:
message: "There are {{ people }} people home" # "There are 1 people home"
# ... but at this scope it will still be 0
- service: notify.notify
- action: notify.notify
data:
message: "There are {{ people }} people home" # "There are 0 people home"
```
@ -296,9 +296,9 @@ This can be used to take different actions based on whether or not the condition
- if:
- "{{ not wait.completed }}"
then:
- service: script.door_did_not_open
- action: script.door_did_not_open
else:
- service: script.turn_on
- action: script.turn_on
target:
entity_id:
- script.door_did_open
@ -308,7 +308,7 @@ This can be used to take different actions based on whether or not the condition
- wait_template: "{{ is_state('binary_sensor.door_1', 'on') }}"
timeout: 10
continue_on_timeout: false
- service: switch.turn_on
- action: switch.turn_on
target:
entity_id: switch.some_light
- wait_for_trigger:
@ -318,7 +318,7 @@ This can be used to take different actions based on whether or not the condition
for: 2
timeout: "{{ wait.remaining }}"
continue_on_timeout: false
- service: switch.turn_off
- action: switch.turn_off
target:
entity_id: switch.some_light
```
@ -380,7 +380,7 @@ The following {% term automation %} example shows how to capture the custom even
- platform: event
event_type: event_light_state_changed
action:
- service: notify.notify
- action: notify.notify
data:
message: "kitchen light is turned {{ trigger.event.data.state }}"
```
@ -404,7 +404,7 @@ script:
flash_light:
mode: restart
sequence:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: "light.{{ light }}"
- alias: "Cycle light 'count' times"
@ -412,13 +412,13 @@ script:
count: "{{ count|int * 2 - 1 }}"
sequence:
- delay: 2
- service: light.toggle
- action: light.toggle
target:
entity_id: "light.{{ light }}"
flash_hallway_light:
sequence:
- alias: "Flash hallway light 3 times"
service: script.flash_light
action: script.flash_light
data:
light: hallway
count: 3
@ -445,7 +445,7 @@ repeat:
- "kitchen"
- "office"
sequence:
- service: light.turn_off
- action: light.turn_off
target:
entity_id: "light.{{ repeat.item }}"
```
@ -465,7 +465,7 @@ repeat:
- language: Dutch
message: Hallo Wereld
sequence:
- service: notify.phone
- action: notify.phone
data:
title: "Message in {{ repeat.item.language }}"
message: "{{ repeat.item.message }}!"
@ -484,7 +484,7 @@ is run. The sequence will be run _as long as_ the condition(s) evaluate to true.
script:
do_something:
sequence:
- service: script.get_ready_for_something
- action: script.get_ready_for_something
- alias: "Repeat the sequence AS LONG AS the conditions are true"
repeat:
while:
@ -495,7 +495,7 @@ script:
- condition: template
value_template: "{{ repeat.index <= 20 }}"
sequence:
- service: script.something
- action: script.something
```
{% endraw %}
@ -538,7 +538,7 @@ automation:
repeat:
sequence:
# Run command that for some reason doesn't always work
- service: shell_command.turn_something_on
- action: shell_command.turn_something_on
# Give it time to complete
- delay:
milliseconds: 200
@ -590,12 +590,12 @@ script:
state: 0
then:
- alias: "Then start cleaning already!"
service: vacuum.start
action: vacuum.start
target:
area_id: living_room
# The `else` is fully optional and can be omitted
else:
- service: notify.notify
- action: notify.notify
data:
message: "Skipped cleaning, someone is home!"
```
@ -633,24 +633,24 @@ automation:
- condition: template
value_template: "{{ now().hour < 9 }}"
sequence:
- service: script.sim_morning
- action: script.sim_morning
# ELIF day
- conditions:
- condition: template
value_template: "{{ now().hour < 18 }}"
sequence:
- service: light.turn_off
- action: light.turn_off
target:
entity_id: light.living_room
- service: script.sim_day
- action: script.sim_day
# ELSE night
default:
- service: light.turn_off
- action: light.turn_off
target:
entity_id: light.kitchen
- delay:
minutes: "{{ range(1, 11)|random }}"
- service: light.turn_off
- action: light.turn_off
target:
entity_id: all
```
@ -673,22 +673,22 @@ automation:
{{ trigger.to_state.state == 'Home' and
is_state('binary_sensor.all_clear', 'on') }}
sequence:
- service: script.arrive_home
- action: script.arrive_home
data:
ok: true
- conditions: >
{{ trigger.to_state.state == 'Home' and
is_state('binary_sensor.all_clear', 'off') }}
sequence:
- service: script.turn_on
- action: script.turn_on
target:
entity_id: script.flash_lights
- service: script.arrive_home
- action: script.arrive_home
data:
ok: false
- conditions: "{{ trigger.to_state.state == 'Away' }}"
sequence:
- service: script.left_home
- action: script.left_home
```
{% endraw %}
@ -713,7 +713,7 @@ automation:
below: 4
action:
# This must always apply
- service: light.turn_on
- action: light.turn_on
data:
brightness: 255
color_temp: 366
@ -728,7 +728,7 @@ automation:
entity_id: binary_sensor.livingroom_tv
state: "on"
sequence:
- service: light.turn_on
- action: light.turn_on
data:
brightness: 255
color_temp: 366
@ -741,7 +741,7 @@ automation:
entity_id: binary_sensor.studio_pc
state: "on"
sequence:
- service: light.turn_on
- action: light.turn_on
data:
brightness: 255
color_temp: 366
@ -777,18 +777,18 @@ automation:
action:
- alias: "Turn on devices"
sequence:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.ceiling
- service: siren.turn_on
- action: siren.turn_on
target:
entity_id: siren.noise_maker
- alias: "Send notifications"
sequence:
- service: notify.person1
- action: notify.person1
data:
message: "The motion sensor was triggered!"
- service: notify.person2
- action: notify.person2
data:
message: "Oh oh, someone triggered the motion sensor..."
```
@ -813,10 +813,10 @@ automation:
to: "on"
action:
- parallel:
- service: notify.person1
- action: notify.person1
data:
message: "These messages are sent at the same time!"
- service: notify.person2
- action: notify.person2
data:
message: "These messages are sent at the same time!"
```
@ -834,10 +834,10 @@ script:
- platform: state
entity_id: binary_sensor.motion
to: "on"
- service: notify.person1
- action: notify.person1
data:
message: "This message awaited the motion trigger"
- service: notify.person2
- action: notify.person2
data:
message: "I am sent immediately and do not await the above action!"
```
@ -915,12 +915,12 @@ it encounters an error; it will continue to the next {% term action %}.
```yaml
- alias: "If this one fails..."
continue_on_error: true
service: notify.super_unreliable_service_provider
action: notify.super_unreliable_service_provider
data:
message: "I'm going to error out..."
- alias: "This one will still run!"
service: persistent_notification.create
action: persistent_notification.create
data:
title: "Hi there!"
message: "I'm fine..."
@ -943,13 +943,13 @@ script:
# The message will not be sent.
- enabled: false
alias: "Notify that the ceiling light is being turned on"
service: notify.notify
action: notify.notify
data:
message: "Turning on the ceiling light!"
# This action will run, as it is not disabled
- alias: "Turn on the ceiling light"
service: light.turn_on
action: light.turn_on
target:
entity_id: light.ceiling
```

View File

@ -18,7 +18,7 @@ Use the "Actions" tab under **Developer tools** to discover available actions.
Perform the action `homeassistant.turn_on` on the {% term entity %} `group.living_room`. This will turn all members of `group.living_room` on. You can also use `entity_id: all` and it will turn on all possible entities.
```yaml
service: homeassistant.turn_on
action: homeassistant.turn_on
entity_id: group.living_room
```
@ -34,7 +34,7 @@ The following example uses a single action to turn on the lights in the
living room area, 2 additional light devices and 2 additional light entities:
```yaml
service: light.turn_on
action: light.turn_on
target:
area_id: living_room
device_id:
@ -50,7 +50,7 @@ target:
You can also specify other parameters beside the entity to target. For example, the `light.turn_on` action allows specifying the brightness.
```yaml
service: light.turn_on
action: light.turn_on
entity_id: group.living_room
data:
brightness: 120
@ -66,7 +66,7 @@ You can use [templating] support to dynamically choose which action to perform.
{% raw %}
```yaml
service: >
action: >
{% if states('sensor.temperature') | float > 15 %}
switch.turn_on
{% else %}
@ -85,8 +85,8 @@ For example, you may test turning on or off a 'group' (See [groups](/integration
To turn a group on or off, pass the following info:
- Domain: `homeassistant`
- Service: `turn_on`
- Service Data: `{ "entity_id": "group.kitchen" }`
- Action: `turn_on`
- Action data: `{ "entity_id": "group.kitchen" }`
### Use templates to determine the attributes
@ -95,7 +95,7 @@ Templates can also be used for the data that you pass to the action.
{% raw %}
```yaml
service: thermostat.set_temperature
action: thermostat.set_temperature
target:
entity_id: >
{% if is_state('device_tracker.paulus', 'home') %}
@ -114,7 +114,7 @@ You can use a template returning a native dictionary as well, which is useful if
{% raw %}
```yaml
service: climate.set_temperature
action: climate.set_temperature
data: >
{% if states('sensor.temperature_living') < 19 %}
{"hvac_mode": "heat", "temperature": 19 }
@ -138,7 +138,7 @@ that contains the response data. You can define any name for your `response_vari
{% raw %}
```yaml
service: calendar.get_events
action: calendar.get_events
target:
entity_id: calendar.school
data:
@ -160,7 +160,7 @@ Which data fields can be used in an action depends on the type of notification t
{% raw %}
```yaml
service: notify.gmail_com
action: notify.gmail_com
data:
target: "gduser1@workspacesamples.dev"
title: "Daily agenda for {{ now().date() }}"

View File

@ -108,7 +108,7 @@ If there is an automation that handles that event, it will be automatically trig
platform: event
event_type: event_light_state_changed
action:
- service: notify.notify
- action: notify.notify
data:
message: "Light is turned {{ trigger.event.data.state }}"
```

View File

@ -45,13 +45,13 @@ alarm_control_panel:
safe_alarm_panel:
value_template: "{{ states('alarm_control_panel.real_alarm') }}"
arm_away:
service: alarm_control_panel.alarm_arm_away
action: alarm_control_panel.alarm_arm_away
target:
entity_id: alarm_control_panel.real_alarm
data:
code: !secret alarm_code
arm_home:
service: alarm_control_panel.alarm_arm_home
action: alarm_control_panel.alarm_arm_home
target:
entity_id: alarm_control_panel.real_alarm
data:
@ -60,7 +60,7 @@ alarm_control_panel:
- condition: state
entity_id: device_tracker.paulus
state: "home"
- service: alarm_control_panel.alarm_disarm
- action: alarm_control_panel.alarm_disarm
target:
entity_id: alarm_control_panel.real_alarm
data:

View File

@ -132,7 +132,7 @@ Using a combination of the available {% term actions %} and attributes, you can
entity_id: alarm_control_panel.alarm_panel
attribute: chime
state: False
- service: alarmdecoder.alarm_toggle_chime
- action: alarmdecoder.alarm_toggle_chime
target:
entity_id: alarm_control_panel.alarm_panel
data:
@ -142,7 +142,7 @@ Using a combination of the available {% term actions %} and attributes, you can
entity_id: alarm_control_panel.alarm_panel
attribute: chime
state: True
- service: alarmdecoder.alarm_toggle_chime
- action: alarmdecoder.alarm_toggle_chime
target:
entity_id: alarm_control_panel.alarm_panel
data:

View File

@ -135,7 +135,7 @@ provided by the `alert` integration:
- platform: group
name: john_phone_sms
services:
- service: twilio_sms
- action: twilio_sms
data:
target: !secret john_phone
```
@ -291,7 +291,7 @@ but you will still receive the done message.
event_data:
data: "/garage_acknowledge"
action:
- service: alert.turn_off
- action: alert.turn_off
target:
entity_id: alert.garage_door
```

View File

@ -220,7 +220,7 @@ Then add the intent to your `intent_script` section in your HA configuration fil
intent_script:
ActivateSceneIntent:
action:
service: scene.turn_on
action: scene.turn_on
target:
entity_id: scene.{{ Scene | replace(" ", "_") }}
data:
@ -274,7 +274,7 @@ Then add the intent to your intent_script section in your HA configuration file:
intent_script:
RunScriptIntent:
action:
service: script.turn_on
action: script.turn_on
target:
entity_id: script.{{ Script | replace(" ", "_") }}
speech:
@ -304,7 +304,7 @@ The configuration is the same as an intent with the exception being you will use
intent_script:
amzn1.ask.skill.08888888-7777-6666-5555-444444444444:
action:
service: script.turn_on
action: script.turn_on
target:
entity_id: script.red_alert
speech:
@ -337,7 +337,7 @@ intent_script:
speech:
text: Done. Good night!
action:
service: switch.turn_off
action: switch.turn_off
target:
entity_id:
- switch.room1
@ -347,7 +347,7 @@ intent_script:
text: Alright
amzn1.ask.skill.08888888-7777-6666-5555-444444444444.SessionEndedRequest:
action:
service: switch.turn_off
action: switch.turn_off
target:
entity_id:
- switch.room1

View File

@ -87,7 +87,7 @@ engine:
Say to all `media_player` device entities:
```yaml
- service: tts.amazon_polly_say
- action: tts.amazon_polly_say
data:
message: "<speak>Hello from Amazon Polly</speak>"
```
@ -95,7 +95,7 @@ Say to all `media_player` device entities:
or
```yaml
- service: tts.amazon_polly_say
- action: tts.amazon_polly_say
data:
message: >
<speak>
@ -106,7 +106,7 @@ or
Say to the `media_player.living_room` device entity:
```yaml
- service: tts.amazon_polly_say
- action: tts.amazon_polly_say
target:
entity_id: media_player.living_room
message: >
@ -118,7 +118,7 @@ Say to the `media_player.living_room` device entity:
Say with break:
```yaml
- service: tts.amazon_polly_say
- action: tts.amazon_polly_say
data:
message: >
<speak>
@ -140,7 +140,7 @@ Amazon Polly supports accented bilingual voices and you may find that you'd pref
Note: You now need to enclose all new and previous TTS input within the `<speak></speak>` tags. To use SSML in automation, you can follow these steps, for instance:
```yaml
service: tts.amazon_polly_say
action: tts.amazon_polly_say
data:
cache: true
entity_id: media_player.mpd

View File

@ -292,7 +292,7 @@ elements:
bottom: 50px
tap_action:
action: call-service
service: amcrest.ptz_control
action: amcrest.ptz_control
service_data:
entity_id: camera.lakehouse
movement: up
@ -304,7 +304,7 @@ elements:
bottom: 0px
tap_action:
action: call-service
service: amcrest.ptz_control
action: amcrest.ptz_control
service_data:
entity_id: camera.lakehouse
movement: down
@ -316,7 +316,7 @@ elements:
bottom: 25px
tap_action:
action: call-service
service: amcrest.ptz_control
action: amcrest.ptz_control
service_data:
entity_id: camera.lakehouse
movement: left
@ -328,7 +328,7 @@ elements:
bottom: 25px
tap_action:
action: call-service
service: amcrest.ptz_control
action: amcrest.ptz_control
service_data:
entity_id: camera.lakehouse
movement: right
@ -340,7 +340,7 @@ elements:
bottom: 50px
tap_action:
action: call-service
service: amcrest.ptz_control
action: amcrest.ptz_control
service_data:
entity_id: camera.lakehouse
movement: left_up
@ -352,7 +352,7 @@ elements:
bottom: 50px
tap_action:
action: call-service
service: amcrest.ptz_control
action: amcrest.ptz_control
service_data:
entity_id: camera.lakehouse
movement: right_up
@ -364,7 +364,7 @@ elements:
bottom: 0px
tap_action:
action: call-service
service: amcrest.ptz_control
action: amcrest.ptz_control
service_data:
entity_id: camera.lakehouse
movement: left_down
@ -376,7 +376,7 @@ elements:
bottom: 0px
tap_action:
action: call-service
service: amcrest.ptz_control
action: amcrest.ptz_control
service_data:
entity_id: camera.lakehouse
movement: right_down
@ -388,13 +388,13 @@ elements:
right: 25px
tap_action:
action: call-service
service: amcrest.ptz_control
action: amcrest.ptz_control
service_data:
entity_id: camera.lakehouse
movement: zoom_in
hold_action:
action: call-service
service: amcrest.ptz_control
action: amcrest.ptz_control
data:
entity_id: camera.lakehouse
movement: zoom_out

View File

@ -119,7 +119,7 @@ You can launch an app on your device using the `media_player.select_source` comm
```yaml
start_netflix:
sequence:
- service: media_player.select_source
- action: media_player.select_source
target:
entity_id: media_player.fire_tv_living_room
data:
@ -127,7 +127,7 @@ start_netflix:
stop_netflix:
sequence:
- service: media_player.select_source
- action: media_player.select_source
target:
entity_id: media_player.fire_tv_living_room
data:
@ -147,7 +147,7 @@ In an [action](/getting-started/automation-action/) of your [automation setup](/
```yaml
action:
service: androidtv.adb_command
action: androidtv.adb_command
target:
entity_id: media_player.androidtv_tv_living_room
data:
@ -189,7 +189,7 @@ As an example, an action in a [script](/docs/scripts) could be changed from this
```yaml
# Send the "UP" command (slow)
- service: androidtv.adb_command
- action: androidtv.adb_command
target:
entity_id: media_player.fire_tv_living_room
data:
@ -200,7 +200,7 @@ to this:
```yaml
# Send the "UP" command using `sendevent` (faster)
- service: androidtv.adb_command
- action: androidtv.adb_command
target:
entity_id: media_player.fire_tv_living_room
data:
@ -325,7 +325,7 @@ You can also send other Android keys using the syntax `input keyevent {key}`, re
**Example to send sequence of commands:**
```yaml
service: remote.send_command
action: remote.send_command
target:
device_id: 12345f9b4c9863e28ddd52c87dcebe05
data:

View File

@ -64,7 +64,7 @@ Example:
```yaml
# Launch the YouTube app
service: media_player.play_media
action: media_player.play_media
data:
media_content_type: app
media_content_id: com.google.android.youtube.tv
@ -91,7 +91,7 @@ Example:
```yaml
# Open a specific YouTube video:
service: media_player.play_media
action: media_player.play_media
data:
media_content_type: url
media_content_id: https://www.youtube.com/watch?v=dQw4w9WgXcQ
@ -107,7 +107,7 @@ Example:
```yaml
# Change channel to number 15:
service: media_player.play_media
action: media_player.play_media
data:
media_content_type: channel
media_content_id: 15
@ -136,19 +136,19 @@ media_player:
browse_media_entity: media_player.living_room_tv_cast
commands:
turn_off:
service: media_player.turn_off
action: media_player.turn_off
data:
entity_id: media_player.living_room_tv_remote
turn_on:
service: media_player.turn_on
action: media_player.turn_on
data:
entity_id: media_player.living_room_tv_remote
volume_up:
service: media_player.volume_up
action: media_player.volume_up
data:
entity_id: media_player.living_room_tv_remote
volume_down:
service: media_player.volume_down
action: media_player.volume_down
data:
entity_id: media_player.living_room_tv_remote
```
@ -249,7 +249,7 @@ Example actions:
```yaml
# Open the currently selected item on the Android TV
service: remote.send_command
action: remote.send_command
data:
command: DPAD_CENTER
target:
@ -258,7 +258,7 @@ target:
```yaml
# Long press on the currently selected item on the Android TV
service: remote.send_command
action: remote.send_command
data:
command: DPAD_CENTER
hold_secs: 0.5
@ -268,7 +268,7 @@ target:
```yaml
# Launch YouTube
service: remote.turn_on
action: remote.turn_on
data:
activity: https://www.youtube.com
target:
@ -277,7 +277,7 @@ target:
```yaml
# Open a specific YouTube video:
service: remote.turn_on
action: remote.turn_on
data:
activity: https://www.youtube.com/watch?v=dQw4w9WgXcQ
target:
@ -318,7 +318,7 @@ cards:
icon: mdi:arrow-up-bold
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: DPAD_UP
target:
@ -335,7 +335,7 @@ cards:
icon: mdi:arrow-left-bold
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: DPAD_LEFT
target:
@ -346,14 +346,14 @@ cards:
icon: mdi:circle
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: DPAD_CENTER
target:
entity_id: remote.living_room_tv
hold_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: DPAD_CENTER
hold_secs: 0.5
@ -363,7 +363,7 @@ cards:
icon: mdi:arrow-right-bold
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: DPAD_RIGHT
target:
@ -374,14 +374,14 @@ cards:
icon: mdi:arrow-left
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: BACK
target:
entity_id: remote.living_room_tv
hold_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: BACK
hold_secs: 0.5
@ -391,7 +391,7 @@ cards:
icon: mdi:arrow-down-bold
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: DPAD_DOWN
target:
@ -402,14 +402,14 @@ cards:
icon: mdi:home-outline
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: HOME
target:
entity_id: remote.living_room_tv
hold_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: HOME
hold_secs: 0.5
@ -423,14 +423,14 @@ cards:
icon: mdi:skip-previous
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: MEDIA_PREVIOUS
target:
entity_id: remote.living_room_tv
hold_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: MEDIA_REWIND
target:
@ -439,14 +439,14 @@ cards:
icon: mdi:play-pause
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: MEDIA_PLAY_PAUSE
target:
entity_id: remote.living_room_tv
hold_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: MEDIA_STOP
target:
@ -455,14 +455,14 @@ cards:
icon: mdi:skip-next
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: MEDIA_NEXT
target:
entity_id: remote.living_room_tv
hold_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: MEDIA_FAST_FORWARD
target:
@ -471,7 +471,7 @@ cards:
icon: mdi:volume-off
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: MUTE
target:
@ -482,7 +482,7 @@ cards:
icon: mdi:volume-medium
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: VOLUME_DOWN
target:
@ -493,7 +493,7 @@ cards:
icon: mdi:volume-high
tap_action:
action: call-service
service: remote.send_command
action: remote.send_command
data:
command: VOLUME_UP
target:
@ -508,7 +508,7 @@ cards:
icon: mdi:youtube
tap_action:
action: call-service
service: remote.turn_on
action: remote.turn_on
data:
activity: https://www.youtube.com
target:
@ -519,7 +519,7 @@ cards:
icon: mdi:netflix
tap_action:
action: call-service
service: remote.turn_on
action: remote.turn_on
data:
activity: com.netflix.ninja
target:
@ -531,7 +531,7 @@ cards:
https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Amazon_Prime_Video_logo.svg/450px-Amazon_Prime_Video_logo.svg.png
tap_action:
action: call-service
service: remote.turn_on
action: remote.turn_on
data:
activity: com.amazon.amazonvideo.livingroom
target:
@ -543,7 +543,7 @@ cards:
https://upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Disney%2B_logo.svg/440px-Disney%2B_logo.svg.png
tap_action:
action: call-service
service: remote.turn_on
action: remote.turn_on
data:
activity: com.disney.disneyplus
target:

View File

@ -62,7 +62,7 @@ Examples:
```yaml
# Open the Netflix app at a specific title
service: media_player.play_media
action: media_player.play_media
data:
media_content_type: url
media_content_id: https://www.netflix.com/title/80234304
@ -72,7 +72,7 @@ target:
```yaml
# Open a specific YouTube video:
service: media_player.play_media
action: media_player.play_media
data:
media_content_type: url
media_content_id: youtube://www.youtube.com/watch?v=dQw4w9WgXcQ
@ -128,7 +128,7 @@ being in a fixed place on the home screen:
lounge_appletv_netflix:
alias: "Select Netflix"
sequence:
- service: remote.send_command
- action: remote.send_command
target:
entity_id: remote.lounge_appletv
data:
@ -147,7 +147,7 @@ the Media Player:
apple_tv_sleep:
alias: "Make the Apple TV sleep"
sequence:
- service: remote.send_command
- action: remote.send_command
target:
entity_id: remote.lounge_appletv
data:
@ -155,14 +155,14 @@ apple_tv_sleep:
delay_secs: 1
command:
- home
- service: remote.send_command
- action: remote.send_command
target:
entity_id: remote.lounge_appletv
data:
delay_secs: 1
command:
- select
- service: media_player.turn_off
- action: media_player.turn_off
target:
entity_id: media_player.lounge_appletv
```
@ -170,7 +170,7 @@ apple_tv_sleep:
Send 3 `left` commands with delay between each:
```yaml
service: remote.send_command
action: remote.send_command
target:
entity_id: remote.apple_tv
data:

View File

@ -72,7 +72,7 @@ config:
## Example action
```yaml
- service: notify.NOTIFIER_NAME
- action: notify.NOTIFIER_NAME
data:
message: "A message from Home Assistant"
```
@ -80,7 +80,7 @@ config:
If you're using configuration files to store your Apprise URLs in, then you have the added bonus of associating tags with them. By default, Apprise in Home Assistant will only notify the elements that have no tags associated with them. You can optionally focus on only notifying a specific service based on the tag(s) you assigned them like so:
```yaml
- service: notify.NOTIFIER_NAME
- action: notify.NOTIFIER_NAME
data:
message: "A message from Home Assistant"
target: [

View File

@ -161,7 +161,7 @@ Using the lock operation sensors, you can detect when a user operates a lock and
action:
- data: {}
entity_id: camera.inside
service: camera.turn_off
action: camera.turn_off
```
{% endraw %}

View File

@ -85,7 +85,7 @@ automation:
platform: sun
event: sunset
action:
service: notify.test_queue
action: notify.test_queue
data:
message: "Sun is going down"
title: "Good evening"

View File

@ -40,7 +40,7 @@ The action has no additional options or parameters.
Example action:
```yaml
service: backup.create
action: backup.create
```
### Example: Backing up every night at 3:00 AM
@ -56,7 +56,7 @@ automation:
at: "03:00:00"
action:
alias: "Create backup now"
service: backup.create
action: backup.create
```
## Restoring a backup

View File

@ -60,7 +60,7 @@ The Bang & Olufsen integration supports different playback types in the `media_p
Playing [DR P1](https://www.dr.dk/lyd/p1) from a URL:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -71,7 +71,7 @@ data:
Activating the first favourite:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -82,7 +82,7 @@ data:
Playing a local file:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -93,7 +93,7 @@ data:
Playing a radio station:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -104,7 +104,7 @@ data:
Playing a Deezer flow. Optionally define a Deezer user ID:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -117,7 +117,7 @@ data:
Playing a Deezer playlist. Optionally define starting position for the playlist:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -130,7 +130,7 @@ data:
Playing a Deezer album. Optionally define starting position for the album:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -143,7 +143,7 @@ data:
Playing a Deezer track:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -154,7 +154,7 @@ data:
Playing a Tidal playlist. Optionally define starting position for the playlist:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -167,7 +167,7 @@ data:
Playing a Tidal album. Optionally define starting position for the album:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -180,7 +180,7 @@ data:
Playing a Tidal track:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -208,7 +208,7 @@ Extra keys available:
Playing a local file with an absolute volume as an overlay:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -222,7 +222,7 @@ data:
Playing a Bang & Olufsen Cloud TTS message with an offset volume (as TTS messages can be quiet):
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:
@ -235,7 +235,7 @@ data:
Playing a Bang & Olufsen Cloud TTS message with a local language:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.beosound_balance_12345678
data:

View File

@ -49,12 +49,12 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
entity_id: sensor.illumination_34ce00xxxx11
below: 300
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.gateway_light_34ce00xxxx11
data:
brightness: 5
- service: automation.turn_on
- action: automation.turn_on
target:
entity_id: automation.MOTION_OFF
- alias: "If there no motion for 5 minutes turn off the gateway light"
@ -66,10 +66,10 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
for:
minutes: 5
action:
- service: light.turn_off
- action: light.turn_off
target:
entity_id: light.gateway_light_34ce00xxxx11
- service: automation.turn_off
- action: automation.turn_off
target:
entity_id: automation.Motion_off
```
@ -84,7 +84,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
from: "off"
to: "on"
action:
service: climate.set_operation_mode
action: climate.set_operation_mode
target:
entity_id: climate.livingroom
data:
@ -98,7 +98,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
for:
minutes: 5
action:
service: climate.set_operation_mode
action: climate.set_operation_mode
target:
entity_id: climate.livingroom
data:
@ -114,7 +114,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
entity_id: group.family
state: "not_home"
action:
- service: notify.notify_person
- action: notify.notify_person
data:
message: "The door has been opened"
```
@ -129,11 +129,11 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
from: "off"
to: "on"
action:
- service: notify.html5
- action: notify.html5
data:
title: Fire alarm!
message: Fire/Smoke detected!
- service: xiaomi_aqara.play_ringtone
- action: xiaomi_aqara.play_ringtone
data:
gw_mac: xxxxxxxxxxxx
ringtone_id: 2
@ -152,7 +152,7 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra
from: "off"
to: "on"
action:
- service: notify.html5
- action: notify.html5
data:
title: Gas alarm!
message: "Gas with a density of {{ state_attr('binary_sensor.natgas_sensor_158dxxxxxxxxxx', 'density') }} detected."
@ -173,7 +173,7 @@ As indicated in the table on top of this page there are 3 versions of the button
entity_id: binary_sensor.switch_158d000xxxxxc2
click_type: single
action:
service: switch.toggle
action: switch.toggle
target:
entity_id: switch.wall_switch_left_158d000xxxxx01
- alias: "Toggle couch light on double click"
@ -184,7 +184,7 @@ As indicated in the table on top of this page there are 3 versions of the button
entity_id: binary_sensor.switch_158d000xxxxxc2
click_type: double
action:
service: switch.toggle
action: switch.toggle
target:
entity_id: switch.wall_switch_right_158d000xxxxx01
- alias: "Let a dog bark on long press"
@ -195,7 +195,7 @@ As indicated in the table on top of this page there are 3 versions of the button
entity_id: binary_sensor.switch_158d000xxxxxc2
click_type: long_click_press
action:
service: xiaomi_aqara.play_ringtone
action: xiaomi_aqara.play_ringtone
data:
gw_mac: xxxxxxxxxxxx
ringtone_id: 8
@ -215,7 +215,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
entity_id: binary_sensor.cube_15xxxxxxxxxxxx
action_type: flip90
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.gateway_light_28xxxxxxxxxx
data:
@ -228,7 +228,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
entity_id: binary_sensor.cube_15xxxxxxxxxxxx
action_type: flip180
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.gateway_light_28xxxxxxxxxx
data:
@ -241,7 +241,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
entity_id: binary_sensor.cube_15xxxxxxxxxxxx
action_type: move
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.gateway_light_28xxxxxxxxxx
data:
@ -254,7 +254,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
entity_id: binary_sensor.cube_15xxxxxxxxxxxx
action_type: tap_twice
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.gateway_light_28xxxxxxxxxx
data:
@ -267,7 +267,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
entity_id: binary_sensor.cube_15xxxxxxxxxxxx
action_type: shake_air
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.gateway_light_28xxxxxxxxxx
data:
@ -289,7 +289,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
entity_id: binary_sensor.wall_switch_left_158xxxxxxxxx12
click_type: single
action:
service: light.turn_on
action: light.turn_on
target:
entity_id: light.gateway_light_34xxxxxxxx13
data:
@ -312,7 +312,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
entity_id: binary_sensor.wall_switch_right_158xxxxxxxxx12
click_type: single
action:
service: light.turn_on
action: light.turn_on
target:
entity_id: light.gateway_light_34xxxxxxxx13
data:
@ -335,7 +335,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
entity_id: binary_sensor.wall_switch_both_158xxxxxxxxx12
click_type: both
action:
service: light.turn_off
action: light.turn_off
target:
entity_id: light.gateway_light_34xxxxxxxx13
```
@ -355,7 +355,7 @@ This automation toggles the living room lamp on vibration/tilt.
entity_id: binary_sensor.vibration_xxxx000000
movement_type: vibrate
action:
service: light.toggle
action: light.toggle
target:
entity_id: light.living_room_lamp
- alias: "Turn on Living Room Lamp on tilt"
@ -366,7 +366,7 @@ This automation toggles the living room lamp on vibration/tilt.
entity_id: binary_sensor.vibration_xxxx000000
movement_type: tilt
action:
service: light.toggle
action: light.toggle
target:
entity_id: light.living_room_lamp
```

View File

@ -116,10 +116,10 @@ This example script shows how to take a picture with your camera, named `My Came
```yaml
alias: "Blink Snap Picture"
sequence:
- service: blink.trigger_camera
- action: blink.trigger_camera
target:
entity_id: camera.blink_my_camera
- service: camera.snapshot
- action: camera.snapshot
target:
entity_id: camera.blink_my_camera
data:
@ -140,7 +140,7 @@ Here, this example assumes your blink module is named `My Sync Module` and that
entity_id: all
to: "not_home"
action:
service: alarm_control_panel.alarm_arm_away
action: alarm_control_panel.alarm_arm_away
target:
entity_id: alarm_control_panel.blink_my_sync_module
```
@ -157,7 +157,7 @@ Similar to the previous example, this automation will disarm blink when arriving
entity_id: all
to: "home"
action:
service: alarm_control_panel.alarm_disarm
action: alarm_control_panel.alarm_disarm
target:
entity_id: alarm_control_panel.blink_my_sync_module
```
@ -178,7 +178,7 @@ The following example assumes your camera's name (in the Blink app) is `My Camer
entity_id: binary_sensor.blink_my_camera_motion_detected
to: "on"
action:
- service: blink.save_video
- action: blink.save_video
target:
entity_id: camera.blink_my_camera
data:
@ -206,7 +206,7 @@ The file name of the downloaded video file is not configurable.
- platform: time_pattern
minutes: /3
action:
- service: blink.save_recent_clips
- action: blink.save_recent_clips
target:
entity_id: camera.my_camera
data:

View File

@ -79,7 +79,7 @@ The name of the action is `notify.bmw_connected_drive_<your_vehicle>`.
```yaml
...
action:
service: notify.bmw_connected_drive_<your_vehicle>
action: notify.bmw_connected_drive_<your_vehicle>
data:
message: The name of the POI # this is shown on the iDrive dashboard
data:

View File

@ -69,36 +69,36 @@ media_player:
browse_media_entity: media_player.sony_tv_native
commands:
turn_off:
service: media_player.turn_off
action: media_player.turn_off
data:
entity_id: media_player.sony_tv_native
turn_on:
service: media_player.turn_on
action: media_player.turn_on
data:
entity_id: media_player.sony_tv_native
select_source:
service: media_player.select_source
action: media_player.select_source
data:
entity_id: media_player.sony_tv_native
source: "{{ source }}"
media_play:
service: media_player.media_play
action: media_player.media_play
target:
entity_id: media_player.sony_tv_native
media_pause:
service: media_player.media_pause
action: media_player.media_pause
target:
entity_id: media_player.sony_tv_native
media_play_pause:
service: media_player.media_play_pause
action: media_player.media_play_pause
target:
entity_id: media_player.sony_tv_native
media_previous_track:
service: media_player.media_previous_track
action: media_player.media_previous_track
target:
entity_id: media_player.sony_tv_native
media_next_track:
service: media_player.media_next_track
action: media_player.media_next_track
target:
entity_id: media_player.sony_tv_native
```
@ -119,7 +119,7 @@ The `play_media` {% term action %} can be used in an {% term automation %} or {%
**Example to open YouTube app:**
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.bravia_tv
data:
@ -130,7 +130,7 @@ data:
**Example to switch to channel number 11:**
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.bravia_tv
data:
@ -141,7 +141,7 @@ data:
**Example to switch to channel including 'news' in its name:**
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.bravia_tv
data:
@ -158,7 +158,7 @@ The commands that can be sent to the TV depend on the model of your TV. To displ
**Example to send `Down` key command:**
```yaml
service: remote.send_command
action: remote.send_command
target:
entity_id: remote.bravia_tv
data:

View File

@ -58,7 +58,7 @@ The **Bring** integration offers an action to send push notifications to the Bri
```yaml
...
action:
service: bring.send_message
action: bring.send_message
target:
entity_id: todo.bring_shoppinglist
data:
@ -72,7 +72,7 @@ Note that for the notification type `urgent_message` the attribute `item` is **r
```yaml
...
action:
service: bring.send_message
action: bring.send_message
target:
entity_id: todo.bring_shoppinglist
data:

View File

@ -92,7 +92,7 @@ To learn IR codes, call `remote.learn_command` with the device name and command
script:
learn_tv_power:
sequence:
- service: remote.learn_command
- action: remote.learn_command
target:
entity_id: remote.bedroom
data:
@ -113,7 +113,7 @@ Learning RF codes takes place in two steps. First call `remote.learn_command` wi
script:
learn_car_unlock:
sequence:
- service: remote.learn_command
- action: remote.learn_command
target:
entity_id: remote.garage
data:
@ -137,7 +137,7 @@ In order to streamline the learning process, you may want to provide a list of c
script:
learn_tv_commands:
sequence:
- service: remote.learn_command
- action: remote.learn_command
target:
entity_id: remote.bedroom
data:
@ -164,7 +164,7 @@ If the code works sometimes, and sometimes it doesn't, you can try to relearn it
script:
learn_tv_power_button:
sequence:
- service: remote.learn_command
- action: remote.learn_command
target:
entity_id: remote.bedroom
data:
@ -200,7 +200,7 @@ To send a command that you've learned, call `remote.send_command` with the devic
script:
tv_power:
sequence:
- service: remote.send_command
- action: remote.send_command
target:
entity_id: remote.bedroom
data:
@ -217,7 +217,7 @@ Use `num_repeats:` to send the same command multiple times:
script:
turn_up_tv_volume_20:
sequence:
- service: remote.send_command
- action: remote.send_command
target:
entity_id: remote.bedroom
data:
@ -235,7 +235,7 @@ You can provide a list of commands to be sent sequentially:
script:
turn_on_ac:
sequence:
- service: remote.send_command
- action: remote.send_command
target:
entity_id: remote.bedroom
data:
@ -254,7 +254,7 @@ Sometimes you may want to send a base64 code obtained elsewhere. Use the `b64:`
script:
turn_on_tv:
sequence:
- service: remote.send_command
- action: remote.send_command
target:
entity_id: remote.bedroom
data:
@ -270,7 +270,7 @@ You can send a sequence of base64 codes just like normal commands:
script:
turn_on_ac:
sequence:
- service: remote.send_command
- action: remote.send_command
target:
entity_id: remote.bedroom
data:
@ -288,7 +288,7 @@ You can mix commands and base64 codes:
script:
turn_on_ac:
sequence:
- service: remote.send_command
- action: remote.send_command
target:
entity_id: remote.bedroom
data:
@ -317,7 +317,7 @@ To delete a command, call `remote.delete_command` with the device name and the c
script:
delete_tv_power:
sequence:
- service: remote.delete_command
- action: remote.delete_command
target:
entity_id: remote.bedroom
data:
@ -334,7 +334,7 @@ You can provide a list of commands to be deleted:
script:
delete_tv_commands:
sequence:
- service: remote.delete_command
- action: remote.delete_command
target:
entity_id: remote.bedroom
data:

View File

@ -41,7 +41,7 @@ trigger:
- platform: state
entity_id: button.my_button
action:
- service: notify.frenck
- action: notify.frenck
data:
message: "My button has been pressed!"
```
@ -53,7 +53,7 @@ The button entities exposes a single {% term action %}: {% my developer_call_ser
This action can be called to trigger a button press for that entity.
```yaml
- service: button.press
- action: button.press
target:
entity_id: button.my_button
```

View File

@ -93,7 +93,7 @@ automation:
event: start
entity_id: calendar.personal
action:
- service: persistent_notification.create
- action: persistent_notification.create
data:
message: >-
Event {{ trigger.calendar_event.summary }} @
@ -129,10 +129,10 @@ automation:
- if:
- "{{ trigger.event == 'start' }}"
then:
- service: light.turn_on
- action: light.turn_on
entity_id: light.front
else:
- service: light.turn_off
- action: light.turn_off
entity_id: light.front
```
{% endraw %}
@ -167,7 +167,7 @@ You either use `start_date_time` and `end_date_time`, or `start_date` and `end_d
This is a full example of a {% term service %} call in YAML:
```yaml
service: calendar.create_event
action: calendar.create_event
target:
entity_id: calendar.device_automation_schedules
data:
@ -180,7 +180,7 @@ Home Assistant Calendars do not allow zero duration Calendar events. The followi
{% raw %}
```yaml
service: calendar.create_event
action: calendar.create_event
target:
entity_id: calendar.device_automation_schedules
data:
@ -207,7 +207,7 @@ Use only one of `end_date_time` or `duration`.
{% endnote %}
```yaml
service: calendar.get_events
action: calendar.get_events
target:
entity_id:
- calendar.school
@ -233,7 +233,7 @@ This example uses a template with response data in another action:
{% raw %}
```yaml
service: notify.nina
action: notify.nina
data:
title: Daily agenda for {{ now().date() }}
message: >-

View File

@ -65,7 +65,7 @@ For example, the following action in an automation would send an `hls` live stre
```yaml
action:
service: camera.play_stream
action: camera.play_stream
target:
entity_id: camera.yourcamera
data:
@ -93,7 +93,7 @@ For example, the following action in an automation would take a recording from "
```yaml
action:
service: camera.record
action: camera.record
target:
entity_id: camera.yourcamera
data:
@ -119,7 +119,7 @@ For example, the following action in an automation would take a snapshot from "y
```yaml
action:
service: camera.snapshot
action: camera.snapshot
target:
entity_id: camera.yourcamera
data:

View File

@ -43,7 +43,7 @@ cast_downstairs_on_kitchen:
dashboard_path: lovelace-cast
entity_id: media_player.kitchen
view_path: downstairs
service: cast.show_lovelace_view
action: cast.show_lovelace_view
```
{% important %}
@ -70,7 +70,7 @@ You can play MP3 streams like net radios, FLAC files or videos from your local n
```yaml
# Play a video file from the local network:
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.chromecast
data:
@ -80,7 +80,7 @@ data:
```yaml
# Show a jpeg image:
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.chromecast
data:
@ -93,7 +93,7 @@ For the possible metadata types and values check [Google cast documentation > Me
```yaml
# Play a movie from the internet, with extra metadata provided:
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.chromecast
data:
@ -110,7 +110,7 @@ data:
```yaml
# Play a netradio, with extra metadata provided:
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.chromecast
data:
@ -161,7 +161,7 @@ Example values to cast [this episode](https://www.bbc.co.uk/iplayer/episode/b09w
```yaml
alias: "Cast BBC iPlayer to My Chromecast"
sequence:
- service: media_player.play_media
- action: media_player.play_media
target:
entity_id: media_player.my_chromecast
data:
@ -202,7 +202,7 @@ Example values to cast [BBC Radio 1](https://www.bbc.co.uk/sounds/play/live:bbc_
```yaml
alias: "Cast BBC Sounds to My Chromecast"
sequence:
- service: media_player.play_media
- action: media_player.play_media
target:
entity_id: media_player.my_chromecast
data:
@ -252,7 +252,7 @@ Optional:
"media_id": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
"media_type": "video/mp4"
}'
service: media_player.play_media
action: media_player.play_media
```
### [NRK Radio](https://radio.nrk.no)
@ -286,7 +286,7 @@ Example values to cast the item at <https://radio.nrk.no/podkast/tazte_priv/l_84
"app_name": "nrkradio",
"media_id": "l_8457deb0-4f2c-4ef3-97de-b04f2c6ef314"
}'
service: media_player.play_media
action: media_player.play_media
```
### [NRK TV](https://tv.nrk.no)
@ -318,7 +318,7 @@ Example values to cast the item at <https://tv.nrk.no/serie/uti-vaar-hage/sesong
"app_name": "nrktv",
"media_id": "OUHA43000207"
}'
service: media_player.play_media
action: media_player.play_media
```
### Plex
@ -329,7 +329,7 @@ To cast media directly from a configured Plex server, set the fields [as documen
'cast_plex_to_chromecast':
alias: "Cast Plex to Chromecast"
sequence:
- service: media_player.play_media
- action: media_player.play_media
target:
entity_id: media_player.chromecast
data:
@ -376,7 +376,7 @@ Example values to cast the item at <https://www.supla.fi/audio/3601824>
"app_name": "supla",
"media_id": "3601824"
}'
service: media_player.play_media
action: media_player.play_media
```
### YouTube
@ -408,7 +408,7 @@ Optional:
"app_name": "youtube",
"media_id": "dQw4w9WgXcQ"
}'
service: media_player.play_media
action: media_player.play_media
```
## Troubleshooting automatic discovery

View File

@ -69,7 +69,7 @@ Here are the automations for the above screenshot:
- platform: webhook
webhook_id: build_failed
action:
service: notify.cisco_webex_teams_notify
action: notify.cisco_webex_teams_notify
data:
message: "<blockquote class=danger>Build 0.89.5 compile failed."
@ -82,7 +82,7 @@ Here are the automations for the above screenshot:
- platform: webhook
webhook_id: build_unstable
action:
service: notify.cisco_webex_teams_notify
action: notify.cisco_webex_teams_notify
data:
title: "<strong>Build 0.89.6 is unstable.</strong>"
message: "<blockquote class=warning>Version 0.89.6 failed verifications.
@ -105,7 +105,7 @@ Here are the automations for the above screenshot:
- platform: webhook
webhook_id: build_passed
action:
service: notify.cisco_webex_teams_notify
action: notify.cisco_webex_teams_notify
data:
title: "<strong>✅ Version 0.89.7 passed all tests and deployed to production!</strong>"
message: "<blockquote class=info>Version 0.89.7 passed all verifications.

View File

@ -65,7 +65,7 @@ trigger:
- platform: sun
event: sunset
action:
- service: notify.clicksend_tts
- action: notify.clicksend_tts
data:
message: "The sun has set"
```

View File

@ -42,7 +42,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: climate.set_aux_heat
- action: climate.set_aux_heat
target:
entity_id: climate.kitchen
data:
@ -68,7 +68,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: climate.set_preset_mode
- action: climate.set_preset_mode
target:
entity_id: climate.kitchen
data:
@ -96,7 +96,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: climate.set_temperature
- action: climate.set_temperature
target:
entity_id: climate.kitchen
data:
@ -111,7 +111,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: climate.set_temperature
- action: climate.set_temperature
target:
entity_id: climate.kitchen
data:
@ -137,7 +137,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: climate.set_humidity
- action: climate.set_humidity
target:
entity_id: climate.kitchen
data:
@ -161,7 +161,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: climate.set_fan_mode
- action: climate.set_fan_mode
target:
entity_id: climate.kitchen
data:
@ -185,7 +185,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: climate.set_hvac_mode
- action: climate.set_hvac_mode
target:
entity_id: climate.kitchen
data:
@ -209,7 +209,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: climate.set_swing_mode
- action: climate.set_swing_mode
target:
entity_id: climate.kitchen
data:

View File

@ -59,7 +59,7 @@ Example usage in an {% term automation %}, taking the album art present on a Chr
entity_id: media_player.chromecast
action:
- service: color_extractor.turn_on
- action: color_extractor.turn_on
data_template:
color_extract_url: "{{ states.media_player.chromecast.attributes.entity_picture }}"
entity_id: light.shelf_leds
@ -76,7 +76,7 @@ With a nicer transition period of 5 seconds and setting brightness to 100% each
entity_id: media_player.chromecast
action:
- service: color_extractor.turn_on
- action: color_extractor.turn_on
data_template:
color_extract_url: "{{ states.media_player.chromecast.attributes.entity_picture }}"
entity_id: light.shelf_leds

View File

@ -155,7 +155,7 @@ automation:
event_data:
level: ERROR
action:
service: counter.increment
action: counter.increment
target:
entity_id: counter.error_counter

View File

@ -65,7 +65,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: cover.open_cover
- action: cover.open_cover
target:
entity_id: cover.demo
```
@ -87,7 +87,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: cover.set_cover_position
- action: cover.set_cover_position
target:
entity_id: cover.demo
data:
@ -111,7 +111,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: cover.set_cover_tilt_position
- action: cover.set_cover_tilt_position
target:
entity_id: cover.demo
data:

View File

@ -39,11 +39,11 @@ cover:
friendly_name: "Garage Door"
value_template: "{{ states('sensor.garage_door')|float > 0 }}"
open_cover:
service: script.open_garage_door
action: script.open_garage_door
close_cover:
service: script.close_garage_door
action: script.close_garage_door
stop_cover:
service: script.stop_garage_door
action: script.stop_garage_door
```
{% endraw %}
@ -189,18 +189,18 @@ cover:
- condition: state
entity_id: sensor.garage_door
state: "off"
- service: switch.turn_on
- action: switch.turn_on
target:
entity_id: switch.garage_door
close_cover:
- condition: state
entity_id: sensor.garage_door
state: "on"
- service: switch.turn_off
- action: switch.turn_off
target:
entity_id: switch.garage_door
stop_cover:
service: switch.turn_on
action: switch.turn_on
target:
entity_id: switch.garage_door
icon_template: >-
@ -231,23 +231,23 @@ cover:
cover_group:
friendly_name: "Cover Group"
open_cover:
service: script.cover_group
action: script.cover_group
data:
modus: "open"
close_cover:
service: script.cover_group
action: script.cover_group
data:
modus: "close"
stop_cover:
service: script.cover_group
action: script.cover_group
data:
modus: "stop"
set_cover_position:
service: script.cover_group_position
action: script.cover_group_position
data:
position: "{{position}}"
set_cover_tilt_position:
service: script.cover_group_tilt_position
action: script.cover_group_tilt_position
data:
tilt: "{{tilt}}"
value_template: "{{is_state('sensor.cover_group', 'open')}}"
@ -274,14 +274,14 @@ sensor:
script:
cover_group:
sequence:
- service: "cover.{{modus}}_cover"
- action: "cover.{{modus}}_cover"
target:
entity_id:
- cover.bedroom
- cover.livingroom
cover_group_position:
sequence:
- service: cover.set_cover_position
- action: cover.set_cover_position
target:
entity_id:
- cover.bedroom
@ -296,7 +296,7 @@ automation:
event: sunset
offset: "+00:30:00"
action:
- service: cover.set_cover_position
- action: cover.set_cover_position
target:
entity_id: cover.cover_group
data:
@ -318,15 +318,15 @@ cover:
cover_group:
friendly_name: "Cover Group"
open_cover:
service: script.cover_group
action: script.cover_group
data:
modus: "open"
close_cover:
service: script.cover_group
action: script.cover_group
data:
modus: "close"
stop_cover:
service: script.cover_group
action: script.cover_group
data:
modus: "stop"
value_template: "{{is_state('sensor.cover_group', 'open')}}"
@ -353,15 +353,15 @@ cover:
cover_group:
friendly_name: "Cover Group"
open_cover:
service: script.cover_group
action: script.cover_group
data:
modus: "open"
close_cover:
service: script.cover_group
action: script.cover_group
data:
modus: "close"
stop_cover:
service: script.cover_group
action: script.cover_group
data:
modus: "stop"
value_template: "{{is_state('sensor.cover_group', 'open')}}"

View File

@ -201,7 +201,7 @@ automation:
id: remote_control_1
event: 1002
action:
- service: light.toggle
- action: light.toggle
target:
entity_id: light.lamp
@ -214,7 +214,7 @@ automation:
id: remote_control_1
event: 2002
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.lamp
data:
@ -231,7 +231,7 @@ automation:
id: remote_control_1
event: 3002
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.lamp
data:
@ -248,7 +248,7 @@ automation:
id: remote_control_1
gesture: 7
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.lamp
```
@ -269,7 +269,7 @@ automation:
id: tint_remote_1
event: 6002
action:
- service: light.turn_on
- action: light.turn_on
data:
xy_color:
- '{{ trigger.event.data.xy.0 }}'
@ -293,7 +293,7 @@ automation:
entity_id: binary_sensor.doorbell_motion
to: "on"
action:
- service: deconz.configure
- action: deconz.configure
data:
entity: light.hue_lamp
field: /state
@ -304,7 +304,7 @@ automation:
bri: 255
alert: "breathe"
- delay: 00:00:15
- service: deconz.configure
- action: deconz.configure
data:
entity: light.hue_lamp
field: "/state"

View File

@ -29,5 +29,5 @@ Example:
type: turn_off
entity_id: light.bowl
action:
- service: camera.turn_off
- action: camera.turn_off
```

View File

@ -55,7 +55,7 @@ If you have a sensor session running, and once you have enabled the Dexcom integ
after: "22:00:00"
before: "06:00:00"
action:
- service: light.turn_on
- action: light.turn_on
target:
entity_id: light.kitchen
```

View File

@ -109,10 +109,10 @@ intent_script:
speech:
text: Turning {{ Room }} lights {{ OnOff }}
action:
- service: notify.pushbullet
- action: notify.pushbullet
data:
message: Someone asked via apiai to turn {{ Room }} lights {{ OnOff }}
- service: >
- action: >
{%- if OnOff == "on" -%}
switch.turn_on
{%- else -%}

View File

@ -97,7 +97,7 @@ At the moment, the following buttons are supported:
A typical action for pressing several buttons looks like this.
```yaml
service: remote.send_command
action: remote.send_command
target:
entity_id: remote.directv_entity
data:

View File

@ -114,7 +114,7 @@ To include messages with embedding, use these attributes underneath the `embed`
### Example action
```yaml
- service: notify.discord
- action: notify.discord
data:
message: "A message from Home Assistant"
target: ["1234567890", "0987654321"]
@ -127,7 +127,7 @@ To include messages with embedding, use these attributes underneath the `embed`
### Example action with attachments sourced from remote URLs
```yaml
- service: notify.discord
- action: notify.discord
data:
message: "A message from Home Assistant"
target: ["1234567890", "0987654321"]
@ -143,7 +143,7 @@ Note that `verify_ssl` defaults to `True`, and that any remote hosts will need t
### Example embed action
```yaml
- service: notify.discord
- action: notify.discord
data:
message: ""
target: ["1234567890", "0987654321"]

View File

@ -41,7 +41,7 @@ URIs generated while browsing will look like the Object ID form above. However,
Using a path URI:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.living_room_tv
data:
@ -51,7 +51,7 @@ data:
Using a query URI:
```yaml
service: media_player.play_media
action: media_player.play_media
target:
entity_id: media_player.living_room_tv
data:

View File

@ -38,7 +38,7 @@ dominos:
Now you can use the Dominos {% term action %} to order pizza within your automations:
```yaml
- service: dominos.order
- action: dominos.order
data:
order_entity_id: dominos.medium_pan
```

View File

@ -220,7 +220,7 @@ image_processing:
entity_id:
- binary_sensor.driveway
action:
- service: image_processing.scan
- action: image_processing.scan
target:
entity_id: image_processing.doods_camera_driveway
```

View File

@ -108,7 +108,7 @@ The example automation below shows how to turn on a light when somebody presses
platform: event
event_type: doorbird_driveway_gate_somebody_pressed_the_button
action:
service: light.turn_on
action: light.turn_on
target:
entity_id: light.side_entry_porch
```

View File

@ -80,7 +80,7 @@ automation:
platform: sun
event: sunset
action:
service: notify.dovado
action: notify.dovado
data:
message: "The sun has set"
target: "+14151234567"

View File

@ -55,7 +55,7 @@ Along with the event the following payload parameters are available:
platform: event
event_type: downloader_download_failed
action:
service: persistent_notification.create
action: persistent_notification.create
data:
message: "{{trigger.event.data.filename}} download failed"
title: "Download Failed"

View File

@ -171,7 +171,7 @@ template:
- platform: time_pattern
seconds: "*"
action:
- service: easyenergy.get_energy_usage_prices
- action: easyenergy.get_energy_usage_prices
response_variable: response
data:
config_entry: "013713c172577bada2874a32dbe44feb"

View File

@ -96,7 +96,7 @@ The `ecobee` notify platform allows you to send notifications to an ecobee therm
Example action:
```yaml
service: notify.send_message
action: notify.send_message
data:
message: "Hello, this is your thermostat."
entity_id: notify.ecobee

View File

@ -147,7 +147,7 @@ The integration has a `raw_get_positions` action to retrieve device and chargers
Example:
```yaml
service: ecovacs.raw_get_positions
action: ecovacs.raw_get_positions
target:
entity_id: vacuum.deebot_n8_plus
```

View File

@ -87,7 +87,7 @@ a binary sensor (a doorbell) is triggered:
entity_id: binary_sensor.doorbell
to: "on"
action:
- service: elgato.identify
- action: elgato.identify
target:
entity_id: light.elgato_key_light
```

View File

@ -124,7 +124,7 @@ The following is an example implementation of an automation:
type: keypress
key: Fwd
action:
- service: media_player.volume_up
- action: media_player.volume_up
target:
entity_id: media_player.amplifier
```

View File

@ -140,7 +140,7 @@ template:
- platform: time_pattern
hours: "*"
action:
- service: energyzero.get_energy_prices
- action: energyzero.get_energy_prices
response_variable: prices
data:
config_entry: 1b4a46c6cba0677bbfb5a8c53e8618b0

View File

@ -118,7 +118,7 @@ automation:
id: [0xYY, 0xYY, 0xYY, 0xYY]
pushed: 0
action:
service: "{% if trigger.event.data.onoff %} light.turn_on {% else %} light.turn_off {%endif %}"
action: "{% if trigger.event.data.onoff %} light.turn_on {% else %} light.turn_off {%endif %}"
target:
entity_id: "{% if trigger.event.data.which == 1 %} light.hall_left {% else %} light.hall_right {%endif %}"
```

View File

@ -40,7 +40,7 @@ trigger:
- platform: state
entity_id: event.doorbell
action:
- service: notify.frenck
- action: notify.frenck
data:
message: "Ding Dong! Someone is at the door!"
```

View File

@ -130,7 +130,7 @@ For **AutoWithEco**, the period of time is a `duration` is up to 24 hours.
```yaml
- action:
- service: evohome.set_system_mode
- action: evohome.set_system_mode
data:
mode: AutoWithEco
duration: {hours: 1, minutes: 30}
@ -140,7 +140,7 @@ For the other modes, such as **Away**, the duration is a `period` of days, where
```yaml
- action:
- service: evohome.set_system_mode
- action: evohome.set_system_mode
data:
mode: Away
period: {days: 30}
@ -162,7 +162,7 @@ This action will set the `setpoint` of a zone, as identified by its `entity_id`,
```yaml
- action:
- service: evohome.set_zone_override
- action: evohome.set_zone_override
target:
entity_id: climate.loungeroom
data:
@ -173,7 +173,7 @@ The `duration` can be up to 24 hours, after which the zone mode will revert to s
```yaml
- action:
- service: evohome.set_zone_override
- action: evohome.set_zone_override
target:
entity_id: climate.loungeroom
data:

View File

@ -52,7 +52,7 @@ automation:
platform: sun
event: sunset
action:
service: notify.facebook
action: notify.facebook
data:
message: "Good Evening"
target:
@ -114,7 +114,7 @@ You could also send rich messing (cards, buttons, images, videos, etc). [Info](h
script:
test_fb_notification:
sequence:
- service: notify.facebook
- action: notify.facebook
data:
message: Some text before the quick replies
target: 0034643123212

View File

@ -45,7 +45,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: fan.set_percentage
- action: fan.set_percentage
target:
entity_id: fan.kitchen
data:
@ -69,7 +69,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: fan.set_preset_mode
- action: fan.set_preset_mode
target:
entity_id: fan.kitchen
data:
@ -93,7 +93,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: fan.set_direction
- action: fan.set_direction
target:
entity_id: fan.kitchen
data:
@ -117,7 +117,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: fan.oscillate
- action: fan.oscillate
target:
entity_id: fan.kitchen
data:
@ -151,7 +151,7 @@ automation:
platform: time
at: "07:15:00"
action:
- service: fan.turn_off
- action: fan.turn_off
target:
entity_id: fan.kitchen
data:
@ -178,7 +178,7 @@ automation:
type: press
subtype: raise
action:
- service: fan.increase_speed
- action: fan.increase_speed
target:
entity_id: fan.dining_room_fan_by_front_door
```
@ -203,7 +203,7 @@ automation:
type: press
subtype: lower
action:
- service: fan.decrease_speed
- action: fan.decrease_speed
target:
entity_id: fan.dining_room_fan_by_front_door
```

View File

@ -42,23 +42,23 @@ fan:
oscillating_template: "{{ states('input_select.osc') }}"
direction_template: "{{ states('input_select.direction') }}"
turn_on:
service: script.fan_on
action: script.fan_on
turn_off:
service: script.fan_off
action: script.fan_off
set_percentage:
service: script.fans_set_speed
action: script.fans_set_speed
data:
percentage: "{{ percentage }}"
set_preset_mode:
service: script.fans_set_preset_mode
action: script.fans_set_preset_mode
data:
preset_mode: "{{ preset_mode }}"
set_oscillating:
service: script.fan_oscillating
action: script.fan_oscillating
data:
oscillating: "{{ oscillating }}"
set_direction:
service: script.fan_direction
action: script.fan_direction
data:
direction: "{{ direction }}"
speed_count: 6
@ -175,21 +175,21 @@ fan:
friendly_name: "Helper Fan"
value_template: "{{ states('input_boolean.state') }}"
turn_on:
- service: input_boolean.turn_on
- action: input_boolean.turn_on
target:
entity_id: input_boolean.state
turn_off:
- service: input_boolean.turn_off
- action: input_boolean.turn_off
target:
entity_id: input_boolean.state
percentage_template: >
{{ states('input_number.percentage') if is_state('input_boolean.state', 'on') else 0 }}
speed_count: 6
set_percentage:
- service: input_boolean.turn_{{ 'on' if percentage > 0 else 'off' }}
- action: input_boolean.turn_{{ 'on' if percentage > 0 else 'off' }}
target:
entity_id: input_boolean.state
- service: input_number.set_value
- action: input_number.set_value
target:
entity_id: input_number.percentage
data:
@ -213,18 +213,18 @@ fan:
friendly_name: "Preset Mode Fan Example"
value_template: "{{ states('fan.percentage_fan') }}"
turn_on:
- service: fan.turn_on
- action: fan.turn_on
target:
entity_id: fan.percentage_fan
turn_off:
- service: fan.turn_off
- action: fan.turn_off
target:
entity_id: fan.percentage_fan
percentage_template: >
{{ state_attr('fan.percentage_fan', 'percentage') }}
speed_count: 3
set_percentage:
- service: fan.set_percentage
- action: fan.set_percentage
target:
entity_id: fan.percentage_fan
data:
@ -247,7 +247,7 @@ fan:
off
{% endif %}
set_preset_mode:
- service: fan.set_percentage
- action: fan.set_percentage
target:
entity_id: fan.percentage_fan
data:

View File

@ -31,7 +31,7 @@ automation:
platform: event
event_type: feedreader
action:
service: script.turn_on
action: script.turn_on
target:
entity_id: script.my_action
```
@ -47,7 +47,7 @@ automation:
event_data:
feed_url: "https://hasspodcast.io/feed/podcast"
action:
service: persistent_notification.create
action: persistent_notification.create
data:
title: "New HA Podcast available"
message: "New Podcast available - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"

View File

@ -121,7 +121,7 @@ automation:
platform: state
entity_id: sensor.incidents
action:
service: light.turn_on
action: light.turn_on
target:
entity_id: light.bedroom
@ -138,7 +138,7 @@ automation:
attribute: message_to_speech_url
state: None
action:
- service: media_player.play_media
- action: media_player.play_media
data_template:
entity_id: media_player.nest_hub_bedroom
media_content_id: >
@ -150,7 +150,7 @@ automation:
platform: state
entity_id: switch.response_button
action:
service: homeassistant.turn_on
action: homeassistant.turn_on
target:
entity_id: switch.incident_response
@ -159,7 +159,7 @@ automation:
platform: homeassistant
event: start
action:
service: cast.show_lovelace_view
action: cast.show_lovelace_view
data:
entity_id: media_player.nest_hub_bedroom
view_path: fsr

View File

@ -85,7 +85,7 @@ automation:
button_name: flic_81e4ac74b6d2
click_type: single
action:
service: homeassistant.turn_on
action: homeassistant.turn_on
target:
entity_id: group.lights_livingroom
```
@ -108,7 +108,7 @@ automation:
platform: event
event_type: flic_click
action:
- service: notify.html5
- action: notify.html5
data:
title: "flic click"
message: "flic {{ trigger.event.data.button_name }} was {{ trigger.event.data.click_type }} clicked"

View File

@ -53,7 +53,7 @@ trigger:
- platform: time_pattern
minutes: /5
action:
- service: flume.list_notifications
- action: flume.list_notifications
data:
config_entry: 1234 # replace this with your config entry id
response_variable: notifications
@ -63,7 +63,7 @@ action:
{{ notifications.notifications | selectattr('type', 'equalto', 1) |
sort(attribute == ('created_datetime', reverse == true) | length > 0 }}
then:
- service: notify.all
- action: notify.all
data:
message: >-
{%- set usage_alert == notifications.notifications |

View File

@ -257,7 +257,7 @@ The Addressable v3 (0xA3) models allow setting a color effect per zone. The leng
```yaml
#Example action
service: flux_led.set_zones
action: flux_led.set_zones
target:
entity_id:
- light.addressable_v3_8e2f7f
@ -287,7 +287,7 @@ The RGB with MIC (0x08), Addressable v2 (0xA2), and Addressable v3 (0xA3) models
```yaml
#Example action
service: flux_led.set_music_mode
action: flux_led.set_music_mode
target:
entity_id:
- light.addressable_v3_8e2f7f

View File

@ -57,7 +57,7 @@ automation:
  platform: state
entity_id: event.created
action:
  service: notify.notify
  action: notify.notify
  data:
    title: New image captured!
    message: "Created {{ trigger.to_state.attributes.file }} in {{ trigger.to_state.attributes.folder }}"

View File

@ -73,7 +73,7 @@ elements:
bottom: 50px
tap_action:
action: call-service
service: foscam.ptz
action: foscam.ptz
data:
entity_id: camera.bedroom
movement: up
@ -85,7 +85,7 @@ elements:
bottom: 0px
tap_action:
action: call-service
service: foscam.ptz
action: foscam.ptz
data:
entity_id: camera.bedroom
movement: down
@ -97,7 +97,7 @@ elements:
bottom: 25px
tap_action:
action: call-service
service: foscam.ptz
action: foscam.ptz
data:
entity_id: camera.bedroom
movement: left
@ -109,7 +109,7 @@ elements:
bottom: 25px
tap_action:
action: call-service
service: foscam.ptz
action: foscam.ptz
data:
entity_id: camera.bedroom
movement: right
@ -121,7 +121,7 @@ elements:
bottom: 50px
tap_action:
action: call-service
service: foscam.ptz
action: foscam.ptz
data:
entity_id: camera.bedroom
movement: top_left
@ -133,7 +133,7 @@ elements:
bottom: 50px
tap_action:
action: call-service
service: foscam.ptz
action: foscam.ptz
data:
entity_id: camera.bedroom
movement: top_right
@ -145,7 +145,7 @@ elements:
bottom: 0px
tap_action:
action: call-service
service: foscam.ptz
action: foscam.ptz
data:
entity_id: camera.bedroom
movement: bottom_left
@ -157,7 +157,7 @@ elements:
bottom: 0px
tap_action:
action: call-service
service: foscam.ptz
action: foscam.ptz
data:
entity_id: camera.bedroom
movement: bottom_right

View File

@ -62,7 +62,7 @@ automation:
platform: event
event_type: foursquare.push
action:
service: script.turn_on
action: script.turn_on
target:
entity_id: script.my_action
```

View File

@ -105,7 +105,7 @@ The following script can be used to easily add a reconnect button to your UI. If
fritz_box_reconnect:
alias: "Reconnect FRITZ!Box"
sequence:
- service: button.press
- action: button.press
target:
entity_id: button.fritzbox_7530_reconnect
@ -120,7 +120,7 @@ automation:
- platform: time
at: "05:00:00"
action:
- service: button.press
- action: button.press
target:
entity_id: button.fritzbox_7530_reconnect
@ -136,7 +136,7 @@ automation:
entity_id: switch.fritzbox_7530_wifi_myssid
to: "on"
action:
- service: notify.notify
- action: notify.notify
data:
title: "Guest Wi-Fi is enabled"
message: "Password: ..."

View File

@ -56,7 +56,7 @@ automation:
- platform: state
entity_id: sensor.phone
action:
- service: notify.notify
- action: notify.notify
data:
title: "Phone"
message: >-

View File

@ -55,7 +55,7 @@ trigger:
from: "off"
to: "on"
action:
service: media_player.turn_on
action: media_player.turn_on
target:
entity_id: "media_player.badezimmer"
```

View File

@ -100,7 +100,7 @@ You can use the `fully_kiosk.load_url` action to have the tablet open the specif
Example:
```yaml
service: fully_kiosk.load_url
action: fully_kiosk.load_url
data:
url: "https://home-assistant.io"
target:
@ -120,7 +120,7 @@ You can use the `fully_kiosk.set_config` action to change the many configuration
Example:
```yaml
service: fully_kiosk.set_config
action: fully_kiosk.set_config
data:
key: "startURL"
value: "https://home-assistant.io"
@ -140,7 +140,7 @@ You can use the `fully_kiosk.start_application` action to have the tablet launch
Example:
```yaml
service: fully_kiosk.start_application
action: fully_kiosk.start_application
data:
application: "de.ozerov.fully"
target:

View File

@ -95,7 +95,7 @@ Each such entity has a state attribute that will contain a list of any such issu
entity_id: sensor.geniushub_errors
above: 0
action:
- service: notify.pushbullet_notifier
- action: notify.pushbullet_notifier
data:
title: "Genius Hub has errors"
message: >-
@ -115,7 +115,7 @@ This alert may be useful to see if the CH is being turned on whilst you're on a
platform: state
entity_id: binary_sensor.dual_channel_receiver_2_1
action:
- service: notify.pushbullet_notifier
- action: notify.pushbullet_notifier
data:
title: "Warning: CH State Change!"
message: >-

View File

@ -65,7 +65,7 @@ automation:
condition: template
value_template: "{{ trigger.to_state.attributes.type == 'Bush Fire' }}"
action:
- service: persistent_notification.create
- action: persistent_notification.create
data:
message: "{{ trigger.to_state.name }} - {{ trigger.to_state.attributes.status }}"
title: "Bush Fire Alert"

View File

@ -132,7 +132,7 @@ trigger:
- platform: state
entity_id: sensor.awesome_repository_latest_release
action:
- service: notify.notify
- action: notify.notify
data:
title: "New github/repository release"
message: >-
@ -154,7 +154,7 @@ trigger:
- platform: state
entity_id: sensor.awesome_repository_stars
action:
- service: notify.notify
- action: notify.notify
data:
title: "New github/repository new star"
message: >-

View File

@ -51,7 +51,7 @@ The integration will poll the inverter for new values every 10 seconds. If you w
minutes: "*"
seconds: "/30"
action:
- service: homeassistant.update_entity
- action: homeassistant.update_entity
target:
entity_id: sensor.ppv
```

View File

@ -110,7 +110,7 @@ You either use `start_date_time` and `end_date_time`, or `start_date` and `end_d
This is a full example of an action in YAML:
```yaml
service: google.create_event
action: google.create_event
target:
entity_id: calendar.device_automation_schedules
data:

View File

@ -162,14 +162,14 @@ You can use the `google_assistant_sdk.send_text_command` action to send commands
Examples:
```yaml
service: google_assistant_sdk.send_text_command
action: google_assistant_sdk.send_text_command
data:
command: "turn off kitchen TV"
```
```yaml
# Say a joke on the living room speaker
service: google_assistant_sdk.send_text_command
action: google_assistant_sdk.send_text_command
data:
command: "tell me a joke"
media_player: media_player.living_room_speaker
@ -178,7 +178,7 @@ data:
You can send multiple commands in the same conversation context which is useful to unlock doors or open covers that need a PIN. Example:
```yaml
service: google_assistant_sdk.send_text_command
action: google_assistant_sdk.send_text_command
data:
command:
- "open the garage door"
@ -188,7 +188,7 @@ data:
You can get responses. Example:
```yaml
service: google_assistant_sdk.send_text_command
action: google_assistant_sdk.send_text_command
data:
command:
- "tell me a joke"
@ -219,7 +219,7 @@ You can use the `notify.google_assistant_sdk` action to broadcast messages to Go
Example to broadcast to all speakers:
```yaml
service: notify.google_assistant_sdk
action: notify.google_assistant_sdk
data:
message: time for dinner
```
@ -227,7 +227,7 @@ data:
Example to broadcast to speakers in selected rooms:
```yaml
service: notify.google_assistant_sdk
action: notify.google_assistant_sdk
data:
message: time for dinner
target:

View File

@ -106,7 +106,7 @@ This action populates [response data](/docs/scripts/service-calls#use-templates-
{% raw %}
```yaml
service: google_generative_ai_conversation.generate_content
action: google_generative_ai_conversation.generate_content
data:
prompt: >-
Very briefly describe what you see in this image from my doorbell camera.
@ -123,7 +123,7 @@ Another example with multiple images:
{% raw %}
```yaml
service: google_generative_ai_conversation.generate_content
action: google_generative_ai_conversation.generate_content
data:
prompt: >-
Briefly describe what happened in the following sequence of images

View File

@ -73,7 +73,7 @@ The following attributes can be placed inside the `data` key of the action for e
This is the full service call to send an email:
```yaml
service: notify.example_gmail_com
action: notify.example_gmail_com
data:
message: "test"
title: "test email"

View File

@ -61,7 +61,7 @@ You can use the `google_sheets.append_sheet` action to add rows of data to the S
```yaml
# Example action
service: google_sheets.append_sheet
action: google_sheets.append_sheet
data:
config_entry: 1b4a46c6cba0677bbfb5a8c53e8618b0
worksheet: "Car Charging"
@ -71,7 +71,7 @@ data:
Cost: "{{ states('input_number.car_charging_cost')|float(0) }}"
# Example action with multiple rows
service: google_sheets.append_sheet
action: google_sheets.append_sheet
data:
config_entry: 1b4a46c6cba0677bbfb5a8c53e8618b0
worksheet: "Car Charging"

View File

@ -121,7 +121,7 @@ For more options about `speak`, see the Speak section on the main [TTS](/integra
In YAML, your action will look like this:
```yaml
service: tts.speak
action: tts.speak
target:
entity_id: tts.google_en_com
data:
@ -141,7 +141,7 @@ Say to all `media_player` device entities:
```yaml
# Replace google_translate_say with <platform>_say when you use a different platform.
service: tts.google_translate_say
action: tts.google_translate_say
data:
entity_id: all
message: "May the force be with you."
@ -150,7 +150,7 @@ data:
Say to the `media_player.floor` device entity:
```yaml
service: tts.google_translate_say
action: tts.google_translate_say
data:
entity_id: media_player.floor
message: "May the force be with you."
@ -159,7 +159,7 @@ data:
Say to the `media_player.floor` device entity in French:
```yaml
service: tts.google_translate_say
action: tts.google_translate_say
data:
entity_id: media_player.floor
message: "Que la force soit avec toi."
@ -169,7 +169,7 @@ data:
Say to the `media_player.floor` device entity in UK English:
```yaml
service: tts.google_translate_say
action: tts.google_translate_say
data:
entity_id: media_player.floor
message: "May the force be with you."
@ -177,7 +177,7 @@ data:
```
```yaml
service: tts.google_translate_say
action: tts.google_translate_say
data:
entity_id: media_player.floor
message: "May the force be with you."
@ -191,7 +191,7 @@ With a template:
{% raw %}
```yaml
service: tts.google_translate_say
action: tts.google_translate_say
data:
message: "Temperature is {{states('sensor.temperature')}}."
cache: false

View File

@ -85,7 +85,7 @@ You can use the `homeassistant.update_entity` action to update the sensor on-dem
- thu
- fri
action:
- service: homeassistant.update_entity
- action: homeassistant.update_entity
target:
entity_id: sensor.morning_commute
```

View File

@ -327,10 +327,10 @@ notify:
- platform: group
name: "My notification group"
services:
- service: html5
- action: html5
data:
target: "macbook"
- service: html5_nexus
- action: html5_nexus
```
{% configuration %}

View File

@ -85,7 +85,7 @@ media_player:
script:
tts:
sequence:
- service: tts.google_say # or amazon_polly, voicerss, etc
- action: tts.google_say # or amazon_polly, voicerss, etc
target:
entity_id: media_player.gstreamer
data:

View File

@ -81,7 +81,7 @@ Using the activity name 'Watch TV', you can perform an action via automation to
```yaml
action:
- service: remote.turn_on
- action: remote.turn_on
target:
entity_id: remote.bed_room_hub
data:
@ -129,7 +129,7 @@ In the file 'harmony_REMOTENAME.conf' you can find the available devices and com
A typical action for sending several button presses looks like this:
```yaml
service: remote.send_command
action: remote.send_command
target:
entity_id: remote.tv_room
data:
@ -141,7 +141,7 @@ data:
```
OR
```yaml
service: remote.send_command
action: remote.send_command
target:
entity_id: remote.tv_room
data:
@ -164,7 +164,7 @@ Sends the change channel command to the Harmony HUB
A typical action for changing the channel would be::
```yaml
service: harmony.change_channel
action: harmony.change_channel
target:
entity_id: remote.tv_room
data:
@ -212,7 +212,7 @@ automation:
condition: template
value_template: '{{ trigger.to_state.attributes.current_activity == "Kodi" }}'
action:
service: input_boolean.turn_on
action: input_boolean.turn_on
target:
entity_id: input_boolean.notify
- alias: "PowerOff started from harmony hub"
@ -223,7 +223,7 @@ automation:
condition: template
value_template: '{{ trigger.to_state.attributes.current_activity == "PowerOff" }}'
action:
service: input_boolean.turn_off
action: input_boolean.turn_off
target:
entity_id: input_boolean.notify
```

View File

@ -171,7 +171,7 @@ So an Automation action using the example above would look something like this.
```yaml
action:
service: hdmi_cec.select_device
action: hdmi_cec.select_device
data:
device: Chromecast
```
@ -184,7 +184,7 @@ An Automation action using the example above would look something like this.
```yaml
action:
service: hdmi_cec.power_on
action: hdmi_cec.power_on
```
### Standby
@ -195,7 +195,7 @@ An Automation action using the example above would look something like this.
```yaml
action:
service: hdmi_cec.standby
action: hdmi_cec.standby
```
### Change volume level

View File

@ -37,7 +37,7 @@ A connection to a single device enables control for all devices on the network.
Use the sign-in action (go to **Developer Tools** > **Actions** and then run the `heos.sign_in` with your username and password. Use the "Fill example data" first, then change it with your data. Check the logs right after, there you should see if the sign-in was successful or not) to sign the connected controller into a HEOS account so that it can retrieve and play HEOS favorites and playlists. An error message is logged if sign-in is unsuccessful. Example action data payload:
```yaml
service: heos.sign_in
action: heos.sign_in
data:
username: "example@example.com"
password: "password"
@ -59,7 +59,7 @@ Use the sign-out action to sign the connected controller out of a HEOS account.
You can play a HEOS favorite by number or name with the `media_player.play_media` action. Example action data payload:
```yaml
service: media_player.play_media
action: media_player.play_media
data:
entity_id: media_player.office
media_content_type: "favorite"
@ -77,7 +77,7 @@ data:
You can play a HEOS playlist with the `media_player.play_media` action. Example action data payload:
```yaml
service: media_player.play_media
action: media_player.play_media
data:
entity_id: media_player.office
media_content_type: "playlist"
@ -95,7 +95,7 @@ data:
You can play a HEOS Quick Select by number or name with the `media_player.play_media` action. Example action data payload:
```yaml
service: media_player.play_media
action: media_player.play_media
data:
entity_id: media_player.office
media_content_type: "quick_select"
@ -113,7 +113,7 @@ data:
You can play a URL through a HEOS media player using the `media_player.play_media` action. The HEOS player must be able to reach the URL. Example action data payload:
```yaml
service: media_player.play_media
action: media_player.play_media
data:
entity_id: media_player.office
media_content_type: "url"
@ -131,7 +131,7 @@ data:
For grouping HEOS media players together for synchronous playback you can use the `media_player.join` action. With the example action data payload down below you'll expand playback of `media_player.office` to the `media_player.kitchen` and `media_player.bathroom` players. Please note that all of the media players need to be HEOS players.
```yaml
service: media_player.join
action: media_player.join
data:
entity_id: media_player.office
group_members:
@ -150,7 +150,7 @@ data:
For removing a HEOS player from a group you can use the `media_player.unjoin` action.
```yaml
service: media_player.unjoin
action: media_player.unjoin
data:
entity_id: media_player.office
```

View File

@ -86,7 +86,7 @@ automation:
- thu
- fri
action:
- service: homeassistant.update_entity
- action: homeassistant.update_entity
target:
entity_id: sensor.morning_commute
```

View File

@ -66,7 +66,7 @@ Examples:
script:
boost_heating:
sequence:
- service: hive.boost_heating_on
- action: hive.boost_heating_on
target:
entity_id: "climate.heating"
data:
@ -89,7 +89,7 @@ Examples:
script:
boost_heating:
sequence:
- service: hive.boost_heating_off
- action: hive.boost_heating_off
target:
entity_id: "climate.heating"
```
@ -111,7 +111,7 @@ Examples:
script:
boost_hot_water:
sequence:
- service: "hive.boost_hot_water"
- action: "hive.boost_hot_water"
target:
entity_id: "water_heater.hot_water"
data:

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