Skip to content

Commit 567dbfe

Browse files
committed
Remove deprecated YAML proximity configuration
1 parent 683492d commit 567dbfe

File tree

6 files changed

+5
-29
lines changed

6 files changed

+5
-29
lines changed

automations/climate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
- alias: "Climate: turn on the heating when going home"
2727
triggers:
2828
trigger: numeric_state
29-
entity_id: proximity.home
29+
entity_id: sensor.home_nearest_distance
3030
below: 6
3131
above: 1
3232
conditions:
@@ -36,7 +36,7 @@
3636
- condition: time
3737
after: "16:00:00"
3838
before: "22:00:00"
39-
- "{{ is_state_attr('proximity.home', 'dir_of_travel', 'towards') }}"
39+
- "{{ is_state('sensor.home_nearest_direction_of_travel', 'towards') }}"
4040
- "{{ not is_state_attr('climate.thermostat', 'temperature', states('input_number.temperature_high')) }}"
4141
- condition: state
4242
entity_id: binary_sensor.no_one_home

automations/music.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
- "{{ is_state('media_player.spotify', 'playing') }}"
4141
- "{{ as_timestamp(now()) - as_timestamp(states.person.bas.last_changed) < 5 * 60 }}" # recently got home
4242
- condition: numeric_state
43-
entity_id: proximity.home
43+
entity_id: sensor.home_nearest_distance
4444
below: 2
4545
actions:
4646
- action: media_player.turn_on

configuration.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ shell_command: !include includes/shell_commands.yaml
4444
notify: !include includes/notify.yaml
4545
light: !include includes/lights.yaml
4646
wake_on_lan:
47-
proximity: !include includes/proximity.yaml
4847
timer: !include includes/timers.yaml
4948
ios: !include includes/ios.yaml
5049
homekit: !include includes/homekit.yaml

includes/notify.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,3 @@
3939
- service: mobile_app_marcella_iphone_14_pro
4040
- service: tv
4141
- service: chrome
42-
43-
- platform: html5
44-
name: chrome
45-
vapid_pub_key: !secret firebase_public_key
46-
vapid_prv_key: !secret firebase_private_key
47-
vapid_email: !secret firebase_service_account

includes/proximity.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

includes/sensors.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
favorite_playlist_of_nearest_person:
7676
value_template: >
77-
{% if is_state_attr("proximity.home", "nearest", "basnijholt-iphone") %}
77+
{% if is_state_attr("sensor.home_nearest_device", "Bas") %}
7878
6rPTm9dYftKcFAfwyRqmDZ
7979
{% else %}
8080
6rPTm9dYftKcFAfwyRqmDZ
@@ -224,7 +224,7 @@
224224
value_template: >
225225
{% if is_state("person.bas", "home") and is_state("person.marcella", "home") %}
226226
notify.all_iphones
227-
{% elif is_state_attr("proximity.home", "nearest", "basnijholt-iphone") %}
227+
{% elif is_state_attr("sensor.home_nearest_device", "Bas") %}
228228
notify.iphone_bas
229229
{% else %}
230230
notify.mobile_app_marcella_iphone

0 commit comments

Comments
 (0)