Beginnings of Apple Watch integration

Seeing what I can do with ios.event_fired from the Apple Watch.
This commit is contained in:
2022-01-03 19:44:43 -05:00
parent a15b40f368
commit 22ba8a65f5
2 changed files with 37 additions and 4 deletions

View File

@ -180,6 +180,10 @@
entity_id: group.family entity_id: group.family
from: not_home from: not_home
to: home to: home
- platform: event
event_type: ios.action_fired
event_data:
actionName: We Are Home
condition: [] condition: []
action: action:
- service: script.family_is_home - service: script.family_is_home
@ -192,6 +196,10 @@
entity_id: group.family entity_id: group.family
from: home from: home
to: not_home to: not_home
- platform: event
event_type: ios.action_fired
event_data:
actionName: We Are Leaving
condition: condition:
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
@ -199,3 +207,28 @@
action: action:
- service: script.family_is_away - service: script.family_is_away
mode: single 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

View File

@ -188,11 +188,11 @@ family_is_home:
entity_id: binary_sensor.night entity_id: binary_sensor.night
state: 'on' state: 'on'
- service: light.turn_on - service: light.turn_on
target:
area_id:
- living_room
- mud_room
data: {} data: {}
target:
entity_id:
- light.living_room_lights
- light.mud_room_overhead
- service: light.turn_off - service: light.turn_off
target: target:
area_id: area_id: