Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- square: false
- type: grid
- cards:
- - type: custom:button-card
- name: Vorraum
- icon: mdi:hanger
- show_state: true
- entity: sensor.temperatur_badezimmer_temperature
- tap_action:
- action: navigate
- navigation_path: '#vorraum'
- custom_fields:
- btn:
- card:
- type: custom:mushroom-chips-card
- chips:
- - type: light
- entity: light.vorraum_licht
- tap_action:
- action: toggle
- hold_action:
- action: navigate
- navigation_path: '#vorraum_licht'
- content_info: none
- icon: mdi:led-strip-variant
- card_mod:
- style: |
- ha-card {
- --chip-background: {{'var(--cse-yellow)' if is_state('light.vorraum_licht', 'on') else 'var(--cse-yellow-tint)'}};
- padding: 5px!important;
- border-radius: 100px!important;
- }
- - type: alarm-control-panel
- entity: alarm_control_panel.alarm
- tap_action:
- action: navigate
- navigation_path: '#alarm'
- content_info: none
- card_mod:
- style: |
- ha-card {
- --chip-background: {{'var(--cse-moss)' if is_state('alarm_control_panel.alarm', 'triggered') else 'var(--cse-moss-tint)'}};
- padding: 5px!important;
- border-radius: 100px!important;
- }
- - type: entity
- entity: lock.nuki_haustur_lock
- tap_action:
- action: navigate
- navigation_path: '#lock'
- hold_action:
- action: navigate
- navigation_path: '#vorraum_licht'
- content_info: none
- icon: mdi:lock
- card_mod:
- style: |
- ha-card {
- --chip-background: {{'var(--cse-brown)' if is_state('lock.nuki_haustur_lock', 'locked') else 'var(--cse-brown-tint)'}};
- padding: 5px!important;
- border-radius: 100px!important;
- }
- card_mod:
- style:
- mushroom-light-chip:nth-child(1)$: |
- ha-state-icon {
- --color: black !important;
- }
- mushroom-alarm-control-panel-chip:nth-child(2)$: |
- ha-state-icon {
- --color: black !important;
- }
- notification:
- card:
- type: conditional
- conditions:
- - condition: state
- entity: binary_sensor.haustur
- state: 'on'
- card:
- type: custom:mushroom-chips-card
- chips:
- - type: template
- icon: mdi:door-open
- icon_color: white
- card_mod:
- style: |
- ha-card {
- --chip-background: var(--blue);
- --chip-icon-symbol-size: 70px;
- }
- card_mod:
- style:
- mushroom-template-chip:nth-child(1)$: |
- ha-state-icon {
- --chip-icon-size: 22px;
- margin: 0px 0px 0px px;
- styles:
- grid:
- - grid-template-areas: '"n btn" "s btn" "i btn" "notification btn"'
- - grid-template-columns: 1fr min-content
- - grid-template-rows: min-content min-content min-content 1fr
- card:
- - padding: 22px 8px 22px 22px
- custom_fields:
- btn:
- - justify-content: end
- - align-self: start
- notification:
- - border-radius: 50%
- - position: absolute
- - left: 25%
- - top: 50%
- - height: 30px
- - width: 30px
- - font-size: 8px
- - line-height: 20px
- name:
- - justify-self: start
- - align-self: start
- - font-size: 16px
- - font-weight: 600
- icon:
- - width: 60px
- - opacity: '0.6'
- - color: black
- state:
- - min-height: 80px
- - justify-self: start
- - align-self: start
- - font-size: 14px
- - opacity: '0'
- img_cell:
- - justify-content: start
- - position: absolute
- - width: 120px
- - height: 120px
- - left: 0
- - bottom: 0
- - margin: 0 0 -30px -30px
- - background: var(--cse-light-orange)
- - border-radius: 200px!important
- - type: custom:button-card
- name: Badezimmer
- icon: mdi:shower-head
- tap_action:
- action: navigate
- navigation_path: '#bad'
- show_state: true
- custom_fields:
- temp: >
- [[[ return
- Math.floor(states['sensor.temperatur_badezimmer_temperature'].state) +
- '°C' ]]]
- hum: >
- [[[ return
- Math.floor(states['sensor.temperatur_badezimmer_humidity'].state) + '%'
- ]]]
- btn:
- card:
- type: custom:mushroom-chips-card
- chips:
- - type: light
- entity: light.badezimmer_ambient_licht
- tap_action:
- action: toggle
- hold_action:
- action: navigate
- navigation_path: '#bad_ambient'
- content_info: none
- icon: mdi:led-strip-variant
- card_mod:
- style: |
- ha-card {
- --chip-background: {{'rgba(252, 222, 112, 1)' if is_state('light.badezimmer_ambient_licht', 'on') else 'rgba(252, 222, 112, 0.6)'}};
- padding: 5px!important;
- border-radius: 100px!important;
- }
- - type: light
- entity: light.badezimmer_ambient_licht
- tap_action:
- action: toggle
- hold_action:
- action: navigate
- navigation_path: '#bad_ambient'
- content_info: none
- icon: none
- card_mod:
- style: |
- ha-card {
- --chip-background: none;
- padding: 5px!important;
- border-radius: 100px!important;
- }
- - type: light
- entity: light.badezimmer_ambient_licht
- tap_action:
- action: toggle
- hold_action:
- action: navigate
- navigation_path: '#bad_ambient'
- content_info: none
- icon: none
- card_mod:
- style: |
- ha-card {
- --chip-background: none;
- padding: 5px!important;
- border-radius: 100px!important;
- }
- notification:
- card:
- type: conditional
- conditions:
- - condition: state
- entity: binary_sensor.fenster_badezimmer
- state: 'on'
- card:
- type: custom:mushroom-chips-card
- chips:
- - type: template
- icon: mdi:window-open-variant
- icon_color: white
- card_mod:
- style: |
- ha-card {
- --chip-background: var(--blue);
- --chip-icon-symbol-size: 70px;
- }
- card_mod:
- style:
- mushroom-template-chip:nth-child(1)$: |
- ha-state-icon {
- --chip-icon-size: 22px;
- margin: 0px 0px 0px px;
- styles:
- grid:
- - grid-template-areas: '"n btn" "temp btn" "hum btn" "i btn" "notification btn"'
- - grid-template-columns: 1fr min-content
- - grid-template-rows: min-content min-content min-content min-content min-content 1fr
- card:
- - padding: 22px 8px 22px 22px
- custom_fields:
- btn:
- - justify-content: end
- - align-self: start
- temp:
- - justify-self: start
- - align-self: start
- - font-size: 14px
- - opacity: '0.7'
- - padding-top: 2px
- hum:
- - justify-self: start
- - align-self: start
- - font-size: 14px
- - opacity: '0.7'
- - font-weight: >
- [[[if(states['sensor.temperatur_badezimmer_humidity'].state>55)
- return 600 ]]]
- - background-color: >
- [[[if(states['sensor.temperatur_badezimmer_humidity'].state>55)
- return 'var(--red)' ]]]
- - border-radius: 100px
- - padding: 3px 8px 3px 8px
- - margin-left: '-8px'
- notification:
- - border-radius: 100%
- - position: absolute
- - left: 25%
- - top: 50%
- - height: 30px
- - width: 30px
- - font-size: 8px
- - line-height: 20px
- name:
- - justify-self: start
- - align-self: start
- - font-size: 16px
- - font-weight: 600
- icon:
- - width: 60px
- - opacity: '0.6'
- - color: black
- state:
- - min-height: 80px
- - justify-self: start
- - align-self: start
- - font-size: 14px
- - opacity: '0.7'
- img_cell:
- - justify-content: start
- - position: absolute
- - width: 120px
- - height: 120px
- - left: 0
- - bottom: 0
- - margin: 0 0 -30px -30px
- - background: '#A1D6B2'
- - border-radius: 200px!important
- columns: 2
- title: ' '
Advertisement
Add Comment
Please, Sign In to add comment