Skip to content

Commit

Permalink
Replace platform: event with trigger: event
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Oct 16, 2024
1 parent 0b4218f commit 2342d93
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions automations/adaptive_lighting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
mode: parallel
max: 200
triggers:
- platform: event
- trigger: event
event_type: adaptive_lighting.manual_control
variables:
light: "{{ trigger.event.data.entity_id }}"
Expand All @@ -77,7 +77,7 @@
mode: parallel
max: 20
triggers:
- platform: event
- trigger: event
event_type: adaptive_lighting.manual_control
variables:
light: "{{ trigger.event.data.entity_id }}"
Expand Down
62 changes: 31 additions & 31 deletions automations/apple_watch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@
- action: SLEEP_TOTAL
title: Total
- wait_for_trigger:
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SLEEP_OFF
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SLEEP_HALF
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SLEEP_TOTAL
Expand Down Expand Up @@ -121,31 +121,31 @@
- action: SET_LIGHTS_KITCHEN
title: Kitchen
- wait_for_trigger:
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_ALL
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_BEDROOM
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_LIVING_ROOM
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_BATHROOM
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_HALL
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_TOILET
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_KITCHEN
Expand Down Expand Up @@ -182,31 +182,31 @@
- action: LIGHTS_COZY
title: Cozy lights
- wait_for_trigger:
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_OFF
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_ON
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_FIFTY
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_HUNDRED
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_ONE
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_WHITE
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_COZY
Expand Down Expand Up @@ -322,31 +322,31 @@
- action: VACUUM_STOP
title: Stop and return
- wait_for_trigger:
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_LIVING_ROOM
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_BEDROOM
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_OFFICE
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_HALL
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_KITCHEN
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_ALL
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_STOP
Expand Down Expand Up @@ -420,31 +420,31 @@
- action: T21
title: "21"
- wait_for_trigger:
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T15
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T16
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T17
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T18
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T19
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T20
- platform: event
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T21
Expand Down
4 changes: 2 additions & 2 deletions automations/control_switches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,11 @@
- alias: "Control switches: bedroom Aqara Wireless Mini Switch"
mode: parallel
triggers:
- platform: event
- trigger: event
event_type: deconz_event
event_data:
id: smart_switch_bedroom_bas
- platform: event
- trigger: event
event_type: deconz_event
event_data:
id: smart_switch_bedroom_marcella
Expand Down
6 changes: 3 additions & 3 deletions automations/light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,15 @@
- trigger: state
entity_id: light.bedroom_lights
to: "off"
- platform: event
- trigger: event
event_type: deconz_event
event_data:
id: dimmer_switch_bedroom
- platform: event
- trigger: event
event_type: deconz_event
event_data:
id: smart_switch_bedroom_bas
- platform: event
- trigger: event
event_type: deconz_event
event_data:
id: smart_switch_bedroom_marcella
Expand Down
8 changes: 4 additions & 4 deletions automations/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
mode: parallel
max: 100
triggers:
- platform: event
- trigger: event
event_type: call_service
event_data:
service: turn_on
domain: light
- platform: event
- trigger: event
event_type: state_changed
conditions: "{{ trigger.event.context.id.startswith('adapt_lgt') }}"
actions:
Expand Down Expand Up @@ -65,12 +65,12 @@
mode: parallel
max: 100
triggers:
- platform: event
- trigger: event
event_type: call_service
event_data:
service: turn_on
domain: light
- platform: event
- trigger: event
event_type: call_service
event_data:
service: turn_off
Expand Down

0 comments on commit 2342d93

Please sign in to comment.