mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Change service_data to data. Document home-assistant/frontend#12628 (#22840)
This commit is contained in:
parent
88e1703389
commit
030d6cd3af
@ -130,7 +130,7 @@ show_state: false
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: script.turn_on
|
service: script.turn_on
|
||||||
service_data:
|
data:
|
||||||
entity_id: script.turn_off_lights
|
entity_id: script.turn_off_lights
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -434,7 +434,7 @@ entities:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: light.toggle
|
service: light.toggle
|
||||||
service_data:
|
data:
|
||||||
entity_id: light.bed_light
|
entity_id: light.bed_light
|
||||||
transition: 10
|
transition: 10
|
||||||
- type: divider
|
- type: divider
|
||||||
|
@ -160,7 +160,7 @@ tap_action:
|
|||||||
description: "Service to call (e.g., `media_player.media_play_pause`) when `action` defined as `call-service`."
|
description: "Service to call (e.g., `media_player.media_play_pause`) when `action` defined as `call-service`."
|
||||||
type: string
|
type: string
|
||||||
default: none
|
default: none
|
||||||
service_data:
|
data:
|
||||||
required: false
|
required: false
|
||||||
description: "Service data to include (e.g., `entity_id: media_player.bedroom`) when `action` defined as `call-service`."
|
description: "Service data to include (e.g., `entity_id: media_player.bedroom`) when `action` defined as `call-service`."
|
||||||
type: string
|
type: string
|
||||||
@ -254,7 +254,7 @@ service:
|
|||||||
required: true
|
required: true
|
||||||
description: "`light.turn_on`"
|
description: "`light.turn_on`"
|
||||||
type: string
|
type: string
|
||||||
service_data:
|
data:
|
||||||
required: false
|
required: false
|
||||||
description: The service data to use.
|
description: The service data to use.
|
||||||
type: map
|
type: map
|
||||||
@ -476,7 +476,7 @@ tap_action:
|
|||||||
hold_action:
|
hold_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: light.turn_on
|
service: light.turn_on
|
||||||
service_data:
|
data:
|
||||||
entity_id: light.bed_light
|
entity_id: light.bed_light
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
```
|
```
|
||||||
@ -521,7 +521,7 @@ elements:
|
|||||||
top: 95%
|
top: 95%
|
||||||
left: 60%
|
left: 60%
|
||||||
service: homeassistant.turn_off
|
service: homeassistant.turn_off
|
||||||
service_data:
|
data:
|
||||||
entity_id: group.all_lights
|
entity_id: group.all_lights
|
||||||
- type: icon
|
- type: icon
|
||||||
icon: mdi:home
|
icon: mdi:home
|
||||||
@ -570,7 +570,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: media_player.media_play_pause
|
service: media_player.media_play_pause
|
||||||
service_data:
|
data:
|
||||||
entity_id: media_player.living_room
|
entity_id: media_player.living_room
|
||||||
image: /local/television.jpg
|
image: /local/television.jpg
|
||||||
filter: brightness(5%)
|
filter: brightness(5%)
|
||||||
|
@ -119,7 +119,7 @@ camera_view: live
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: camera.snapshot
|
service: camera.snapshot
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.backdoor
|
entity_id: camera.backdoor
|
||||||
filename: '/shared/backdoor-{{ now().strftime("%Y-%m-%d-%H%M%S") }}.jpg'
|
filename: '/shared/backdoor-{{ now().strftime("%Y-%m-%d-%H%M%S") }}.jpg'
|
||||||
```
|
```
|
||||||
|
@ -70,6 +70,6 @@ image: /local/light.png
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: light.toggle
|
service: light.toggle
|
||||||
service_data:
|
data:
|
||||||
entity_id: light.ceiling_lights
|
entity_id: light.ceiling_lights
|
||||||
```
|
```
|
||||||
|
@ -289,7 +289,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: amcrest.ptz_control
|
service: amcrest.ptz_control
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.lakehouse
|
entity_id: camera.lakehouse
|
||||||
movement: up
|
movement: up
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -301,7 +301,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: amcrest.ptz_control
|
service: amcrest.ptz_control
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.lakehouse
|
entity_id: camera.lakehouse
|
||||||
movement: down
|
movement: down
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -313,7 +313,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: amcrest.ptz_control
|
service: amcrest.ptz_control
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.lakehouse
|
entity_id: camera.lakehouse
|
||||||
movement: left
|
movement: left
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -325,7 +325,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: amcrest.ptz_control
|
service: amcrest.ptz_control
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.lakehouse
|
entity_id: camera.lakehouse
|
||||||
movement: right
|
movement: right
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -337,7 +337,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: amcrest.ptz_control
|
service: amcrest.ptz_control
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.lakehouse
|
entity_id: camera.lakehouse
|
||||||
movement: left_up
|
movement: left_up
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -349,7 +349,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: amcrest.ptz_control
|
service: amcrest.ptz_control
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.lakehouse
|
entity_id: camera.lakehouse
|
||||||
movement: right_up
|
movement: right_up
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -361,7 +361,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: amcrest.ptz_control
|
service: amcrest.ptz_control
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.lakehouse
|
entity_id: camera.lakehouse
|
||||||
movement: left_down
|
movement: left_down
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -373,7 +373,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: amcrest.ptz_control
|
service: amcrest.ptz_control
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.lakehouse
|
entity_id: camera.lakehouse
|
||||||
movement: right_down
|
movement: right_down
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -385,13 +385,13 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: amcrest.ptz_control
|
service: amcrest.ptz_control
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.lakehouse
|
entity_id: camera.lakehouse
|
||||||
movement: zoom_in
|
movement: zoom_in
|
||||||
hold_action:
|
hold_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: amcrest.ptz_control
|
service: amcrest.ptz_control
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.lakehouse
|
entity_id: camera.lakehouse
|
||||||
movement: zoom_out
|
movement: zoom_out
|
||||||
```
|
```
|
||||||
|
@ -70,7 +70,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: foscam.ptz
|
service: foscam.ptz
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.bedroom
|
entity_id: camera.bedroom
|
||||||
movement: up
|
movement: up
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -82,7 +82,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: foscam.ptz
|
service: foscam.ptz
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.bedroom
|
entity_id: camera.bedroom
|
||||||
movement: down
|
movement: down
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -94,7 +94,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: foscam.ptz
|
service: foscam.ptz
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.bedroom
|
entity_id: camera.bedroom
|
||||||
movement: left
|
movement: left
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -106,7 +106,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: foscam.ptz
|
service: foscam.ptz
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.bedroom
|
entity_id: camera.bedroom
|
||||||
movement: right
|
movement: right
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -118,7 +118,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: foscam.ptz
|
service: foscam.ptz
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.bedroom
|
entity_id: camera.bedroom
|
||||||
movement: top_left
|
movement: top_left
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -130,7 +130,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: foscam.ptz
|
service: foscam.ptz
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.bedroom
|
entity_id: camera.bedroom
|
||||||
movement: top_right
|
movement: top_right
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -142,7 +142,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: foscam.ptz
|
service: foscam.ptz
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.bedroom
|
entity_id: camera.bedroom
|
||||||
movement: bottom_left
|
movement: bottom_left
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -154,7 +154,7 @@ elements:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: foscam.ptz
|
service: foscam.ptz
|
||||||
service_data:
|
data:
|
||||||
entity_id: camera.bedroom
|
entity_id: camera.bedroom
|
||||||
movement: bottom_right
|
movement: bottom_right
|
||||||
```
|
```
|
||||||
|
@ -313,7 +313,7 @@ A dashboard card with icons that will call the `action` service to send action c
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: motioneye.action
|
service: motioneye.action
|
||||||
service_data:
|
data:
|
||||||
action: left
|
action: left
|
||||||
entity_id: camera.living_room
|
entity_id: camera.living_room
|
||||||
- entity: camera.living_room
|
- entity: camera.living_room
|
||||||
@ -321,7 +321,7 @@ A dashboard card with icons that will call the `action` service to send action c
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: motioneye.action
|
service: motioneye.action
|
||||||
service_data:
|
data:
|
||||||
action: right
|
action: right
|
||||||
entity_id: camera.living_room
|
entity_id: camera.living_room
|
||||||
- entity: camera.living_room
|
- entity: camera.living_room
|
||||||
@ -329,7 +329,7 @@ A dashboard card with icons that will call the `action` service to send action c
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: motioneye.action
|
service: motioneye.action
|
||||||
service_data:
|
data:
|
||||||
action: up
|
action: up
|
||||||
entity_id: camera.living_room
|
entity_id: camera.living_room
|
||||||
- entity: camera.living_room
|
- entity: camera.living_room
|
||||||
@ -337,7 +337,7 @@ A dashboard card with icons that will call the `action` service to send action c
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: motioneye.action
|
service: motioneye.action
|
||||||
service_data:
|
data:
|
||||||
action: down
|
action: down
|
||||||
entity_id: camera.living_room
|
entity_id: camera.living_room
|
||||||
```
|
```
|
||||||
|
@ -146,7 +146,7 @@ script:
|
|||||||
alias: "Hdmi out projector"
|
alias: "Hdmi out projector"
|
||||||
sequence:
|
sequence:
|
||||||
- service: media_player.onkyo_select_hdmi_output
|
- service: media_player.onkyo_select_hdmi_output
|
||||||
service_data:
|
data:
|
||||||
entity_id: media_player.onkyo
|
entity_id: media_player.onkyo
|
||||||
hdmi_output: out-sub
|
hdmi_output: out-sub
|
||||||
```
|
```
|
||||||
|
@ -116,7 +116,7 @@ elements:
|
|||||||
- type: service-button
|
- type: service-button
|
||||||
title: ""
|
title: ""
|
||||||
service: remote.send_command
|
service: remote.send_command
|
||||||
service_data:
|
data:
|
||||||
entity_id: remote.xboxone_remote
|
entity_id: remote.xboxone_remote
|
||||||
command: Up
|
command: Up
|
||||||
style:
|
style:
|
||||||
@ -128,7 +128,7 @@ elements:
|
|||||||
- type: service-button
|
- type: service-button
|
||||||
title: ""
|
title: ""
|
||||||
service: remote.send_command
|
service: remote.send_command
|
||||||
service_data:
|
data:
|
||||||
entity_id: remote.xboxone_remote
|
entity_id: remote.xboxone_remote
|
||||||
command: Down
|
command: Down
|
||||||
style:
|
style:
|
||||||
@ -140,7 +140,7 @@ elements:
|
|||||||
- type: service-button
|
- type: service-button
|
||||||
title: ""
|
title: ""
|
||||||
service: remote.send_command
|
service: remote.send_command
|
||||||
service_data:
|
data:
|
||||||
entity_id: remote.xboxone_remote
|
entity_id: remote.xboxone_remote
|
||||||
command: Left
|
command: Left
|
||||||
style:
|
style:
|
||||||
@ -152,7 +152,7 @@ elements:
|
|||||||
- type: service-button
|
- type: service-button
|
||||||
title: ""
|
title: ""
|
||||||
service: remote.send_command
|
service: remote.send_command
|
||||||
service_data:
|
data:
|
||||||
entity_id: remote.xboxone_remote
|
entity_id: remote.xboxone_remote
|
||||||
command: Right
|
command: Right
|
||||||
style:
|
style:
|
||||||
@ -164,7 +164,7 @@ elements:
|
|||||||
- type: service-button
|
- type: service-button
|
||||||
title: ""
|
title: ""
|
||||||
service: remote.send_command
|
service: remote.send_command
|
||||||
service_data:
|
data:
|
||||||
entity_id: remote.xboxone_remote
|
entity_id: remote.xboxone_remote
|
||||||
command: "A"
|
command: "A"
|
||||||
style:
|
style:
|
||||||
@ -177,7 +177,7 @@ elements:
|
|||||||
- type: service-button
|
- type: service-button
|
||||||
title: ""
|
title: ""
|
||||||
service: remote.send_command
|
service: remote.send_command
|
||||||
service_data:
|
data:
|
||||||
entity_id: remote.xboxone_remote
|
entity_id: remote.xboxone_remote
|
||||||
command: "X"
|
command: "X"
|
||||||
style:
|
style:
|
||||||
@ -190,7 +190,7 @@ elements:
|
|||||||
- type: service-button
|
- type: service-button
|
||||||
title: ""
|
title: ""
|
||||||
service: remote.send_command
|
service: remote.send_command
|
||||||
service_data:
|
data:
|
||||||
entity_id: remote.xboxone_remote
|
entity_id: remote.xboxone_remote
|
||||||
command: "B"
|
command: "B"
|
||||||
style:
|
style:
|
||||||
@ -203,7 +203,7 @@ elements:
|
|||||||
- type: service-button
|
- type: service-button
|
||||||
title: ""
|
title: ""
|
||||||
service: remote.send_command
|
service: remote.send_command
|
||||||
service_data:
|
data:
|
||||||
entity_id: remote.xboxone_remote
|
entity_id: remote.xboxone_remote
|
||||||
command: "Y"
|
command: "Y"
|
||||||
style:
|
style:
|
||||||
@ -216,7 +216,7 @@ elements:
|
|||||||
- type: service-button
|
- type: service-button
|
||||||
title: ""
|
title: ""
|
||||||
service: remote.toggle
|
service: remote.toggle
|
||||||
service_data:
|
data:
|
||||||
entity_id: remote.xboxone_remote
|
entity_id: remote.xboxone_remote
|
||||||
style:
|
style:
|
||||||
top: 80.2%
|
top: 80.2%
|
||||||
@ -228,7 +228,7 @@ elements:
|
|||||||
- type: service-button
|
- type: service-button
|
||||||
title: ""
|
title: ""
|
||||||
service: media_player.play_media
|
service: media_player.play_media
|
||||||
service_data:
|
data:
|
||||||
entity_id: media_player.xboxone
|
entity_id: media_player.xboxone
|
||||||
media_content_type: ""
|
media_content_type: ""
|
||||||
media_content_id: "Home"
|
media_content_id: "Home"
|
||||||
|
@ -1142,7 +1142,7 @@ type: entity-button
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: remote.send_command
|
service: remote.send_command
|
||||||
service_data:
|
data:
|
||||||
command: activate_towel_heater
|
command: activate_towel_heater
|
||||||
entity_id: remote.xiaomi_miio_ir
|
entity_id: remote.xiaomi_miio_ir
|
||||||
hold_action:
|
hold_action:
|
||||||
|
@ -51,7 +51,7 @@ tap_action:
|
|||||||
description: "Service to call (e.g., `media_player.media_play_pause`) when `action` defined as `call-service`"
|
description: "Service to call (e.g., `media_player.media_play_pause`) when `action` defined as `call-service`"
|
||||||
type: string
|
type: string
|
||||||
default: none
|
default: none
|
||||||
service_data:
|
data:
|
||||||
required: false
|
required: false
|
||||||
description: "Service data to include (e.g., `entity_id: media_player.bedroom`) when `action` defined as `call-service`"
|
description: "Service data to include (e.g., `entity_id: media_player.bedroom`) when `action` defined as `call-service`"
|
||||||
type: string
|
type: string
|
||||||
@ -98,7 +98,7 @@ hold_action:
|
|||||||
description: "Service to call (e.g., `media_player.media_play_pause`) when `action` defined as `call-service`"
|
description: "Service to call (e.g., `media_player.media_play_pause`) when `action` defined as `call-service`"
|
||||||
type: string
|
type: string
|
||||||
default: none
|
default: none
|
||||||
service_data:
|
data:
|
||||||
required: false
|
required: false
|
||||||
description: "Service data to include (e.g., `entity_id: media_player.bedroom`) when `action` defined as `call-service`"
|
description: "Service data to include (e.g., `entity_id: media_player.bedroom`) when `action` defined as `call-service`"
|
||||||
type: string
|
type: string
|
||||||
@ -145,7 +145,7 @@ double_tap_action:
|
|||||||
description: "Service to call (e.g., `media_player.media_play_pause`) when `action` defined as `call-service`"
|
description: "Service to call (e.g., `media_player.media_play_pause`) when `action` defined as `call-service`"
|
||||||
type: string
|
type: string
|
||||||
default: none
|
default: none
|
||||||
service_data:
|
data:
|
||||||
required: false
|
required: false
|
||||||
description: "Service data to include (e.g., `entity_id: media_player.bedroom`) when `action` defined as `call-service`"
|
description: "Service data to include (e.g., `entity_id: media_player.bedroom`) when `action` defined as `call-service`"
|
||||||
type: string
|
type: string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user