2021-11-24 23:37:14 +00:00
|
|
|
- id: ra-bathroom-enter
|
|
|
|
alias: '[Bathroom]|(RA) Enter'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.przemyslaws_apple_watch_room_presence
|
|
|
|
to: ra-bathroom
|
|
|
|
action:
|
2022-04-15 22:58:46 +00:00
|
|
|
- service: notify.mobile_app_iphone_pg
|
2021-11-24 23:37:14 +00:00
|
|
|
data:
|
|
|
|
message: Apple Watch enter bathroom
|
|
|
|
|
|
|
|
- id: ra-bathroom-exit
|
|
|
|
alias: '[Bathroom]|(RA) Leave'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.przemyslaws_apple_watch_room_presence
|
|
|
|
from: ra-bathroom
|
|
|
|
action:
|
2022-04-15 22:58:46 +00:00
|
|
|
- service: notify.mobile_app_iphone_pg
|
2021-11-24 23:37:14 +00:00
|
|
|
data:
|
|
|
|
message: Apple Watch left bathroom
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: media_player.bathroom
|
|
|
|
state: playing
|
|
|
|
sequence:
|
|
|
|
- service: media_player.media_pause
|
|
|
|
target:
|
|
|
|
entity_id: media_player.bathroom
|
|
|
|
|
|
|
|
- id: ra-bedroom-enter
|
|
|
|
alias: '[Bedroom]|(RA) Enter'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.przemyslaws_apple_watch_room_presence
|
|
|
|
to: ra-bedroom
|
|
|
|
action:
|
2022-04-15 22:58:46 +00:00
|
|
|
- service: notify.mobile_app_iphone_pg
|
2021-11-24 23:37:14 +00:00
|
|
|
data:
|
|
|
|
message: Apple Watch enter bathroom
|
|
|
|
|
|
|
|
- id: ra-bedroom-exit
|
|
|
|
alias: '[Bedroom]|(RA) Leave'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.przemyslaws_apple_watch_room_presence
|
|
|
|
from: ra-bedroom
|
|
|
|
action:
|
2022-04-15 22:58:46 +00:00
|
|
|
- service: notify.mobile_app_iphone_pg
|
2021-11-24 23:37:14 +00:00
|
|
|
data:
|
|
|
|
message: Apple Watch left bedroom
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: media_player.bedroom
|
|
|
|
state: playing
|
|
|
|
sequence:
|
|
|
|
- service: media_player.media_pause
|
|
|
|
target:
|
|
|
|
entity_id: media_player.bathroom
|
|
|
|
|
|
|
|
- id: ra-home-leave
|
|
|
|
alias: '[Bedroom]|(RA) Enter'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.przemyslaws_apple_watch_room_presence
|
|
|
|
to: not_home
|
|
|
|
action:
|
2022-04-15 22:58:46 +00:00
|
|
|
- service: notify.mobile_app_iphone_pg
|
2021-11-24 23:37:14 +00:00
|
|
|
data:
|
|
|
|
message: Apple Watch left home
|