Files
fresh-home/lovelace/phone/girls-room.yaml
T
2025-11-04 18:25:18 -05:00

400 lines
16 KiB
YAML

subview: true
title: Girl's Room
path: girls-room
icon: mdi:teddy-bear
badges: []
cards:
# Header and HVAC
- type: vertical-stack
cards:
# - type: custom:mushroom-chips-card
# chips:
# - type: back
- type: horizontal-stack
cards:
- hours_to_show: 24
graph: line
type: sensor
entity: sensor.nursery_multisensor_air_temperature
detail: 1
name: Temperature
- hours_to_show: 24
graph: line
type: sensor
detail: 1
entity: sensor.nursery_multisensor_humidity
name: Humidity
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
entity: sensor.nursery_thermal_comfort_dew_point_perception
layout: vertical
primary: Dew Point
secondary: >
{% if is_state('sensor.nursery_thermal_comfort_dew_point_perception','dry') %}
Dry
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','very_comfortable') %}
Very Comfy
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','comfortable') %}
Comfy
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','ok_but_humid') %}
Humid
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','somewhat_uncomfortable') %}
Somewhat Uncomfy
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','quite_uncomfortable') %}
Quite Uncomfy
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','extremely_uncomfortable') %}
Extremely Uncomfy
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','severely_high') %}
Severely High
{% endif %}
icon: tc:dew-point
icon_color: >
{% if is_state('sensor.nursery_thermal_comfort_dew_point_perception','dry') %}
gray
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','very_comfortable') %}
green
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','comfortable') %}
green
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','ok_but_humid') %}
blue
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','somewhat_uncomfortable') %}
yellow
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','quite_uncomfortable') %}
orange
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','extremely_uncomfortable') %}
orange
{% elif is_state('sensor.nursery_thermal_comfort_dew_point_perception','severely_high') %}
red
{% endif %}
tap_action:
action: more-info
- type: custom:mushroom-template-card
entity: sensor.nursery_thermal_comfort_humidex_perception
layout: vertical
primary: Humidex
secondary: >
{% if is_state('sensor.nursery_thermal_comfort_humidex_perception','comfortable') %}
Comfy
{% elif is_state('sensor.nursery_thermal_comfort_humidex_perception','noticable_discomfort') %}
Noticable Discomfort
{% elif is_state('sensor.nursery_thermal_comfort_humidex_perception','evident_discomfort') %}
Evident Discomfort
{% elif is_state('sensor.nursery_thermal_comfort_humidex_perception','great_discomfort') %}
Great Discomfort
{% elif is_state('sensor.nursery_thermal_comfort_humidex_perception','dangerous_discomfort') %}
Dangerous
{% elif is_state('sensor.nursery_thermal_comfort_humidex_perception','heat_stroke') %}
Heat Stroke
{% endif %}
icon: tc:thermal-perception
icon_color: >
{% if is_state('sensor.nursery_thermal_comfort_humidex_perception','comfortable') %}
green
{% elif is_state('sensor.nursery_thermal_comfort_humidex_perception','noticable_discomfort') %}
yellow
{% elif is_state('sensor.nursery_thermal_comfort_humidex_perception','evident_discomfort') %}
orange
{% elif is_state('sensor.nursery_thermal_comfort_humidex_perception','great_discomfort') %}
orange
{% elif is_state('sensor.nursery_thermal_comfort_humidex_perception','dangerous_discomfort') %}
red
{% elif is_state('sensor.nursery_thermal_comfort_humidex_perception','heat_stroke') %}
red
{% endif %}
tap_action:
action: more-info
- type: custom:mushroom-template-card
entity: sensor.nursery_thermal_comfort_summer_simmer_perception
layout: vertical
primary: Simmer Simmer
secondary: >
{% if is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','cool') %}
Cool
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','slightly_cool') %}
Cool
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','comfortable') %}
Comfy
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','slightly_warm') %}
Warm
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','increasing_discomfort') %}
Warm
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','extremely_warm') %}
Hot
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','danger_of_heatstroke') %}
Hot
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','extreme_danger_of_heatstroke') %}
Danger
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','circulatory_collapse_imminent') %}
Danger
{% endif %}
icon: tc:simmer-zone
icon_color: >
{% if is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','cool') %}
blue
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','slightly_cool') %}
blue
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','comfortable') %}
green
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','slightly_warm') %}
yellow
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','increasing_discomfort') %}
yellow
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','extremely_warm') %}
orange
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','danger_of_heatstroke') %}
orange
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','extreme_danger_of_heatstroke') %}
red
{% elif is_state('sensor.nursery_thermal_comfort_summer_simmer_perception','circulatory_collapse_imminent') %}
red
{% endif %}
tap_action:
action: more-info
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
layout: vertical
entity: binary_sensor.nursery_occupied
name: Nursery Occupied
- type: custom:mushroom-entity-card
layout: vertical
entity: binary_sensor.girls_room_occupied
name: Girls Room
# Lights
- type: vertical-stack
cards:
- type: custom:mushroom-title-card
subtitle: Lights
- type: horizontal-stack
cards:
- type: custom:mushroom-light-card
entity: light.nursery_hue
name: Main Light
tap_action:
action: toggle
use_light_color: false
show_brightness_control: false
layout: vertical
hide_state: false
- type: custom:mushroom-entity-card
entity: input_select.nursery_mode
name: Mode
layout: vertical
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Window Side
secondary: "{{states('select.black_bed_wled_preset')}}"
entity: select.black_bed_wled_preset
icon: mdi:led-strip-variant
icon_color: "{{ iif(is_state('light.black_bed_wled', 'on'), 'yellow') }}"
tap_action:
action: more-info
hold_action:
action: call-service
service: homeassistant.toggle
service_data: {}
target:
entity_id: light.black_bed_wled
double_tap_action:
action: url
url_path: http://192.168.1.181
layout: vertical
- type: custom:mushroom-template-card
primary: Hall Side
secondary: "{{states('select.white_bed_wled_preset')}}"
entity: select.white_bed_wled_preset
icon: mdi:led-strip-variant
icon_color: "{{ iif(is_state('light.white_bed_wled', 'on'), 'yellow') }}"
tap_action:
action: more-info
hold_action:
action: call-service
service: homeassistant.toggle
service_data: {}
target:
entity_id: light.white_bed_wled
double_tap_action:
action: url
url_path: http://192.168.1.182
layout: vertical
- type: horizontal-stack
cards:
- type: custom:mushroom-light-card
entity: light.nursery_closet
name: Closet
icon: mdi:dome-light
tap_action:
action: toggle
layout: vertical
hide_state: true
- type: custom:mushroom-light-card
entity: light.nursery_tagreader_led
name: Tagreader
icon: mdi:led-variant-outline
tap_action:
action: toggle
layout: vertical
hide_state: true
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
layout: vertical
entity: sensor.nursery_multisensor_illuminance
name: Nursery
- type: custom:mushroom-entity-card
entity: input_number.nursery_light_level_trigger
layout: vertical
name: Trigger
- type: custom:mushroom-entity-card
entity: binary_sensor.nursery_naturally_lit
name: Naturally Lit
layout: vertical
# Devices
- type: vertical-stack
cards:
- type: custom:mushroom-title-card
subtitle: Devices
- type: custom:mushroom-fan-card
entity: fan.nursery
name: Fan
icon_animation: false
tap_action:
action: toggle
show_percentage_control: true
hide_state: true
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: script.all_kids_youtube_music
name: All Songs
tap_action:
action: call-service
service: script.all_kids_youtube_music
service_data: {}
target: {}
primary_info: name
layout: vertical
secondary_info: none
icon: mdi:music
- type: custom:mushroom-entity-card
entity: script.goodnight_kids_youtube_music
name: Goodnight Songs
tap_action:
action: call-service
service: script.goodnight_kids_youtube_music
service_data: {}
target: {}
primary_info: name
layout: vertical
secondary_info: none
icon: mdi:sleep
- type: custom:mushroom-entity-card
entity: media_player.ytube_music_player
name: "Off"
tap_action:
action: call-service
service: homeassistant.turn_off
service_data: {}
target:
entity_id: media_player.ytube_music_player
primary_info: name
layout: vertical
secondary_info: none
icon: mdi:speaker-off
- type: horizontal-stack
cards:
- type: custom:mini-media-player
entity: media_player.girls_room_hub
artwork: cover-fit
- type: vertical-stack
cards:
- type: custom:mushroom-title-card
subtitle: Sensors
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
entity: binary_sensor.black_bed_occupied
icon: mdi:bed
icon_color: >-
{% if(is_state('binary_sensor.black_bed_occupied','on')) %}
yellow
{% elif(is_state('binary_sensor.black_bed_hx711_error','on')) %}
red
{% endif %}
primary: Black Bed
double_tap_action:
action: call-service
service: homeassistant.toggle
service_data: {}
target:
entity_id: switch.black_bed_force_occupancy
hold_action:
action: call-service
service: button.press
service_data: {}
target:
entity_id: button.black_bed_manual_tare
layout: vertical
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: group.nursery_motion
name: Motion
secondary_info: none
layout: vertical
- type: custom:mushroom-entity-card
entity: binary_sensor.nursery_person_occupancy
name: Person
secondary_info: none
layout: vertical
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: binary_sensor.nursery_door
name: Door
secondary_info: none
layout: vertical
- type: custom:mushroom-entity-card
entity: binary_sensor.nursery_closet_door_contact
name: Closet
secondary_info: none
layout: vertical
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: binary_sensor.nursery_window_contact
name: Window
secondary_info: none
layout: vertical
- type: vertical-stack
cards:
- type: custom:mushroom-title-card
subtitle: Bedtime
- type: horizontal-stack
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: input_button.nursery_bedtime
name: Bedtime
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: input_button.nursery_awake
name: Awake
- type: vertical-stack
cards:
- type: custom:mushroom-title-card
subtitle: Cameras
- !include /config/lovelace/cameras/view-camera-08.yaml