Add cards for text briefings and global scenes

This commit is contained in:
2024-07-28 18:18:00 -04:00
parent 0562e2fad8
commit fc4ec7d963

View File

@ -415,6 +415,34 @@ views:
show_state: false show_state: false
columns: 2 columns: 2
card_layout: large card_layout: large
- type: custom:bubble-card
card_type: button
button_type: name
name: Global Scenes
icon: mdi:home-lightbulb-outline
columns: 2
card_layout: large
tap_action:
action: navigate
navigation_path: '#global-scenes'
button_action:
tap_action:
action: navigate
navigation_path: '#global-scenes'
- type: custom:bubble-card
card_type: button
button_type: name
name: Briefings
icon: mdi:text
columns: 2
card_layout: large
tap_action:
action: navigate
navigation_path: '#briefings'
button_action:
tap_action:
action: navigate
navigation_path: '#briefings'
- type: custom:bubble-card - type: custom:bubble-card
card_type: button card_type: button
button_type: name button_type: name
@ -3563,6 +3591,110 @@ views:
- sensor.emma_bedroom_illuminance - sensor.emma_bedroom_illuminance
name: Emma Bedroom name: Emma Bedroom
points_per_hour: 2 points_per_hour: 2
- type: vertical-stack
cards:
- type: custom:bubble-card
card_type: pop-up
hash: '#global-scenes'
button_type: name
name: Global Scenes
icon: mdi:home-lightbulb-outline
- type: entities
entities:
- entity: script.give_me_darkness
secondary_info: After kid's bedtime
- entity: button.good_morning
secondary_info: Optional, when we wake up
- entity: button.goodnight
secondary_info: When Tony goes to bed
- entity: script.global_on
secondary_info: Turn all lights on
- entity: script.global_off
secondary_info: Turn all lights/fans off
- entity: script.max_brightness
secondary_info: Turn all lights on at 100%
- entity: script.going_upstairs
secondary_info: When coming to bed from basement
- entity: button.basement_on_manual
name: Basement On
secondary_info: Turns on lights/computer/TV
- entity: button.sunset_lights_trigger
name: Sunset Lights Manual Trigger
secondary_info: If flow gets interrupted
- entity: script.adaptive_on_first_floor
secondary_info: Reset lights to adaptive
- entity: script.adaptive_on_second_floor
secondary_info: Reset lights to adaptive
- entity: script.bright_on_first_floor
- entity: script.bright_on_second_floor
- entity: script.evening_on_first_floor
- entity: script.evening_on_second_floor
- entity: script.emma_rainbow_lights
- type: vertical-stack
cards:
- type: custom:bubble-card
card_type: pop-up
hash: '#briefings'
button_type: name
name: Briefings
icon: mdi:text
- type: custom:mushroom-template-card
primary: Hello, {{user}}
secondary: >-
{% from 'weather.jinja' import weatherReport %} {% from
'formatting.jinja' import cleanup %} {% import 'status.jinja'
as status %}
{{ weatherReport('full','text') }}
--- Indoor Temps ---
Average: {{
states('sensor.average_room_temperature',with_unit=true) }}
Coldest: {{
state_attr('sensor.coldest_room_temperature','room') }}, {{
states('sensor.coldest_room_temperature',with_unit=true) }}
Warmest: {{
state_attr('sensor.warmest_room_temperature','room') }}, {{
states('sensor.warmest_room_temperature',with_unit=true) }}
--- Lights ---
Average: {{
states('sensor.average_room_illuminance',with_unit=true) }}
Dimmest: {{ state_attr('sensor.dimmest_room','room') }}, {{
states('sensor.dimmest_room',with_unit=true) }}
Brightest: {{ state_attr('sensor.brightest_room','room') }},
{{ states('sensor.brightest_room',with_unit=true) }}
-----------------
{{ cleanup(status.tony_status_report('full','text')) }}
{{ cleanup(status.tina_status_report('full','text')) }}
{{ cleanup(status.kallen_status_report('full','text')) }}
{{ cleanup(status.emma_status_report('full','text')) }}
{{ cleanup(status.house_status_report('full','text')) }}
{{ cleanup(status.laundry_report('full','text')) }}
tap_action:
action: none
hold_action:
action: none
double_tap_action:
action: none
multiline_secondary: true
fill_container: false
visible: visible:
- user: c3909d27048140729f002aaef0391775 - user: c3909d27048140729f002aaef0391775
- user: f387a983651a4321a7411ff8cf36f949 - user: f387a983651a4321a7411ff8cf36f949