Docker/ha/config/dashboards/default.yaml

1403 lines
53 KiB
YAML

title: Home
views:
- title: Lights
path: lights
icon: mdi:lamps-outline
badges: []
cards:
- type: horizontal-stack
title: Scener
cards:
- type: custom:button-card
icon: mdi:lightbulb-night-outline
name: Kväll
tap_action:
action: call-service
service: scene.turn_on
data:
entity_id: scene.kvalls_belysning
size: 20%
color_type: card
color: rgb(73, 99, 133)
styles:
icon:
- color: rgb(224, 222, 54)
- type: custom:button-card
icon: mdi:weather-night
name: Natt
tap_action:
action: call-service
service: scene.turn_on
data:
entity_id: scene.natt
size: 20%
color_type: card
color: rgb(44, 47, 51)
styles:
icon:
- color: rgb(179, 123, 39)
- type: entities
entities:
- entity: light.h002l
- entity: light.h009l
- entity: light.matrum_fonster_2
- entity: light.nodeid_23_nodeid_23_dimmer
- entity: light.vrum_svarttak
- entity: light.vrum_tak_group_dimmer
- entity: light.h020l
- entity: switch.nodeid_14_nodeid_14_switch
- entity: light.mormor_malla_dimmer
title: Vrum
- type: entities
entities:
- entity: light.kitchen_black_group_dimmer
- entity: light.kok_ct
title: Kök
- type: entities
entities:
- entity: switch.nodeid_8_nodeid_8_switch
- entity: light.arum_gullampa
- entity: light.liten_gultrum
- entity: switch.nodeid_13_nodeid_13_switch
- entity: light.h008l
- entity: switch.h001s
title: Nere
- type: entities
entities:
- entity: light.ada_jordglob2
name: Ada jordglob
- entity: switch.nodeid_27_nodeid_27_switch
- entity: light.uppe_vrum_liten
- entity: light.sovrum_jordglob2
- entity: switch.ada_slnga
- entity: light.oscar_skrivbord
- entity: light.oscar_tak
- entity: switch.nodeid_7_nodeid_7_switch
title: Uppe
- type: entities
entities:
- entity: light.outdoor
- entity: light.ute_baksida
- entity: light.philips_lily_1
- entity: light.philips_lily_3
- entity: light.philips_lily_4
- entity: light.philips_lily_6
- entity: light.ledslinga_altan
- entity: light.h018l
- entity: switch.ute_hjarta_2
- entity: switch.h015l
- entity: light.garage_spot
- entity: switch.h016s
- entity: switch.nodeid_22_nodeid_22_switch
- entity: light.h013s
- entity: light.h021l
- entity: light.garage_inne_tak
- entity: switch.nodeid_16_nodeid_16_switch
title: Ute
- type: entities
entities:
- entity: scene.kvalls_belysning
- entity: scene.natt
title: Scener
- path: default_view
title: Home
cards:
- type: horizontal-stack
title: Scener
cards:
- type: custom:button-card
icon: mdi:lightbulb-night-outline
name: Kväll
tap_action:
action: call-service
service: scene.turn_on
data:
entity_id: scene.kvalls_belysning
size: 20%
color_type: card
color: rgb(73, 99, 133)
styles:
icon:
- color: rgb(224, 222, 54)
- type: custom:button-card
icon: mdi:weather-night
name: Natt
tap_action:
action: call-service
service: scene.turn_on
data:
entity_id: scene.natt
size: 20%
color_type: card
color: rgb(44, 47, 51)
styles:
icon:
- color: rgb(179, 123, 39)
- type: weather-forecast
entity: weather.forecast_home
show_forecast: false
- type: grid
title: Chromecast
square: false
columns: 1
cards:
- type: media-control
entity: media_player.vardagsrum_tv
- type: media-control
entity: media_player.tv_sovrum
- type: media-control
entity: media_player.tv_uppe
- type: horizontal-stack
title: Sonos
cards:
- type: media-control
entity: media_player.oscar
- type: media-control
entity: media_player.vardagsrum
- show_state: true
show_name: true
camera_view: live
type: picture-entity
entity: camera.g5_flex_high
image: rtsps://10.0.0.1:7441/Wnzyuxn3fxHeJWIK?enableSrtp
camera_image: camera.g5_flex_high
name: Garageuppfart
- type: vertical-stack
cards:
- type: custom:mushroom-number-card
entity: input_number.oscar_sleep_timer
display_mode: slider
name: Set Timer oscar sonos
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: script.oscar_sleep_script
icon: mdi:bed-clock
icon_height: 50px
name: Activate sleep timer
show_state: false
- type: horizontal-stack
title: Skicka tal till Sonos
cards:
- type: custom:button-card
entity: script.talk_on_oscar
size: 10%
- type: custom:button-card
entity: script.talk_on_vardagsrum
size: 10%
- title: Energy
path: energy
icon: mdi:home-lightning-bolt
badges: []
cards:
- type: thermostat
entity: climate.daikinap14037
show_current_as_primary: false
features:
- type: climate-fan-modes
style: dropdown
name: Luftvärmepump
- type: custom:mini-graph-card
hour24: true
entities:
- sensor.daikinap14037_outside_temperature
show:
labels: true
color_thresholds:
- value: 0
color: '#9bdceb'
- value: 10
color: '#82c276'
- value: 15
color: '#f39c12'
- value: 20
color: '#c0392b'
- type: vertical-stack
title: Nere värme
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-climate-card
entity: climate.arbetsrum_2
show_temperature_control: true
- type: custom:mushroom-climate-card
entity: climate.gastrum_2
show_temperature_control: true
- type: horizontal-stack
cards:
- type: custom:mushroom-climate-card
entity: climate.vardagsrum_2
show_temperature_control: true
- type: vertical-stack
title: Uppe element
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-climate-card
entity: climate.ada_2
show_temperature_control: true
- type: custom:mushroom-climate-card
entity: climate.oscar_2
show_temperature_control: true
- type: horizontal-stack
cards:
- type: custom:mushroom-climate-card
entity: climate.uppe_sovrum_2
show_temperature_control: true
- type: custom:mushroom-climate-card
entity: climate.uppe_vrum_2
show_temperature_control: true
- type: horizontal-stack
title: Nere temp
cards:
- type: custom:mini-graph-card
entities:
- sensor.sensor_inne_kamin_th017_temperature
line_color: blue
line_width: 8
font_size: 75
- type: custom:mini-graph-card
entities:
- sensor.sensor_inne_hall_th016_temperature
line_color: '#e74c3c'
line_width: 8
font_size: 75
- type: custom:mini-graph-card
entities:
- sensor.sensor_inne_vrum_aq001_temperature
line_color: var(--accent-color)
line_width: 8
font_size: 75
- type: vertical-stack
title: Uppe temp
cards:
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
entities:
- sensor.sensor_inne_ada_th002_temperature
line_color: blue
line_width: 8
font_size: 75
- type: custom:mini-graph-card
entities:
- sensor.sensor_inne_sovrum_th018_temperature
line_color: '#e74c3c'
line_width: 8
font_size: 75
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
entities:
- sensor.sensor_inne_uppvrum_th009_temperature
line_color: var(--accent-color)
line_width: 8
font_size: 75
- type: custom:mini-graph-card
entities:
- sensor.sensor_inne_oscar_dt005_device_temperature
line_color: var(--accent-color)
line_width: 8
font_size: 75
- type: entities
entities:
- entity: sensor.sensor_inne_vrum_aq001_temperature
name: Vrum
secondary_info: last-updated
- entity: sensor.sensor_inne_ada_th002_temperature
name: Ada
secondary_info: last-updated
- entity: sensor.sensor_inne_arum_th005_temperature
name: Arbetsrum
secondary_info: last-updated
- entity: sensor.sensor_inne_badrum_th011_temperature
name: Badrum uppe
secondary_info: last-updated
- entity: sensor.sensor_inne_matrum_th003_temperature
name: Matrum
secondary_info: last-updated
- entity: sensor.sensor_inne_oscar_th010_temperature
name: Oscar
secondary_info: last-updated
- entity: sensor.sensor_inne_sovrum_th018_temperature
name: SoS sovrum
secondary_info: last-updated
- entity: sensor.sensor_inne_kamin_th017_temperature
- entity: sensor.sensor_inne_hall_th016_temperature
title: Temperatur inne
- type: entities
entities:
- entity: sensor.daikinap14037_outside_temperature
- entity: sensor.h017s_temperature
name: Växthus
secondary_info: last-updated
- entity: sensor.sensor_ute_outside_th006_temperature
name: Ute baksida
secondary_info: last-updated
- entity: sensor.sensor_ute_vind_th007_temperature
name: Vind
secondary_info: last-updated
title: Temperatur ute
show_header_toggle: false
- title: Jaffa
path: jaffa
visible:
- user: ab7e3e2f7bdb401996359c8f371af2c7
- user: b489b1af7f6a4ca3bba02a2c28b9fd65
icon: mdi:car-connected
badges: []
cards:
- type: entities
entities:
- binary_sensor.jaffa_locked
- type: gauge
entity: sensor.none_jaffa_battery_soc
name: Jaffa Batteri
needle: false
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: lock.h014s
show_state: true
name: Ytterdörr
- type: entities
entities:
- entity: switch.h014s_auto_relock
- entity: sensor.h014s_battery
- entity: sensor.h014s_last_lock_user
- entity: sensor.h014s_last_unlock_source
- entity: sensor.h014s_last_unlock_user
- entity: sensor.h014s_last_used_pin_code
- entity: sensor.h014s_pin_code
- entities:
- entity: input_text.tts_syntesiser
- entity: media_player.oscar
type: entities
state_color: true
- type: map
auto_fit: true
default_zoom: 14
entities:
- entity: device_tracker.jaffa_location
- entity: zone.home
hours_to_show: 6
dark_mode: false
- title: VW
image_url: /api/image/serve/abf23222440b4103d50a9e04431ef02e/original
charging_image_url: /api/image/serve/ac867cd738a80ff50d8c2f4457096ba6/original
vehicle_type: EV
unit_type: km
level_entity: ''
range_entity: ''
charging_status_entity: sensor.none_jaffa_charge_mode
location_entity: proximity.home_jaffa
mileage_entity: sensor.none_jaffa_odometer
show_level: true
show_range: true
show_location: true
show_mileage: true
show_car_state: true
show_charge_limit: true
icon_grid_entities: []
custom_icons: {}
icon_interactions: {}
icon_styles: {}
hybrid_display_order: fuel_first
car_state_entity: ''
charge_limit_entity: sensor.none_jaffa_battery_target_soc
icon_size: 24
icon_gap: 12
showEntityInformation: true
type: custom:ultra-vehicle-card
battery_level_entity: sensor.none_jaffa_battery_soc
battery_range_entity: sensor.none_jaffa_rated_battery_range_km
fuel_level_entity: ''
fuel_range_entity: ''
show_battery: true
show_battery_range: true
show_fuel: true
show_fuel_range: true
cardBackgroundColor: ''
barBackgroundColor: ''
barFillColor: ''
limitIndicatorColor: ''
iconActiveColor: ''
iconInactiveColor: ''
- title: Solar
path: solar
icon: mdi:solar-power-variant
badges: []
cards:
- type: custom:swipe-card
start_card: 1
parameters:
effect: cards
grabCursor: true
autoplay: 10
slidesPerView: auto
rewind: true
cards:
- type: vertical-stack
cards:
- type: custom:energy-flow-card-plus
entities:
grid:
entity:
consumption: sensor.dsmr_reading_electricity_delivered_1
production: sensor.dsmr_reading_electricity_returned_1
name: Grid
solar:
entity: sensor.inverter_total_yield
display_zero_state: true
icon: mdi:solar-panel
home:
subtract_individual: false
use_metadata: true
individual1:
entity: sensor.evcc_total_charged_energy_grid_kwh
color_icon: false
icon: mdi:ev-station
name: Laddare
secondary_info:
entity: sensor.none_jaffa_battery_soc
unit_of_measurement: '%'
clickable_entities: true
display_zero_lines: true
use_new_flow_rate_model: false
energy_date_selection: true
wh_decimals: 1
kwh_decimals: 1
min_flow_rate: 1
max_flow_rate: 6
max_expected_energy: 2000
min_expected_energy: 10
wh_kwh_threshold: 1000
title: Förbrukning
- type: custom:energy-period-selector-plus
card_background: true
today_button: true
prev_next_buttons: false
compare_button_type: icon
today_button_type: text
period_buttons:
- day
- week
- month
- type: custom:power-flow-card-plus
entities:
battery:
entity: ''
state_of_charge: sensor.simon_mobil_battery_level
grid:
secondary_info: {}
entity:
consumption: sensor.dsmr_reading_electricity_currently_delivered
production: sensor.dsmr_reading_electricity_currently_returned
solar:
display_zero_state: true
secondary_info: {}
entity: sensor.inverter_active_power
individual:
- entity: sensor.evcc_charge_power_w_2
secondary_info:
entity: sensor.none_jaffa_battery_soc
unit_of_measurement: '%'
icon: mdi:car-electric-outline
name: Laddare
display_zero: true
display_zero_state: false
calculate_flow_rate: true
clickable_entities: true
display_zero_lines:
mode: show
transparency: 50
grey_color:
- 189
- 189
- 189
use_new_flow_rate_model: true
w_decimals: 0
kw_decimals: 1
min_flow_rate: 0.75
max_flow_rate: 6
max_expected_power: 12000
watt_threshold: 1000
transparency_zero_lines: 0
min_expected_power: 100
title: Effekt
- type: custom:apexcharts-card
apex_config:
chart:
height: 200
all_series_config:
stroke_width: 2
header:
show: true
title: Elpriser Nodpool
show_states: true
graph_span: 2d
span:
start: day
now:
show: true
label: Nu
series:
- entity: sensor.nordpool_kwh_se3_sek_3_10_025
name: idag
show:
legend_value: false
extremas: true
type: line
extend_to: now
color: blue
float_precision: 3
data_generator: |
return entity.attributes.raw_today.map((entry) => {
return [new Date(entry.start), entry.value];
});
- entity: sensor.nordpool_kwh_se3_sek_3_10_025
name: I morgon
show:
legend_value: false
extremas: true
group_by:
func: last
duration: 1h
type: line
color: orange
float_precision: 3
data_generator: |
return entity.attributes.raw_tomorrow.map((entry) => {
return [new Date(entry.start), entry.value];
});
- type: vertical-stack
title: Bil + laddare
cards:
- type: gauge
entity: sensor.none_jaffa_battery_soc
min: 0
max: 100
needle: false
severity:
green: 90
yellow: 50
red: 30
unit: '%'
name: Id 4 batteri
- type: custom:mushroom-number-card
entity: number.evcc_target_soc
display_mode: slider
name: Id4 mål batteri
fill_container: false
icon: mdi:battery
- graph: none
type: sensor
entity: sensor.evcc_remaining_energy_kwh
detail: 1
- type: entities
entities:
- entity: select.evcc_mode
- type: custom:mushroom-entity-card
entity: input_datetime.car_ready_charged
name: Bilen ska vara laddad till?
- type: gauge
entity: sensor.inverter_active_power
max: 15
- type: entities
entities:
- entity: sensor.dsmr_reading_electricity_currently_returned
- entity: sensor.dsmr_reading_electricity_currently_delivered
- entity: sensor.evcc_charge_power_w
- type: entities
entities:
- entity: sensor.inverter_active_power
name: Active power
- entity: sensor.inverter_daily_yield
name: Daily yield
- entity: sensor.inverter_day_active_power_peak
name: Day active power peak
- entity: sensor.inverter_efficiency
name: Efficiency
- entity: sensor.inverter_input_power
name: Input power
- entity: sensor.inverter_internal_temperature
name: Internal temperature
- entity: sensor.inverter_phase_a_current
name: Phase A current
- entity: sensor.inverter_phase_b_current
name: Phase B current
- entity: sensor.inverter_phase_c_current
name: Phase C current
- entity: sensor.inverter_pv_1_current
name: PV 1 Current
- entity: sensor.inverter_pv_1_voltage
name: PV 1 Voltage
- entity: sensor.inverter_pv_2_current
name: PV 2 Current
- entity: sensor.inverter_pv_2_voltage
name: PV 2 Voltage
- entity: sensor.inverter_total_yield
name: Total yield
title: Inverter
- type: entities
entities:
- entity: sensor.inverter_alarms
name: Alarms
- entity: sensor.inverter_device_status
name: Device status
- entity: sensor.inverter_dsp_data_collection
name: DSP data collection
- entity: sensor.inverter_inverter_state
name: Inverter state
- entity: sensor.inverter_locking_status
name: Locking status
- entity: sensor.inverter_off_grid_status
name: Off-grid status
- entity: sensor.inverter_off_grid_switch
name: Off-grid switch
- entity: sensor.inverter_pv_connection_status
name: PV connection status
- entity: sensor.inverter_shutdown_time
name: Shutdown time
- entity: sensor.inverter_startup_time
name: Startup time
title: Inverter
- type: entities
entities:
- input_datetime.motorvarmare_start
- input_boolean.motorvarmare_toogle
- type: entities
entities:
- entity: sensor.dsmr_reading_phase_power_current_l1
- entity: sensor.dsmr_reading_phase_power_current_l2
- entity: sensor.dsmr_reading_phase_power_current_l3
- entity: sensor.evcc_charge_current_l1_a
- entity: sensor.evcc_charge_current_l2_a
- entity: sensor.evcc_charge_current_l3_a
- type: custom:power-flow-card-plus
entities:
battery:
entity: ''
state_of_charge: sensor.simon_mobil_battery_level
grid:
secondary_info: {}
entity:
consumption: sensor.dsmr_reading_electricity_currently_delivered
production: sensor.dsmr_reading_electricity_currently_returned
solar:
display_zero_state: true
secondary_info: {}
entity: sensor.inverter_active_power
individual:
- entity: sensor.evcc_charge_power_w_2
clickable_entities: true
display_zero_lines:
mode: show
transparency: 50
grey_color:
- 189
- 189
- 189
use_new_flow_rate_model: true
w_decimals: 0
kw_decimals: 1
min_flow_rate: 0.75
max_flow_rate: 6
max_expected_power: 12000
watt_threshold: 1000
transparency_zero_lines: 0
min_expected_power: 100
- icon: mdi:cloud-print
title: 3d-print
path: 3d-print
type: sections
sections:
- type: grid
cards:
- type: picture-elements
elements:
- type: conditional
conditions:
- entity: sensor.a1mini_0309da441900142_print_status
state_not: offline
elements:
- entity: light.a1mini_0309da441900142_chamber_light
type: state-icon
icon: mdi:car-parking-lights
style:
top: 45%
left: 89%
'--mdc-icon-size': 2.6em
tap_action:
action: toggle
- entity: sensor.a1mini_0309da441900142_print_status
type: state-label
style:
top: 91%
left: 73.8%
font-size: 0.85em
color: '#FFFFFF'
- type: conditional
conditions:
- entity: sensor.a1mini_0309da441900142_print_status
state:
- running
- pause
elements:
- type: conditional
conditions:
- entity: image.a1mini_0309da441900142_cover_image
state_not: unavailable
elements:
- type: custom:hui-element
card_type: picture-entity
show_name: true
show_state: true
entity: image.a1mini_0309da441900142_cover_image
style:
top: 57%
left: 38%
transform: translate(-45%, -40%) scale(68%, 68%)
'--ha-card-border-width': 0px
'--ha-card-background': none
- entity: sensor.a1mini_0309da441900142_print_progress
type: state-badge
tap_action:
action: none
style:
top: 18.5%
left: 74%
font-size: 1em
color: rgba(0,0,0,0)
'--label-badge-red': '#11739D'
- entity: sensor.a1mini_0309da441900142_nozzle_temperature
type: state-badge
style:
top: 30%
left: 40.8%
font-size: 0.8em
color: rgba(0,0,0,0)
- entity: sensor.a1mini_0309da441900142_bed_temperature
type: state-badge
style:
top: 95%
left: 40.8%
font-size: 0.8em
color: rgba(0,0,0,0)
card_mod:
style: |
ha-card {
background: none !important;
border: none !important;
box-shadow: none !important;
}
image: /local/media/bambuprinter/a1mini_lighton.png
entity: light.a1mini_0309da441900142_chamber_light
state_image:
unavailable: /local/media/bambuprinter/a1mini_lightoff.png
'on': /local/media/bambuprinter/a1mini_lighton.png
'off': /local/media/bambuprinter/a1mini_lightoff.png
- type: picture-elements
elements:
- type: conditional
conditions:
- condition: state
state_not: unavailable
entity: sensor.a1mini_0309da441900142_ams_1_id
- condition: state
state_not: unknown
entity: sensor.a1mini_0309da441900142_ams_1_id
elements:
- type: state-label
entity: sensor.a1mini_0309da441900142_ams_1_id
tap_action:
action: none
style:
top: 77%
left: 30%
text-align: center
font-size: 0.8em
background-color: rgba(0,0,0,0)
box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0)
border-radius: 10px
pointer-events: none
color: '#FFFFFF'
- type: custom:config-template-card
entities:
- sensor.a1mini_0309da441900142_ams_1_tray_1
element:
type: state-icon
entity: sensor.a1mini_0309da441900142_ams_1_tray_1
icon: >-
${states['sensor.a1mini_0309da441900142_ams_1_tray_1'].state.lower
!= 'empty' ? 'fapro:filament-2' : 'mdi:tray' }
style:
top: 27%
left: 45%
'--paper-item-icon-color': var(--tray_1_color)
background-color: rgba(0,0,0,0.5)
padding: 7px
border: 2px solid rgba(255,255,255,0.6)
box-shadow: 0 0 5px 5px var(--tray_1_bg)
border-radius: 50px
'--mdc-icon-size': 2.4em
- type: state-label
entity: sensor.a1mini_0309da441900142_ams_1_tray_1
attribute: type
tap_action:
action: none
style:
top: 40%
left: 45%
text-align: center
font-size: 1em
background-color: rgba(0,0,0,0.5)
padding: 7px
border: 2px solid rgba(255,255,255,0.6)
box-shadow: 0 0 5px 5px var(--tray_1_bg)
border-radius: 50px
pointer-events: none
color: '#FFFFFF'
- type: custom:config-template-card
entities:
- sensor.a1mini_0309da441900142_ams_1_tray_2
element:
type: state-icon
entity: sensor.a1mini_0309da441900142_ams_1_tray_2
icon: >-
${states['sensor.a1mini_0309da441900142_ams_1_tray_2'].state.lower
!= 'empty' ? 'fapro:filament-2' : 'mdi:tray' }
style:
top: 62%
left: 12%
'--paper-item-icon-color': var(--tray_2_color)
background-color: rgba(0,0,0,0.5)
padding: 7px
border: 2px solid rgba(255,255,255,0.6)
box-shadow: 0 0 5px 5px var(--tray_2_bg)
border-radius: 50px
'--mdc-icon-size': 2.4em
- type: state-label
entity: sensor.a1mini_0309da441900142_ams_1_tray_2
attribute: type
tap_action:
action: none
style:
top: 77%
left: 12%
text-align: center
font-size: 1em
background-color: rgba(0,0,0,0.5)
padding: 7px
border: 2px solid rgba(255,255,255,0.6)
box-shadow: 0 0 5px 5px var(--tray_2_bg)
border-radius: 50px
pointer-events: none
color: '#FFFFFF'
- type: custom:config-template-card
entities:
- sensor.a1mini_0309da441900142_ams_1_tray_3
element:
type: state-icon
entity: sensor.a1mini_0309da441900142_ams_1_tray_3
icon: >-
${states['sensor.a1mini_0309da441900142_ams_1_tray_3'].state.lower
!= 'empty' ? 'fapro:filament-2' : 'mdi:tray' }
style:
top: 63%
left: 63%
'--paper-item-icon-color': var(--tray_3_color)
background-color: rgba(0,0,0,0.5)
padding: 7px
border: 2px solid rgba(255,255,255,0.6)
box-shadow: 0 0 5px 5px var(--tray_3_bg)
border-radius: 50px
'--mdc-icon-size': 2.4em
- type: state-label
entity: sensor.a1mini_0309da441900142_ams_1_tray_3
attribute: type
tap_action:
action: none
style:
top: 77%
left: 63%
text-align: center
font-size: 1em
background-color: rgba(0,0,0,0.5)
padding: 7px
border: 2px solid rgba(255,255,255,0.6)
box-shadow: 0 0 5px 5px var(--tray_3_bg)
border-radius: 50px
pointer-events: none
color: '#FFFFFF'
- type: custom:config-template-card
entities:
- sensor.a1mini_0309da441900142_ams_1_tray_4
element:
type: state-icon
entity: sensor.a1mini_0309da441900142_ams_1_tray_4
icon: >-
${states['sensor.a1mini_0309da441900142_ams_1_tray_4'].state.lower
!= 'empty' ? 'fapro:filament-2' : 'mdi:tray' }
style:
top: 27%
left: 88%
'--paper-item-icon-color': var(--tray_4_color)
background-color: rgba(0,0,0,0.5)
padding: 7px
border: 2px solid rgba(255,255,255,0.6)
box-shadow: 0 0 5px 5px var(--tray_4_bg)
border-radius: 50px
'--mdc-icon-size': 2.4em
- type: state-label
entity: sensor.a1mini_0309da441900142_ams_1_tray_4
attribute: type
tap_action:
action: none
style:
top: 41%
left: 88%
text-align: center
font-size: 1em
background-color: rgba(0,0,0,0.5)
padding: 7px
border: 2px solid rgba(255,255,255,0.6)
box-shadow: 0 0 5px 5px var(--tray_4_bg)
border-radius: 50px
pointer-events: none
color: '#FFFFFF'
image: /local/media/bambuprinter/ams_lite.png
card_mod:
style: |
ha-card {
background: none !important;
border: none !important;
box-shadow: none !important;
--tray_1_color: {% if is_state_attr('sensor.a1mini_0309da441900142_ams_1_tray_1', 'color', '#00000000') %} rgb(255, 255, 255); {% else %} {{state_attr('sensor.a1mini_0309da441900142_ams_1_tray_1', 'color') }}; {% endif %}
--tray_2_color: {% if is_state_attr('sensor.a1mini_0309da441900142_ams_1_tray_2', 'color', '#F9F7F2FF') %} rgb(255, 255, 255); {% else %} {{state_attr('sensor.a1mini_0309da441900142_ams_1_tray_2', 'color') }}; {% endif %}
--tray_3_color: {% if is_state_attr('sensor.a1mini_0309da441900142_ams_1_tray_3', 'color', '#00000000') %} rgb(255, 255, 255); {% else %} {{state_attr('sensor.a1mini_0309da441900142_ams_1_tray_3', 'color') }}; {% endif %}
--tray_4_color: {% if is_state_attr('sensor.a1mini_0309da441900142_ams_1_tray_4', 'color', '#00000000') %} rgb(255, 255, 255); {% else %} {{state_attr('sensor.a1mini_0309da441900142_ams_1_tray_4', 'color') }}; {% endif %}
--tray_1_bg: {% if is_state_attr('sensor.a1mini_0309da441900142_ams_1_tray_1', 'active', true) %} rgba(255, 255, 126, 0.5); {% else %} rgba(0,0,0,0); {% endif %}
--tray_2_bg: {% if is_state_attr('sensor.a1mini_0309da441900142_ams_1_tray_2', 'active', true) %} rgba(255, 255, 126, 0.5); {% else %} rgba(0,0,0,0); {% endif %}
--tray_3_bg: {% if is_state_attr('sensor.a1mini_0309da441900142_ams_1_tray_3', 'active', true) %} rgba(255, 255, 126, 0.5); {% else %} rgba(0,0,0,0); {% endif %}
--tray_4_bg: {% if is_state_attr('sensor.a1mini_0309da441900142_ams_1_tray_4', 'active', true) %} rgba(255, 255, 126, 0.5); {% else %} rgba(0,0,0,0); {% endif %}
}
- type: grid
cards:
- type: heading
heading: AMS Lite
- type: custom:button-card
entity: switch.remove_me
name: Control
icon: mdi:printer-3d
show_icon: true
show_state: false
layout: icon_name
tap_action:
action: |
[[[
if (entity) return 'toggle';
else return 'none';
]]]
confirmation:
text: Toggle Printer Power?
state:
- value: 'on'
icon: mdi:power
color: green
- value: 'off'
icon: mdi:power
color: grey
styles:
grid:
- grid-template-columns: |
[[[
if (entity) return '20% 1fr 20%';
else return '20% 1fr 20%';
]]]
icon:
- width: |
[[[
if (entity) return '65px';
else return '0px';
]]]
- padding-left: 20px
name:
- text-wrap: balance
- font-size: 1.4em
card_mod:
style: |
ha-card {
background: rgba(0,0,0,0);
border: none;
box-shadow: none !important;
}
- type: custom:hui-element
card_type: horizontal-stack
cards:
- type: custom:hui-element
card_type: button
entity: select.a1mini_0309da441900142_printing_speed
name: Silent
icon: mdi:speedometer-slow
tap_action:
action: call-service
service: select.select_option
data:
option: silent
target:
entity_id: select.a1mini_0309da441900142_printing_speed
card_mod:
style: |
ha-card {
box-shadow: none !important;
background-color: rgba(0,0,0,0);
border: none;
--pbs-button-color: {% if is_state('select.a1mini_0309da441900142_printing_speed', 'Silent') or is_state('select.a1mini_0309da441900142_printing_speed', 'silent') %} yellow; {% else %} grey; {% endif %}
--paper-item-icon-color: {% if is_state('select.a1mini_0309da441900142_printing_speed', 'Silent') or is_state('select.a1mini_0309da441900142_printing_speed', 'silent') %} yellow; {% else %} grey; {% endif %}
}
- type: custom:hui-element
card_type: button
entity: select.a1mini_0309da441900142_printing_speed
name: Standard
icon: mdi:speedometer-medium
tap_action:
action: call-service
service: select.select_option
data:
option: standard
target:
entity_id: select.a1mini_0309da441900142_printing_speed
card_mod:
style: |
ha-card {
box-shadow: none !important;
background-color: rgba(0,0,0,0);
border: none;
--paper-item-icon-color: {% if is_state('select.a1mini_0309da441900142_printing_speed', 'Standard') or is_state('select.a1mini_0309da441900142_printing_speed', 'standard') %} yellow; {% else %} grey; {% endif %}
}
- type: custom:hui-element
card_type: button
entity: select.a1mini_0309da441900142_printing_speed
name: Sport
icon: mdi:speedometer
tap_action:
action: call-service
service: select.select_option
data:
option: sport
target:
entity_id: select.a1mini_0309da441900142_printing_speed
card_mod:
style: |
ha-card {
box-shadow: none !important;
background-color: rgba(0,0,0,0);
border: none;
--paper-item-icon-color: {% if is_state('select.a1mini_0309da441900142_printing_speed', 'Sport') or is_state('select.a1mini_0309da441900142_printing_speed', 'sport') %} yellow; {% else %} grey; {% endif %}
}
- type: custom:hui-element
card_type: button
entity: select.a1mini_0309da441900142_printing_speed
name: Ludicrous
icon: mdi:speedometer
tap_action:
action: call-service
service: select.select_option
data:
option: ludicrous
target:
entity_id: select.a1mini_0309da441900142_printing_speed
card_mod:
style: |
ha-card {
box-shadow: none !important;
background-color: rgba(0,0,0,0);
border: none;
--paper-item-icon-color: {% if is_state('select.a1mini_0309da441900142_printing_speed', 'Ludicrous') or is_state('select.a1mini_0309da441900142_printing_speed', 'ludicrous') %} yellow; {% else %} grey; {% endif %}
}
- type: vertical-stack
cards:
- type: conditional
conditions:
- condition: state
entity: fan.a1mini_0309da441900142_aux_fan
state_not: unavailable
- condition: state
entity: sensor.a1mini_0309da441900142_aux_fan
state_not: unknown
card:
type: custom:mushroom-fan-card
entity: fan.a1mini_0309da441900142_aux_fan
name: Aux Fan
icon_animation: true
show_percentage_control: true
fill_container: false
layout: horizontal
- type: conditional
card:
type: custom:mushroom-fan-card
entity: fan.a1mini_0309da441900142_cooling_fan
name: Part Cooling Fan
icon_animation: true
show_percentage_control: true
fill_container: false
layout: horizontal
conditions:
- condition: state
entity: fan.a1mini_0309da441900142_cooling_fan
state_not: unavailable
- condition: state
entity: sensor.a1mini_0309da441900142_cooling_fan
state_not: unknown
- type: conditional
card:
type: custom:mushroom-number-card
entity: sensor.a1mini_0309da441900142_nozzle_target_temperature
name: Set Nozzle Temp
layout: horizontal
display_mode: buttons
conditions:
- condition: state
entity: number.a1mini_0309da441900142_set_nozzle_temp
state_not: unavailable
- type: conditional
card:
type: custom:mushroom-number-card
entity: sensor.a1mini_0309da441900142_target_bed_temperature
name: Set Bed Temp
display_mode: buttons
layout: horizontal
conditions:
- condition: state
entity: number.a1mini_0309da441900142_set_bed_temp
state_not: unavailable
- type: vertical-stack
cards:
- type: vertical-stack
cards:
- type: custom:mushroom-title-card
title: ''
subtitle: Print Details
alignment: center
- type: custom:mushroom-entity-card
entity: sensor.a1mini_0309da441900142_task_name
name: Task
icon: mdi:clipboard-text
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: sensor.a1mini_0309da441900142_print_progress
name: Progress
icon: mdi:progress-helper
- type: custom:mushroom-template-card
primary: Layer
icon_color: var(--rgb-state-entity)
secondary: >-
{{states('sensor.a1mini_0309da441900142_current_layer')}}
/
{{states('sensor.a1mini_0309da441900142_total_layer_count')}}
icon: mdi:layers
- type: custom:tabbed-card
options: {}
tabs:
- card:
type: vertical-stack
cards:
- type: entities
entities:
- entity: sensor.a1mini_0309da441900142_current_stage
name: Stage
- entity: binary_sensor.a1mini_0309da441900142_hms_errors
name: HMS Notifications
- entity: sensor.a1mini_0309da441900142_start_time
name: Start Time
secondary_info: last-changed
- entity: sensor.a1mini_0309da441900142_end_time
name: End Time
- entity: sensor.a1mini_0309da441900142_remaining_time
name: Remaining Time
- entity: >-
binary_sensor.a1mini_0309da441900142_firmware_update
name: Firmware
attributes:
label: Details
- type: custom:gap-card
height: 5
- type: custom:hui-element
card_type: horizontal-stack
cards:
- type: custom:button-card
variables:
pause_entity: button.a1mini_0309da441900142_pause_printing
start_entity: button.a1mini_0309da441900142_resume_printing
entity: sensor.a1mini_0309da441900142_print_status
name: >
[[[ if (entity.state.toUpperCase() == 'RUNNING') return
"Pause";
else if (entity.state.toUpperCase() == 'PAUSE') return
"Resume";
else return ''; ]]]
state:
- value: RUNNING
icon: mdi:pause
color: orange
- value: running
icon: mdi:pause
color: orange
- value: PAUSE
icon: mdi:play
color: orange
- value: pause
icon: mdi:play
color: orange
- value: OFFLINE
icon: mdi:void
color: grey
- value: offline
icon: mdi:void
color: grey
- value: IDLE
icon: mdi:void
color: grey
- value: idle
icon: mdi:void
color: grey
- value: FAILED
icon: mdi:void
color: grey
- value: failed
icon: mdi:void
color: grey
- value: FINISH
icon: mdi:void
color: grey
- value: finish
icon: mdi:void
color: grey
- value: PREPARE
icon: mdi:void
color: grey
- value: prepare
icon: mdi:void
color: grey
tap_action:
action: >
[[[ if (entity.state.toUpperCase() == 'RUNNING' ||
entity.state.toUpperCase() == 'PAUSE') return
"call-service";
else return "none";
]]]
service: button.press
service_data:
entity_id: >
[[[ if
(states['sensor.a1mini_0309da441900142_print_status'].state.toUpperCase()
== 'RUNNING')
return variables.pause_entity;
if (states['sensor.a1mini_0309da441900142_print_status'].state.toUpperCase() == 'PAUSE')
return variables.start_entity;
else return "";
]]]
card_mod:
style: |
ha-card {
box-shadow: none !important;
background-color: rgba(0,0,0,0);
border: none;
--paper-item-icon-color: {% if is_state('sensor.a1mini_0309da441900142_print_status', 'RUNNING') or is_state('sensor.a1mini_0309da441900142_print_status', 'PAUSE') or is_state('sensor.a1mini_0309da441900142_print_status', 'running') or is_state('sensor.a1mini_0309da441900142_print_status', 'pause') %} orange; {% else %} grey; {% endif %}
}
- type: custom:gap-card
- type: custom:button-card
entity: sensor.a1mini_0309da441900142_print_status
name: >
[[[ if (entity.state.toUpperCase() == 'RUNNING') return
"Cancel";
else if (entity.state.toUpperCase() =='PAUSE') return
"Cancel";
else return ''; ]]]
confirmation:
text: Cancel Print?
state:
- value: RUNNING
icon: mdi:cancel
color: red
- value: running
icon: mdi:cancel
color: red
- value: PAUSE
icon: mdi:cancel
color: red
- value: pause
icon: mdi:cancel
color: red
- value: OFFLINE
icon: mdi:void
color: grey
- value: offline
icon: mdi:void
color: grey
- value: IDLE
icon: mdi:void
color: grey
- value: idle
icon: mdi:void
color: grey
- value: FAILED
icon: mdi:void
color: grey
- value: failed
icon: mdi:void
color: grey
- value: FINISH
icon: mdi:void
color: grey
- value: finish
icon: mdi:void
color: grey
- value: PREPARE
icon: mdi:void
color: grey
- value: prepare
icon: mdi:void
color: grey
tap_action:
action: >
[[[ if (entity.state.toUpperCase() == 'RUNNING' ||
entity.state.toUpperCase() == 'PAUSE') return
"call-service"; else return "none"; ]]]
service: button.press
service_data:
entity_id: button.a1mini_0309da441900142_stop_printing
card_mod:
style: |
ha-card {
box-shadow: none !important;
background-color: rgba(0,0,0,0);
border: none;
--paper-item-icon-color: {% if is_state('sensor.a1mini_0309da441900142_print_status', 'RUNNING') or is_state('sensor.a1mini_0309da441900142_print_status', 'PAUSE') or is_state('sensor.a1mini_0309da441900142_print_status', 'running') or is_state('sensor.a1mini_0309da441900142_print_status', 'pause') %} red; {% else %} grey; {% endif %}
}
- type: grid
cards:
- camera_view: live
type: picture-glance
entities: []
image_entity: image.a1mini_0309da441900142_camera
- show_state: true
show_name: true
camera_view: auto
type: picture-entity
camera_image: camera.a1mini_0309da441900142_camera
entity: camera.a1mini_0309da441900142_camera
name: 3d printer