Add newsfeed card to mobile dashboard

#4
This commit is contained in:
2025-02-15 16:52:39 -05:00
parent dff4abcf42
commit e74a534dc9

View File

@ -651,6 +651,16 @@ views:
grid_options:
columns: 6
rows: auto
- type: custom:decluttering-card
template: main_button_name
variables:
- name: Home Feed
- icon: mdi:newspaper-variant
- navigation_path: '#homefeed'
- columns: 2
grid_options:
columns: 6
rows: auto
- type: custom:decluttering-card
template: main_button_name
variables:
@ -3629,6 +3639,145 @@ views:
numeric: true
reverse: false
ignore_case: false
- type: vertical-stack
cards:
- type: custom:bubble-card
card_type: pop-up
hash: '#homefeed'
button_type: name
name: Home Feed
icon: mdi:newspaper-variant
- type: markdown
content: >-
Meds taken only reflects the time the switch was activated. If
the date/time was edited, it will not change in this feed.
Working on this.
- type: custom:home-feed-card
card_id: mobile_feed
show_empty: false
id_filter: ^home_feed_.*
more_info_on_tap: true
state_color: true
scrollbars_enabled: false
entities:
- entity: person.tony_stork
name: Tony Stork
content_template: '{{display_name}} is {{state}}'
remove_repeats: false
state_map:
not_home: traveling
Wal-Mart: at Wal-Mart
School: at the middle school
Hospital: at the hospital
- entity: person.christina_stork
name: Christina Stork
content_template: '{{display_name}} is {{state}}'
remove_repeats: false
state_map:
not_home: traveling
Wal-Mart: at Wal-Mart
School: at the middle school
Hospital: at the hospital
Bob Evans: at work
BobEvans: at work
- entity: timer.kallen_timer
- entity: person.kallen_stork
- entity: person.emmalynn_stork
- entity: automation.family_has_arrived
content_template: Family Arrived
- entity: automation.family_has_left
content_template: Family Left
- entity: input_boolean.shower_mode
- entity: input_boolean.white_noise_emma_bedroom
name: White Noise - Emma
- entity: input_boolean.white_noise_kallen_bedroom
name: White Noise - Kallen
- entity: input_boolean.white_noise_basement
name: White Noise - Basement
- entity: input_boolean.emma_sleeping
- entity: input_boolean.kallen_sleeping
- entity: input_boolean.master_bedroom_sleeping
- entity: binary_sensor.lightning_warning
state_map:
'off': No lightning detected
'on': Lightning is in the area!
content_template: '{{state}}'
- entity: binary_sensor.raining
state_map:
'off': It is not currently raining
'on': It is currently raining
unavailable: I have no idea if it is raining
unknown: I have no idea if it is raining
content_template: '{{state}}'
- entity: input_boolean.recliner_mode
- entity: timer.washer_timer
state_map:
idle: not running
active: running
content_template: The washer is {{state}}
- entity: timer.dryer_timer
state_map:
idle: not running
active: running
content_template: The dryer is {{state}}
- entity: binary_sensor.internet
state_map:
'off': Disconnected
'on': Connected
- entity: input_boolean.rabbit_fed
name: Rabbit
content_template: '{{display_name}} is {{state}}'
state_map:
'off': hungry
'on': fed
- entity: input_boolean.rabbit_hutch_cleaned
name: Rabbit Hutch
content_template: '{{display_name}} is {{state}}'
state_map:
'off': dirty
'on': clean
- entity: input_boolean.tony_morning_meds_taken
exclude_states: 'off'
state_map:
'on': taken
'off': not taken
content_template: Tony has {{state}} his morning meds
- entity: input_boolean.tony_afternoon_meds_taken
exclude_states: 'off'
state_map:
'on': taken
'off': not taken
content_template: Tony has {{state}} his afternoon meds
- entity: input_boolean.tony_night_meds_taken
exclude_states: 'off'
state_map:
'on': taken
'off': not taken
content_template: Tony has {{state}} his night meds
- entity: input_boolean.tina_morning_meds_taken
exclude_states: 'off'
state_map:
'on': taken
'off': not taken
content_template: Tina has {{state}} her morning meds
- entity: input_boolean.tina_night_meds_taken
exclude_states: 'off'
state_map:
'on': taken
'off': not taken
content_template: Tina has {{state}} her night meds
- entity: input_boolean.kallen_morning_meds_taken
exclude_states: 'off'
state_map:
'on': taken
'off': not taken
content_template: Kallen has {{state}} his morning meds
- entity: input_boolean.kallen_night_meds_taken
exclude_states: 'off'
state_map:
'on': taken
'off': not taken
content_template: Kallen has {{state}} his night meds
visible:
- user: c3909d27048140729f002aaef0391775
- user: f387a983651a4321a7411ff8cf36f949