From 863d50de3de008c2ab9be2fa3891c992d76d960b Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sat, 7 May 2022 10:09:43 +0300 Subject: [PATCH] New player 2 --- config/lovelace/hallway_dashboard/at_home_dashboard.yaml | 6 ++++++ .../lovelace/hallway_dashboard/coming_home_dashboard.yaml | 6 ++++++ config/lovelace/home_dashboard/bedroom_dashboard.yaml | 6 ++++++ config/lovelace/home_dashboard/preferences_dashboard.yaml | 6 ++++++ .../packages/modules/preferences/preferences_milena.yaml | 8 -------- config/packages/modules/presence.yaml | 2 +- 6 files changed, 25 insertions(+), 9 deletions(-) diff --git a/config/lovelace/hallway_dashboard/at_home_dashboard.yaml b/config/lovelace/hallway_dashboard/at_home_dashboard.yaml index f546053..7eb9dfd 100644 --- a/config/lovelace/hallway_dashboard/at_home_dashboard.yaml +++ b/config/lovelace/hallway_dashboard/at_home_dashboard.yaml @@ -31,6 +31,12 @@ card: styles: card: - background-image: url("/local/images/people/georgi.jpg") + - type: custom:button-card + template: v3_button_person + entity: input_boolean.player_2_home + styles: + card: + - background-image: url("/local/images/people/maya.jpg") # - type: custom:button-card # template: v3_button_person # entity: input_boolean.player_2_home diff --git a/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml b/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml index 6e9e6c0..a51063e 100644 --- a/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml +++ b/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml @@ -34,6 +34,12 @@ card: styles: card: - background-image: url("/local/images/people/georgi.jpg") + - type: custom:button-card + template: v3_button_person + entity: input_boolean.player_2_home + styles: + card: + - background-image: url("/local/images/people/maya.jpg") # - type: custom:button-card # template: v3_button_person # entity: input_boolean.player_2_home diff --git a/config/lovelace/home_dashboard/bedroom_dashboard.yaml b/config/lovelace/home_dashboard/bedroom_dashboard.yaml index 639070c..ced210e 100644 --- a/config/lovelace/home_dashboard/bedroom_dashboard.yaml +++ b/config/lovelace/home_dashboard/bedroom_dashboard.yaml @@ -34,6 +34,12 @@ styles: card: - background-image: url("/local/images/people/georgi.jpg") + - type: custom:button-card + template: v3_button_person + entity: input_boolean.player_2_home + styles: + card: + - background-image: url("/local/images/people/maya.jpg") - type: custom:button-card template: v3_badge_temp entity: sensor.bedroom_weather_temperature diff --git a/config/lovelace/home_dashboard/preferences_dashboard.yaml b/config/lovelace/home_dashboard/preferences_dashboard.yaml index 8972bbe..ff6798b 100644 --- a/config/lovelace/home_dashboard/preferences_dashboard.yaml +++ b/config/lovelace/home_dashboard/preferences_dashboard.yaml @@ -34,6 +34,12 @@ styles: card: - background-image: url("/local/images/people/georgi.jpg") + - type: custom:button-card + template: v3_button_person + entity: input_boolean.player_2_home + styles: + card: + - background-image: url("/local/images/people/maya.jpg") # - type: custom:button-card # template: v3_button_person # entity: input_boolean.player_2_home diff --git a/config/packages/modules/preferences/preferences_milena.yaml b/config/packages/modules/preferences/preferences_milena.yaml index f2e292f..fb4d68b 100644 --- a/config/packages/modules/preferences/preferences_milena.yaml +++ b/config/packages/modules/preferences/preferences_milena.yaml @@ -17,10 +17,6 @@ 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: @@ -44,10 +40,6 @@ automation: entity_id: device_tracker.iphone_de_yovcheva 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: diff --git a/config/packages/modules/presence.yaml b/config/packages/modules/presence.yaml index d2adb22..02ae228 100644 --- a/config/packages/modules/presence.yaml +++ b/config/packages/modules/presence.yaml @@ -13,7 +13,7 @@ person: - name: Player 2 id: !secret player_2_user_id device_trackers: - - device_tracker.iphone_de_yovcheva + - device_tracker.maya_phone_1 # https://www.home-assistant.io/integrations/device_tracker device_tracker: