diff --git a/automations.yaml b/automations.yaml index a93e0da..f18ee65 100644 --- a/automations.yaml +++ b/automations.yaml @@ -180,6 +180,10 @@ entity_id: group.family from: not_home to: home + - platform: event + event_type: ios.action_fired + event_data: + actionName: We Are Home condition: [] action: - service: script.family_is_home @@ -192,6 +196,10 @@ entity_id: group.family from: home to: not_home + - platform: event + event_type: ios.action_fired + event_data: + actionName: We Are Leaving condition: - condition: state entity_id: input_boolean.guest_mode @@ -199,3 +207,28 @@ action: - service: script.family_is_away mode: single +- id: '1641255231416' + alias: Goodnight + description: '' + trigger: + - platform: event + event_type: ios.action_fired + event_data: + actionName: Goodnight + context: {} + condition: [] + action: + - service: script.goodnight + mode: single +- id: '1641255482975' + alias: Give Me Darkness + description: '' + trigger: + - platform: event + event_type: ios.action_fired + event_data: + actionName: Give Me Darkness + condition: [] + action: + - service: script.give_me_darkness + mode: single diff --git a/scripts.yaml b/scripts.yaml index d13b36d..3c4598c 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -188,11 +188,11 @@ family_is_home: entity_id: binary_sensor.night state: 'on' - service: light.turn_on - target: - area_id: - - living_room - - mud_room data: {} + target: + entity_id: + - light.living_room_lights + - light.mud_room_overhead - service: light.turn_off target: area_id: