Beginnings of Apple Watch integration
Seeing what I can do with ios.event_fired from the Apple Watch.
This commit is contained in:
@ -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
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user