Initial work on a presence tracker. Inspired by @helto4real

This commit is contained in:
2019-08-05 13:39:03 +02:00
parent 3e61dcda71
commit 7305d719ee
4 changed files with 206 additions and 4 deletions

View File

@@ -21,6 +21,43 @@ popup_cards:
- type: history-graph
entities: *door_entities
device_tracker.thomas_presence:
title: Thomas
large: true
card:
type: vertical-stack
cards:
- type: entities
entities: &thomas_entities
- device_tracker.thomas_iphone_beta
- device_tracker.thomas_iphone_2
- sensor.thomas_iphone_bt
- sensor.thomas_iphone_bt2
- type: history-graph
entities:
- device_tracker.thomas_presence
- type: history-graph
entities: *thomas_entities
device_tracker.anneli_presence:
title: Anneli
large: true
card:
type: vertical-stack
cards:
- type: entities
entities: &anneli_entities
- device_tracker.anneli_lovn
- device_tracker.anneli_loven
- sensor.anneli_iphone_bt
- sensor.anneli_iphone_bt2
- sensor.anneli_klocka_bt
- sensor.anneli_klocka_bt2
- type: history-graph
entities:
- device_tracker.anneli_presence
- type: history-graph
entities: *anneli_entities
cards:
- type: custom:layout-card
layout: vertical
@@ -56,10 +93,22 @@ cards:
- break
- type: horizontal-stack
cards:
- type: picture
image: /local/images/thomas_clr.jpg
- type: picture
image: /local/images/anneli_clr.png
- type: picture-entity
entity: device_tracker.thomas_presence
image: /local/images/thomas_bw.jpg
show_name: false
show_state: false
state_image:
"home": /local/images/thomas_clr.jpg
"just_arrived": /local/images/thomas_clr.jpg
- type: picture-entity
entity: device_tracker.anneli_presence
image: /local/images/anneli_bw.png
show_name: false
show_state: false
state_image:
"home": /local/images/anneli_clr.png
"just_arrived": /local/images/anneli_clr.png
- type: horizontal-stack
cards:
- type: entity-button