mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-09 23:02:59 +00:00
Remove binary sensors for presence
This commit is contained in:
@@ -17,6 +17,10 @@ automation:
|
||||
entity_id: device_tracker.iphone_de_yovcheva
|
||||
from: "not_home"
|
||||
to: "home"
|
||||
- platform: state
|
||||
entity_id: input_boolean.player_2_home
|
||||
from: "off"
|
||||
to: "on"
|
||||
action:
|
||||
- service: automation.turn_off
|
||||
entity_id:
|
||||
@@ -38,8 +42,12 @@ automation:
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: device_tracker.iphone_de_yovcheva
|
||||
from: "home "
|
||||
from: "home"
|
||||
to: "not_home"
|
||||
- platform: state
|
||||
entity_id: input_boolean.player_2_home
|
||||
from: "on"
|
||||
to: "off"
|
||||
action:
|
||||
- service: automation.turn_on
|
||||
entity_id:
|
||||
|
||||
@@ -9,6 +9,7 @@ person:
|
||||
user_id: !secret georgi_user_id
|
||||
device_trackers:
|
||||
- device_tracker.carbon
|
||||
|
||||
- name: Player 2
|
||||
id: !secret player_2_user_id
|
||||
device_trackers:
|
||||
@@ -48,24 +49,6 @@ input_boolean:
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
georgi_home:
|
||||
friendly_name: Georgi
|
||||
device_class: presence
|
||||
value_template: "{{ is_state('input_boolean.georgi_home', 'on') }}"
|
||||
icon_template: >
|
||||
{% if is_state('input_boolean.georgi_home', 'on') %} mdi:account
|
||||
{% else %} mdi:account-off-outline
|
||||
{% endif %}
|
||||
|
||||
player_2_home:
|
||||
friendly_name: Player 2
|
||||
device_class: presence
|
||||
value_template: "{{ is_state('input_boolean.player_2_home', 'on') }}"
|
||||
icon_template: >
|
||||
{% if is_state('input_boolean.player_2_home', 'on') %} mdi:account
|
||||
{% else %} mdi:account-off-outline
|
||||
{% endif %}
|
||||
|
||||
someone_home:
|
||||
friendly_name: Someone home
|
||||
device_class: presence
|
||||
|
||||
Reference in New Issue
Block a user