New player 2

This commit is contained in:
2022-05-07 10:09:43 +03:00
parent a031af58f5
commit 863d50de3d
6 changed files with 25 additions and 9 deletions
@@ -31,6 +31,12 @@ card:
styles: styles:
card: card:
- background-image: url("/local/images/people/georgi.jpg") - 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 # - type: custom:button-card
# template: v3_button_person # template: v3_button_person
# entity: input_boolean.player_2_home # entity: input_boolean.player_2_home
@@ -34,6 +34,12 @@ card:
styles: styles:
card: card:
- background-image: url("/local/images/people/georgi.jpg") - 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 # - type: custom:button-card
# template: v3_button_person # template: v3_button_person
# entity: input_boolean.player_2_home # entity: input_boolean.player_2_home
@@ -34,6 +34,12 @@
styles: styles:
card: card:
- background-image: url("/local/images/people/georgi.jpg") - 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 - type: custom:button-card
template: v3_badge_temp template: v3_badge_temp
entity: sensor.bedroom_weather_temperature entity: sensor.bedroom_weather_temperature
@@ -34,6 +34,12 @@
styles: styles:
card: card:
- background-image: url("/local/images/people/georgi.jpg") - 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 # - type: custom:button-card
# template: v3_button_person # template: v3_button_person
# entity: input_boolean.player_2_home # entity: input_boolean.player_2_home
@@ -17,10 +17,6 @@ automation:
entity_id: device_tracker.iphone_de_yovcheva entity_id: device_tracker.iphone_de_yovcheva
from: "not_home" from: "not_home"
to: "home" to: "home"
- platform: state
entity_id: input_boolean.player_2_home
from: "off"
to: "on"
action: action:
- service: automation.turn_off - service: automation.turn_off
entity_id: entity_id:
@@ -44,10 +40,6 @@ automation:
entity_id: device_tracker.iphone_de_yovcheva entity_id: device_tracker.iphone_de_yovcheva
from: "home" from: "home"
to: "not_home" to: "not_home"
- platform: state
entity_id: input_boolean.player_2_home
from: "on"
to: "off"
action: action:
- service: automation.turn_on - service: automation.turn_on
entity_id: entity_id:
+1 -1
View File
@@ -13,7 +13,7 @@ person:
- name: Player 2 - name: Player 2
id: !secret player_2_user_id id: !secret player_2_user_id
device_trackers: device_trackers:
- device_tracker.iphone_de_yovcheva - device_tracker.maya_phone_1
# https://www.home-assistant.io/integrations/device_tracker # https://www.home-assistant.io/integrations/device_tracker
device_tracker: device_tracker: