mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Update examples for deprecated service call config
This commit is contained in:
parent
0f229bd7e6
commit
af0d154398
@ -47,18 +47,18 @@ The `script.foscam_off` and `script.foscam_on` can be used to set the motion det
|
|||||||
script:
|
script:
|
||||||
foscam_off:
|
foscam_off:
|
||||||
sequence:
|
sequence:
|
||||||
- execute_service: switch.turn_off
|
- service: switch.turn_off
|
||||||
service_data:
|
data:
|
||||||
entity_id: switch.foscam_motion
|
entity_id: switch.foscam_motion
|
||||||
- service: shell_command.foscam_turn_off
|
- service: shell_command.foscam_turn_off
|
||||||
foscam_on:
|
foscam_on:
|
||||||
sequence:
|
sequence:
|
||||||
- execute_service: switch.turn_off
|
- service: switch.turn_off
|
||||||
service_data:
|
data:
|
||||||
entity_id: switch.foscam_motion
|
entity_id: switch.foscam_motion
|
||||||
- service: shell_command.foscam_turn_on
|
- service: shell_command.foscam_turn_on
|
||||||
- execute_service: switch.turn_on
|
- service: switch.turn_on
|
||||||
service_data:
|
data:
|
||||||
entity_id: switch.foscam_motion
|
entity_id: switch.foscam_motion
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -53,11 +53,11 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- delay:
|
- delay:
|
||||||
minutes: 15
|
minutes: 15
|
||||||
- execute_service: notify.pushbullet
|
- service: notify.pushbullet
|
||||||
service_data:
|
data:
|
||||||
message: 'WeMo not found, restarting HA'
|
message: 'WeMo not found, restarting HA'
|
||||||
- execute_service: switch.turn_on
|
- service: switch.turn_on
|
||||||
service_data:
|
data:
|
||||||
entity_id: switch.killhass
|
entity_id: switch.killhass
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
|
@ -30,15 +30,15 @@ script:
|
|||||||
alias: "Turn on lamp and set timer"
|
alias: "Turn on lamp and set timer"
|
||||||
sequence:
|
sequence:
|
||||||
# Cancel ev. old timers
|
# Cancel ev. old timers
|
||||||
- execute_service: script.turn_off
|
- service: script.turn_off
|
||||||
service_data:
|
data:
|
||||||
entity_id: script.timer_off
|
entity_id: script.timer_off
|
||||||
- execute_service: light.turn_on
|
- service: light.turn_on
|
||||||
service_data:
|
data:
|
||||||
entity_id: light.kitchen
|
entity_id: light.kitchen
|
||||||
# Set new timer
|
# Set new timer
|
||||||
- execute_service: script.turn_on
|
- service: script.turn_on
|
||||||
service_data:
|
data:
|
||||||
entity_id: script.timer_off
|
entity_id: script.timer_off
|
||||||
|
|
||||||
timer_off:
|
timer_off:
|
||||||
@ -46,7 +46,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- delay:
|
- delay:
|
||||||
minutes: 10
|
minutes: 10
|
||||||
- execute_service: light.turn_off
|
- service: light.turn_off
|
||||||
service_data:
|
data:
|
||||||
entity_id: light.kitchen
|
entity_id: light.kitchen
|
||||||
```
|
```
|
||||||
|
@ -55,6 +55,10 @@ Materials used:
|
|||||||
|
|
||||||
Home Assistant Configuration:
|
Home Assistant Configuration:
|
||||||
|
|
||||||
|
<p class='note'>
|
||||||
|
The automation and script syntax here is using a deprecated and no longer supported format.
|
||||||
|
</p>
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
mqtt:
|
mqtt:
|
||||||
broker: 192.168.1.100
|
broker: 192.168.1.100
|
||||||
|
Loading…
x
Reference in New Issue
Block a user