HomeAssistant_tutorials/video-08_03_2025/mobile_dashbaord-app_full.yaml
Technik freaks 06a5a45b1f bugfix
2025-03-08 12:55:32 +01:00

326 lines
11 KiB
YAML

# This is the configuration file for my WHOLE mobile Dashboard with the 3D printer subpage, if you only want
# the 3D printer page alone, look at mobile_dashboard-app_3d.yaml
# YOU NEED ALL MUSHROOM FRONTEND COMPENTS INSTALLED via HACS
views:
- title: Zimmer
subview: false
visible:
- user: d59955f2bfaf48898afd974ea1e37b7a
- user: c680da2125cb46aba544b1591624a213
cards:
- type: custom:mushroom-template-card
primary: |-
{% set time = now().hour %}
{% if (time >= 18) %}
Guten Abend {{user}}!
{% elif (time >= 12) %}
Guten Nachmittag {{user}}!
{% elif (time >= 5) %}
Guten Morgen {{user}}!
{% else %}
Hallo {{user}}!
{% endif %}
secondary: ''
icon: ''
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: 3D Drucker
secondary: >
{% if is_state('binary_sensor.octoprint_printing', 'on') %}
Eingeschaltet
{% endif %}
{% if is_state('binary_sensor.octoprint_printing', 'off') %}
Ausgeschaltet
{% endif %}
{% if is_state('binary_sensor.octoprint_printing', 'unavailable')
%}
Ausgeschaltet
{% endif %}
icon: mdi:printer-3d-nozzle
icon_color: |-
{% if is_state('binary_sensor.octoprint_printing', 'on') %}
blue
{% endif %}
layout: vertical
tap_action:
action: navigate
navigation_path: /dashboard-dash-board/3d-drucker
fill_container: true
- type: custom:mushroom-template-card
primary: Kameras
secondary: Verfügbar
icon: mdi:camera
icon_color: green
layout: vertical
tap_action:
action: navigate
navigation_path: /dashboard-dash-board/2
fill_container: true
- type: weather-forecast
entity: weather.forecast_home
- type: custom:mushroom-template-card
primary: Licht
secondary: |
{% if is_state('switch.zimmerlicht', 'on') %}
Eingeschaltet
{% endif %}
{% if is_state('switch.zimmerlicht', 'off') %}
Ausgeschaltet
{% endif %}
icon: mdi:lightbulb
icon_color: |-
{% if is_state('switch.zimmerlicht', 'on') %}
blue
{% endif %}
entity: switch.zimmerlicht
- type: custom:mushroom-title-card
title: Schreibtisch
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Setup
secondary: |
{% if is_state('switch.setup_outlet', 'on') %}
Eingeschaltet:
{{ states('sensor.setup_power') }} Watt
{% endif %}
{% if is_state('switch.setup_outlet', 'off') %}
Ausgeschaltet
{% endif %}
icon: mdi:monitor
entity: switch.setup_outlet
icon_color: |-
{% if is_state('switch.setup_outlet', 'on') %}
blue
{% endif %}
- type: custom:mushroom-media-player-card
volume_controls:
- volume_mute
- volume_set
- volume_buttons
media_controls:
- previous
- next
- play_pause_stop
- on_off
show_volume_level: true
use_media_info: true
collapsible_controls: true
entity: media_player.nesthub9043
name: Nest Hub
- type: custom:mushroom-template-card
primary: Ringlicht
secondary: |-
{% if is_state('input_boolean.ringlicht', 'on') %}
Eingeschaltet
{% endif %}
{% if is_state('input_boolean.ringlicht', 'off') %}
Ausgeschaltet
{% endif %}
icon: mdi:lightbulb
icon_color: |2-
{% if is_state('input_boolean.ringlicht', 'on') %}
blue
{% endif %}
entity: input_boolean.ringlicht
- type: custom:mushroom-title-card
title: Bett
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Bettlampe
secondary: |-
{% if is_state('switch.bettlampe_outlet', 'on') %}
Eingeschaltet
{% endif %}
{% if is_state('switch.bettlampe_outlet', 'off') %}
Ausgeschaltet
{% endif %}
icon: mdi:lightbulb
icon_color: |2-
{% if is_state('switch.bettlampe_outlet', 'on') %}
blue
{% endif %}
entity: switch.bettlampe_outlet
- type: custom:mushroom-template-card
primary: Google TV
secondary: |-
{% if is_state('remote.brunos_google_tv', 'on') %}
Eingeschaltet
{% endif %}
{% if is_state('remote.brunos_google_tv', 'off') %}
Ausgeschaltet
{% endif %}
icon: mdi:television
icon_color: |2-
{% if is_state('remote.brunos_google_tv', 'on') %}
blue
{% endif %}
entity: remote.brunos_google_tv
- type: horizontal-stack
cards:
- type: custom:mushroom-media-player-card
entity: media_player.brunos_google_tv
volume_controls:
- volume_buttons
- volume_set
- volume_mute
media_controls:
- on_off
- play_pause_stop
- next
- previous
collapsible_controls: true
name: Google TV
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Temperatur
secondary: '{{ states(''sensor.smartbuttons_zimmer_temperatur'') }} °C'
icon: mdi:thermometer
icon_color: blue
layout: vertical
fill_container: true
multiline_secondary: true
entity: sensor.smartbuttons_zimmer_temperatur
tap_action:
action: more-info
- type: custom:mushroom-template-card
primary: Luftfeuchtigkeit
secondary: '{{ states(''sensor.smartbuttons_zimmer_feuchtigkeit'') }}%'
icon: mdi:air-humidifier
entity: sensor.smartbuttons_zimmer_feuchtigkeit
icon_color: blue
layout: vertical
fill_container: true
multiline_secondary: true
tap_action:
action: more-info
icon: mdi:home
- path: 3d-drucker
subview: true
cards:
- square: false
type: grid
columns: 1
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: 3D Drucker - Steckdose
secondary: |-
{% if is_state('switch.3d_drucker_outlet', 'on') %}
Eingeschaltet
{% endif %}
{% if is_state('switch.3d_drucker_outlet', 'off') %}
Ausgeschaltet
{% endif %}
icon: mdi:printer-3d
entity: switch.3d_drucker_outlet
icon_color: |-
{% if is_state('switch.3d_drucker_outlet', 'on') %}
blue
{% endif %}
- type: custom:mushroom-template-card
primary: Licht
secondary: |-
{% if is_state('switch.licht_technikraum_outlet', 'on') %}
Eingeschaltet
{% endif %}
{% if is_state('switch.licht_technikraum_outlet', 'off') %}
Ausgeschaltet
{% endif %}
icon: mdi:lightbulb
icon_color: |-
{% if is_state('switch.licht_technikraum_outlet', 'on') %}
blue
{% endif %}
entity: light.licht_technikraum_outlet
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Druck stoppen
secondary: |-
{% if is_state('binary_sensor.octoprint_printing', 'on') %}
Available
{% endif %}
icon: mdi:stop
icon_color: |-
{% if is_state('binary_sensor.octoprint_printing', 'on') %}
green
{% endif %}
entity: button.octoprint_stop_job
- type: custom:mushroom-template-card
primary: Druck pausieren
secondary: |-
{% if is_state('binary_sensor.octoprint_printing', 'on') %}
Available
{% endif %}
icon: mdi:pause
icon_color: |-
{% if is_state('binary_sensor.octoprint_printing', 'on') %}
green
{% endif %}
entity: button.octoprint_pause_job
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Druck fortsetzen
secondary: |-
{% if is_state('binary_sensor.octoprint_printing', 'on') %}
Available
{% endif %}
icon: mdi:play
icon_color: |-
{% if is_state('binary_sensor.octoprint_printing', 'on') %}
green
{% endif %}
- type: entities
entities:
- entity: sensor.octoprint_actual_bed_temp
name: Actual bed temp
- entity: sensor.octoprint_actual_tool0_temp
name: Actual tool0 temp
- entity: sensor.octoprint_current_state
name: Current State
- entity: sensor.octoprint_estimated_finish_time
name: Estimated Finish Time
- entity: sensor.octoprint_job_percentage
name: Job Percentage
- entity: binary_sensor.octoprint_printing
name: Printing
- entity: sensor.octoprint_start_time
name: Start Time
title: Infos zum Drucker
- show_state: true
show_name: true
camera_view: auto
type: picture-entity
camera_image: camera.octoprint_camera
entity: camera.camera1
icon: mdi:printer-3d-nozzle
- icon: mdi:camera
cards:
- show_state: true
show_name: true
camera_view: auto
type: picture-entity
entity: camera.auffahrt_fliessend
- show_state: true
show_name: true
camera_view: auto
type: picture-entity
entity: camera.vorne_fliessend
name: Vorne
- show_state: true
show_name: true
camera_view: auto
type: picture-entity
entity: camera.camera1
name: 3D Drucker
subview: true