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 852267b commit a6a93d6
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
24 changes: 12 additions & 12 deletions automations/apple_watch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#- from github.com/basnijholt/home-assistant-config
- alias: "Apple Watch: Play or Pause the TV"
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Play TV
Expand All @@ -26,7 +26,7 @@
- alias: "Apple Watch: minimal lights bedroom"
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Minimal lights bedroom
Expand All @@ -41,7 +41,7 @@

- alias: "Apple Watch: fix TV sound"
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Fix TV sound
Expand All @@ -51,7 +51,7 @@
- alias: "Apple Watch: set sleep mode"
mode: parallel
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Set sleep mode
Expand Down Expand Up @@ -94,7 +94,7 @@
- alias: "Apple Watch: set lights"
mode: parallel
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Set lights
Expand Down Expand Up @@ -259,7 +259,7 @@
- alias: "Apple Watch: temperature report"
mode: parallel
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Temperature report
Expand All @@ -279,7 +279,7 @@
- alias: "Apple Watch: portfolio value"
mode: parallel
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Portfolio value
Expand All @@ -295,7 +295,7 @@
- alias: "Apple Watch: send vacuum cleaner"
mode: parallel
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Vacuum
Expand Down Expand Up @@ -360,7 +360,7 @@

- alias: "Apple Watch: movie time"
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Movie time
Expand All @@ -383,7 +383,7 @@

- alias: "Apple Watch: reset adaptive lighting"
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Reset adaptive lighting
Expand All @@ -393,7 +393,7 @@
- alias: "Apple Watch: set temperature"
mode: parallel
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Set temperature
Expand Down Expand Up @@ -460,7 +460,7 @@
- alias: "Apple Watch: where is other person?"
mode: parallel
triggers:
platform: event
trigger: event
event_type: ios.action_fired
event_data:
actionName: Where is
Expand Down
2 changes: 1 addition & 1 deletion automations/climate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
authenticationRequired: true
destructive: true
- wait_for_trigger:
platform: event
trigger: event
event_type: mobile_app_notification_action
event_data:
actions: TURN_ON_HEATING
Expand Down
6 changes: 3 additions & 3 deletions automations/control_switches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
- alias: "Control switches: living room Aqara Wireless Mini Switch"
mode: parallel
triggers:
platform: event
trigger: event
event_type: deconz_event
event_data:
id: smart_switch_living_room
Expand Down Expand Up @@ -395,7 +395,7 @@
- alias: "Control switches: bathroom Aqara Wireless Mini Switch"
mode: parallel
triggers:
platform: event
trigger: event
event_type: deconz_event
event_data:
id: smart_switch_bathroom
Expand All @@ -418,7 +418,7 @@
- alias: "Control switches: door Aqara Wireless Mini Switch"
mode: parallel
triggers:
platform: event
trigger: event
event_type: deconz_event
event_data:
id: smart_switch_door
Expand Down
4 changes: 2 additions & 2 deletions automations/cube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- alias: "Cube: perform operation"
mode: parallel
triggers:
platform: event
trigger: event
event_type: deconz_event
event_data:
id: mi_magic_cube
Expand Down Expand Up @@ -73,7 +73,7 @@

- alias: "Cube: rotate the cube"
triggers:
platform: event
trigger: event
event_type: deconz_event
event_data:
id: mi_magic_cube
Expand Down
2 changes: 1 addition & 1 deletion automations/doorbell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- alias: "Doorbell: click the button"
initial_state: "on"
triggers:
platform: event
trigger: event
event_type: deconz_event
event_data:
id: smart_switch_doorbell
Expand Down
4 changes: 2 additions & 2 deletions automations/leaving.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

- alias: "Leaving: turn off everything after notification"
triggers:
platform: event
trigger: event
event_type: mobile_app_notification_action
event_data:
actions: TURN_OFF_EVERYTHING
Expand All @@ -83,7 +83,7 @@

- alias: "Leaving: downstairs Aqara Wireless Mini Switch"
triggers:
platform: event
trigger: event
event_type: deconz_event
event_data:
id: smart_switch_door
Expand Down
2 changes: 1 addition & 1 deletion automations/notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
authenticationRequired: true
destructive: true
- wait_for_trigger:
platform: event
trigger: event
event_type: mobile_app_notification_action
event_data:
actions: "AGREE_WORD"
Expand Down
2 changes: 1 addition & 1 deletion automations/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
authenticationRequired: true
destructive: true
- wait_for_trigger:
platform: event
trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SOUND_ALARM
Expand Down

0 comments on commit a6a93d6

Please sign in to comment.