Skip to content

Commit

Permalink
Remove deprecated YAML proximity configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Oct 17, 2024
1 parent 683492d commit 567dbfe
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 29 deletions.
4 changes: 2 additions & 2 deletions automations/climate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
- alias: "Climate: turn on the heating when going home"
triggers:
trigger: numeric_state
entity_id: proximity.home
entity_id: sensor.home_nearest_distance
below: 6
above: 1
conditions:
Expand All @@ -36,7 +36,7 @@
- condition: time
after: "16:00:00"
before: "22:00:00"
- "{{ is_state_attr('proximity.home', 'dir_of_travel', 'towards') }}"
- "{{ is_state('sensor.home_nearest_direction_of_travel', 'towards') }}"
- "{{ not is_state_attr('climate.thermostat', 'temperature', states('input_number.temperature_high')) }}"
- condition: state
entity_id: binary_sensor.no_one_home
Expand Down
2 changes: 1 addition & 1 deletion automations/music.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
- "{{ is_state('media_player.spotify', 'playing') }}"
- "{{ as_timestamp(now()) - as_timestamp(states.person.bas.last_changed) < 5 * 60 }}" # recently got home
- condition: numeric_state
entity_id: proximity.home
entity_id: sensor.home_nearest_distance
below: 2
actions:
- action: media_player.turn_on
Expand Down
1 change: 0 additions & 1 deletion configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ shell_command: !include includes/shell_commands.yaml
notify: !include includes/notify.yaml
light: !include includes/lights.yaml
wake_on_lan:
proximity: !include includes/proximity.yaml
timer: !include includes/timers.yaml
ios: !include includes/ios.yaml
homekit: !include includes/homekit.yaml
Expand Down
6 changes: 0 additions & 6 deletions includes/notify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,3 @@
- service: mobile_app_marcella_iphone_14_pro
- service: tv
- service: chrome

- platform: html5
name: chrome
vapid_pub_key: !secret firebase_public_key
vapid_prv_key: !secret firebase_private_key
vapid_email: !secret firebase_service_account
17 changes: 0 additions & 17 deletions includes/proximity.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions includes/sensors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

favorite_playlist_of_nearest_person:
value_template: >
{% if is_state_attr("proximity.home", "nearest", "basnijholt-iphone") %}
{% if is_state_attr("sensor.home_nearest_device", "Bas") %}
6rPTm9dYftKcFAfwyRqmDZ
{% else %}
6rPTm9dYftKcFAfwyRqmDZ
Expand Down Expand Up @@ -224,7 +224,7 @@
value_template: >
{% if is_state("person.bas", "home") and is_state("person.marcella", "home") %}
notify.all_iphones
{% elif is_state_attr("proximity.home", "nearest", "basnijholt-iphone") %}
{% elif is_state_attr("sensor.home_nearest_device", "Bas") %}
notify.iphone_bas
{% else %}
notify.mobile_app_marcella_iphone
Expand Down

0 comments on commit 567dbfe

Please sign in to comment.