Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/_components/alarm_control_panel.manual.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ automation:
trigger:
- platform: state
entity_id: sensor.pir1
state: 'active'
to: 'active'
- platform: state
entity_id: sensor.pir2
state: 'active'
to: 'active'
- platform: state
entity_id: sensor.door
state: 'open'
to: 'open'
- platform: state
entity_id: sensor.window
state: 'open'
to: 'open'
condition:
- condition: state
entity_id: alarm_control_panel.ha_alarm
Expand Down
8 changes: 4 additions & 4 deletions source/_components/ifttt.manything.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ automation:
trigger:
- platform: state
entity_id: group.all_devices
state: 'not_home'
to: 'not_home'
condition:
- platform: state
entity_id: sun.sun
state: 'above_horizon'
state: 'above_horizon'
action:
service: ifttt.trigger
data: {"event":"manything_on"}

- alias: 'ManyThing Recording OFF'
# This calls an IFTTT recipe to turn off recording of the ManyThing Camera
# when we are home unless it's nighttime.
# when we get home unless it's nighttime.
trigger:
- platform: state
entity_id: group.all_devices
state: 'home'
to: 'home'
condition:
- condition: state
entity_id: sun.sun
Expand Down
2 changes: 0 additions & 2 deletions source/_components/media_player.frontier_silicon.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ alias: "Bathroom Motion Detected"
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_166d0001171111

from: 'off'
to: 'on'
state: 'on'
action:
service: media_player.turn_on
data:
Expand Down
2 changes: 1 addition & 1 deletion source/_components/notify.webostv.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ automation:
trigger:
platform: state
entity_id: binary_sensor.front_door_motion
state: 'on'
to: 'on'
action:
service: notify.livingroom_tv
data:
Expand Down
6 changes: 3 additions & 3 deletions source/_components/sensor.modem_callerid.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Some example automations:
trigger:
platform: state
entity_id: sensor.modem_callerid
state: "callerid"
to: "callerid"
action:
service: notify.notify
data:
Expand All @@ -54,7 +54,7 @@ Some example automations:
trigger:
platform: state
entity_id: sensor.modem_callerid
state: "callerid"
to: "callerid"
action:
service: persistent_notification.create
data:
Expand All @@ -64,7 +64,7 @@ Some example automations:
trigger:
platform: state
entity_id: sensor.modem_callerid
state: "callerid"
to: "callerid"
action:
service: tts.google_say
data_template:
Expand Down
8 changes: 4 additions & 4 deletions source/_cookbook/automation_flashing_lights.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ automation:
trigger:
platform: state
entity_id: binary_sensor.PIR1
state: 'on'
to: 'on'
condition:
- condition: state
entity_id: switch.AlmAct1
Expand All @@ -41,7 +41,7 @@ automation:
trigger:
platform: state
entity_id: switch.AlmSnd1
state: 'on'
to: 'on'
action:
service: script.turn_on
entity_id: script.flash_room1
Expand All @@ -50,11 +50,11 @@ automation:
trigger:
platform: state
entity_id: switch.REL1
state: 'off'
to: 'off'
condition:
condition: state
entity_id: switch.AlmSnd1
state: 'off'
to: 'off'
action:
service: script.turn_off
entity_id: script.flash_room1
Expand Down
4 changes: 2 additions & 2 deletions source/_cookbook/automation_for_rainy_days.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ automation:
trigger:
- platform: state
entity_id: sensor.precip_intensity
state: 'rain'
to: 'rain'
condition:
- platform: state
entity_id: group.all_devices
Expand All @@ -40,7 +40,7 @@ And then of course turn off the lamp when it stops raining but only if it's with
trigger:
- platform: state
entity_id: sensor.precip_intensity
state: 'None'
to: 'None'
condition:
- condition: sun
after: 'sunset'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ automation:
trigger:
- platform: state
entity_id: switch.KillHass
state: 'on'
to: 'on'
action:
service: homeassistant.stop
- alias: 'Stop restarting HA is WeMo is found'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ automation:
trigger:
platform: state
entity_id: sensor.motion_sensor
state: 'on'
to: 'on'
action:
service: homeassistant.turn_on
entity_id: light.kitchen
Expand All @@ -29,7 +29,7 @@ automation:
trigger:
platform: state
entity_id: sensor.motion_sensor
state: 'off'
to: 'off'
for:
minutes: 10
action:
Expand Down
4 changes: 2 additions & 2 deletions source/_docs/automation/examples.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ automation:
offset: '-01:00:00'
- platform: state
entity_id: group.all_devices
state: 'home'
to: 'home'
condition:
# Prefix the first line of each condition configuration
# with a '-'' to enter multiple
Expand All @@ -45,7 +45,7 @@ automation:
trigger:
platform: state
entity_id: group.all_devices
state: 'not_home'
to: 'not_home'
action:
service: light.turn_off
entity_id: group.all_lights
Expand Down