Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: vertical-stack
- cards:
- - type: custom:mushroom-title-card
- title: Casa Fabio
- - square: false
- type: grid
- cards:
- - type: custom:button-card
- name: Soggiorno
- icon: mdi:sofa
- entity: light.soggiorno
- show_state: false
- show_label: true
- label: |
- [[[
- return states['sensor.broadlink_rm4_soggiorno_temperature'].state + "°C" + "<br>" + states['sensor.broadlink_rm4_soggiorno_humidity'].state + " %";
- ]]]
- tap_action:
- action: none
- double_tap_action:
- action: toggle
- custom_fields:
- btn:
- card:
- type: custom:mushroom-chips-card
- chips:
- - type: template
- tap_action:
- action: more-info
- entity: light.luce_soggiorno
- icon: |
- {% if is_state(entity, 'on') %}
- mdi:lightbulb-on
- {% else %}
- mdi:lightbulb-outline
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: more-info
- entity: vacuum.vacky
- icon: mdi:vacuum
- - type: template
- tap_action:
- action: more-info
- entity: camera.soggiorno
- icon: mdi:cctv
- card_mod:
- style:
- mushroom-template-chip:nth-child(3)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(223,130,108, 1)' if is_state('sensor.agentdvr_soggiorno_persona_rilevata','on') else 'rgba(223,130,108, 0.3)' }};
- padding: 5px !important;
- border-radius: 100px !important;
- }
- .: |
- ha-state-icon {
- animation: scan 5s ease-in-out infinite;
- transform-origin: 90% 80%
- }
- @keyframes scan {
- 0%, 100% { transform: rotate(20deg); }
- 50% { transform: rotate(-15deg); }
- }
- mushroom-template-chip:nth-child(2)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(166, 207, 152, 0.3)' if is_state('vacuum.vacky', 'docked') else 'rgba(166, 207, 152, 1)' }};
- padding: 5px !important;
- border-radius: 100px !important;
- }
- .: |
- ha-state-icon {
- animation: {{ 'scan 5s ease-in-out infinite' if not is_state('vacuum.vacky', 'docked') }};
- }
- @keyframes scan {
- 0%, 100% { transform: rotate(20deg); }
- 50% { transform: rotate(-15deg); }
- }
- mushroom-template-chip:nth-child(1)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(235, 204, 52, 1)' if is_state('light.soggiorno', 'on') else 'rgba(1235, 204, 52, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.soggiorno', 'on') }};
- padding: 5px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(var(--rgb-amber), 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(var(--rgb-amber), 0);
- }
- }
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- box-shadow: 0 0.5px 2px 0 rgba(0, 0, 0, 0.16);
- }
- .: |
- ha-state-icon {
- animation: {{ 'illumination 2s infinite' if is_state('light.soggiorno', 'on') }};
- }
- @keyframes illumination {
- 0%, 100% { clip-path: inset(0 0 0 0); }
- 95% { clip-path: polygon(0% 99%, 20% 55%, 22% 37%, 39% 20%, 61% 21%, 77% 35%, 79% 57%, 99% 100%); }
- }
- styles:
- grid:
- - grid-template-areas: '"n btn" "l btn" "i btn"'
- - grid-template-columns: 1fr min-content
- - grid-template-rows: min-content min-content 1fr
- img_cell:
- - justify-content: start
- - position: absolute
- - width: 150px
- - height: 150px
- - left: 0
- - bottom: 0
- - margin: 0 0 -30px -30px
- - background: '#FFC47E'
- - border-radius: 200px
- icon:
- - width: 60px
- - color: black
- - opacity: '0.6'
- card:
- - padding: 22px 8px 22px 22px
- custom_fields:
- btn:
- - justify-content: end
- - align-self: start
- name:
- - justify-self: start
- - align-self: start
- - font-size: 18px
- - font-weight: 500
- - color: null
- label:
- - min-height: 80px
- - justify-self: start
- - align-self: start
- - font-size: 14px
- - font-weight: 300
- - opacity: '0.7'
- state:
- - value: 'off'
- styles:
- img_cell:
- - background: '#FFC47E'
- - opacity: 0.2
- - value: unavailable
- styles:
- img_cell:
- - background: '#FFC47E'
- - opacity: 0.2
- - type: custom:button-card
- entity: light.cucina
- name: Cucina
- icon: hue:room-kitchen
- show_state: true
- tap_action:
- action: none
- double_tap_action:
- action: toggle
- custom_fields:
- btn:
- card:
- type: custom:mushroom-chips-card
- chips:
- - type: template
- tap_action:
- action: toggle
- entity: light.luce_cucina
- icon: |
- {% if is_state(entity, 'on') %}
- mdi:lightbulb-on
- {% else %}
- mdi:lightbulb-outline
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: toggle
- entity: switch.macchina_del_caffe
- icon: |
- {% if is_state(entity, 'on') %}
- mdi:coffee-maker
- {% else %}
- mdi:coffee-maker-outline
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- white
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: more-info
- entity: camera.cucina
- icon: mdi:cctv
- card_mod:
- style:
- mushroom-template-chip:nth-child(3)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(223,130,108, 1)' if is_state('sensor.agentdvr_cucina_persona_rilevata','on') else 'rgba(223,130,108, 0.3)' }};
- padding: 5px !important;
- border-radius: 100px !important;
- }
- .: |
- ha-state-icon {
- animation: scan 5s ease-in-out infinite;
- transform-origin: 90% 80%
- }
- @keyframes scan {
- 0%, 100% { transform: rotate(20deg); }
- 50% { transform: rotate(-15deg); }
- }
- mushroom-template-chip:nth-child(2)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(153, 78, 28, 1)' if is_state('switch.macchina_del_caffe', 'on') else 'rgba(153, 78, 28, 0.3)' }};
- animation: {{ 'ping 3s ease-out infinite' if is_state('switch.macchina_del_caffe', 'on') }};
- padding: 5px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(153, 78, 28, 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(153, 78, 28, 0);
- }
- }
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- box-shadow: 0 0.5px 2px 0 rgba(0, 0, 0, 0.16);
- }
- .: |
- ha-state-icon {
- {% if is_state('switch.macchina_del_caffe', 'on') %}
- animation: java 4s linear infinite;
- {% else %}
- {% endif %}
- }
- @keyframes java {
- 0%, 80%, 100% { clip-path: polygon(0 0, 100% 0, 100% 32%, 47% 32%, 47% 43%, 100% 43%, 100% 100%, 0 100%); }
- 10% { clip-path: polygon(0 0, 100% 0, 100% 32%, 47% 32%, 47% 43%, 100% 43%, 100% 100%, 55% 100%, 55% 79%, 63% 76%, 67% 70%, 66% 54%, 42% 55%, 42% 70%, 47% 77%, 55% 80%, 57% 100%, 0 100%); }
- 15% { clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 55% 79%, 63% 76%, 67% 70%, 66% 54%, 42% 54%, 42% 70%, 47% 77%, 55% 80%, 55% 100%, 0 100%); }
- 20% { clip-path: polygon(0 0, 100% 0, 100% 32%, 47% 32%, 47% 43%, 100% 43%, 100% 100%, 55% 100%, 55% 76%, 63% 76%, 67% 70%, 66% 54%, 42% 55%, 42% 70%, 47% 76%, 55% 76%, 57% 100%, 0 100%); }
- 25% { clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 55% 76%, 63% 76%, 67% 70%, 66% 54%, 42% 54%, 42% 70%, 47% 76%, 55% 76%, 56% 100%, 0 100%); }
- 30% { clip-path: polygon(0 0, 100% 0, 100% 32%, 47% 32%, 47% 43%, 100% 43%, 100% 100%, 55% 100%, 55% 73%, 64% 73%, 66% 70%, 66% 55%, 42% 55%, 42% 69%, 44% 73%, 55% 73%, 57% 100%, 0 100%); }
- 35% { clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 55% 73%, 64% 73%, 66% 70%, 66% 55%, 42% 54%, 42% 69%, 44% 73%, 55% 73%, 56% 100%, 0 100%); }
- 40% { clip-path: polygon(0 0, 100% 0, 100% 32%, 47% 32%, 47% 43%, 100% 43%, 100% 100%, 55% 100%, 55% 70%, 67% 70%, 66% 54%, 42% 54%, 42% 70%, 57% 70%, 57% 100%, 0 100%); }
- 45% { clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 55% 70%, 67% 70%, 66% 54%, 42% 54%, 42% 70%, 55% 70%, 56% 100%, 0 100%); }
- 50% { clip-path: polygon(0 0, 100% 0, 100% 32%, 47% 32%, 47% 43%, 100% 43%, 100% 100%, 55% 100%, 55% 66%, 67% 65%, 66% 54%, 42% 54%, 42% 65%, 57% 65%, 57% 100%, 0 100%); }
- 55% { clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 55% 66%, 67% 65%, 66% 54%, 42% 54%, 42% 65%, 55% 65%, 56% 100%, 0 100%); }
- 60% { clip-path: polygon(0 0, 100% 0, 100% 32%, 47% 32%, 47% 43%, 100% 43%, 100% 100%, 55% 100%, 55% 60%, 66% 60%, 66% 54%, 42% 54%, 42% 60%, 57% 60%, 57% 100%, 0 100%); }
- 65% { clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 55% 60%, 66% 60%, 66% 54%, 42% 54%, 42% 60%, 55% 60%, 56% 100%, 0 100%); }
- 70% { clip-path: polygon(0 0, 100% 0, 100% 32%, 47% 32%, 47% 43%, 100% 43%, 100% 100%, 55% 100%, 55% 56%, 66% 56%, 66% 54%, 42% 54%, 42% 56%, 57% 56%, 57% 100%, 0 100%); }
- 75% { clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 55% 56%, 66% 56%, 66% 54%, 42% 54%, 42% 56%, 55% 56%, 55% 100%, 0 100%); }
- }
- mushroom-template-chip:nth-child(1)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(235, 204, 52, 1)' if is_state('light.luce_cucina', 'on') else 'rgba(235, 204, 52, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.luce_cucina', 'on') }};
- padding: 5px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(var(--rgb-amber), 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(var(--rgb-amber), 0);
- }
- }
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- box-shadow: 0 0.5px 2px 0 rgba(0, 0, 0, 0.16);
- }
- .: |
- ha-state-icon {
- animation: {{ 'illumination 2s infinite' if is_state('light.luce_cucina', 'on') }};
- }
- @keyframes illumination {
- 0%, 100% { clip-path: inset(0 0 0 0); }
- 95% { clip-path: polygon(0% 99%, 20% 55%, 22% 37%, 39% 20%, 61% 21%, 77% 35%, 79% 57%, 99% 100%); }
- }
- state:
- - value: 'off'
- styles:
- img_cell:
- - background: '#D04848'
- - opacity: 0.3
- - value: unavailable
- styles:
- img_cell:
- - background: '#D04848'
- - opacity: 0.3
- styles:
- grid:
- - grid-template-areas: '"n btn" "s btn" "i btn"'
- - grid-template-columns: 1fr min-content
- - grid-template-rows: min-content min-content 1fr
- img_cell:
- - justify-content: start
- - position: absolute
- - width: 150px
- - height: 150px
- - left: 0
- - bottom: 0
- - margin: 0 0 -30px -30px
- - background: '#D04848'
- - border-radius: 200px
- icon:
- - width: 60px
- - color: black
- - opacity: '0.6'
- card:
- - padding: 22px 8px 22px 22px
- custom_fields:
- btn:
- - justify-content: end
- - align-self: start
- name:
- - justify-self: start
- - justify-content: start
- - align-self: start
- - font-size: 18px
- - font-weight: 500
- - color: null
- state:
- - min-height: 80px
- - justify-self: start
- - align-self: start
- - font-size: 12px
- - font-weight: 300
- - opacity: '0.7'
- - type: custom:button-card
- entity: light.camera
- name: Camera
- icon: hue:room-bedroom
- show_state: false
- show_label: true
- tap_action:
- action: none
- double_tap_action:
- action: toggle
- label: |
- [[[
- return states['sensor.broadlink_rm4_camera_temperature'].state + "°C<br>" + states['sensor.broadlink_rm4_camera_humidity'].state + " %";
- ]]]
- custom_fields:
- btn:
- card:
- type: custom:mushroom-chips-card
- chips:
- - type: template
- tap_action:
- action: toggle
- entity: light.luce_camera
- icon: |
- {% if is_state(entity, 'on') %}
- mdi:lightbulb-on
- {% else %}
- mdi:lightbulb-outline
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: toggle
- entity: light.comodino
- icon: |
- {% if is_state(entity, 'on') %}
- mdi:lamp
- {% else %}
- mdi:lamp
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: more-info
- entity: camera.camera
- icon: mdi:cctv
- card_mod:
- style:
- mushroom-template-chip:nth-child(3)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(223,130,108, 1)' if is_state('sensor.agentdvr_camera_persona_rilevata','on') else 'rgba(223,130,108, 0.3)' }};
- padding: 5px !important;
- border-radius: 100px !important;
- }
- .: |
- ha-state-icon {
- animation: scan 5s ease-in-out infinite;
- transform-origin: 90% 80%
- }
- @keyframes scan {
- 0%, 100% { transform: rotate(20deg); }
- 50% { transform: rotate(-15deg); }
- }
- mushroom-template-chip:nth-child(2)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(235, 204, 52, 1)' if is_state('light.comodino', 'on') else 'rgba(235, 204, 52, 0.3)' }};
- animation: {{ 'ping 3s ease-out infinite' if is_state('light.comodino', 'on') }};
- padding: 5px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(var(--rgb-amber), 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(var(--rgb-amber), 0);
- }
- }
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- box-shadow: 0 0.5px 2px 0 rgba(0, 0, 0, 0.16);
- }
- mushroom-template-chip:nth-child(1)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(235, 204, 52, 1)' if is_state('light.luce_camera', 'on') else 'rgba(235, 204, 52, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.luce_camera', 'on') }};
- padding: 5px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(var(--rgb-amber), 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(var(--rgb-amber), 0);
- }
- }
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- box-shadow: 0 0.5px 2px 0 rgba(0, 0, 0, 0.16);
- }
- .: |
- ha-state-icon {
- animation: {{ 'illumination 2s infinite' if is_state('light.luce_camera', 'on') }};
- }
- @keyframes illumination {
- 0%, 100% { clip-path: inset(0 0 0 0); }
- 95% { clip-path: polygon(0% 99%, 20% 55%, 22% 37%, 39% 20%, 61% 21%, 77% 35%, 79% 57%, 99% 100%); }
- }
- state:
- - value: 'off'
- styles:
- img_cell:
- - background: '#8E7AB5'
- - opacity: 0.3
- - value: unavailable
- styles:
- img_cell:
- - background: '#8E7AB5'
- - opacity: 0.3
- styles:
- grid:
- - grid-template-areas: '"n btn" "l btn" "i btn"'
- - grid-template-columns: 1fr min-content
- - grid-template-rows: min-content min-content 1fr
- img_cell:
- - justify-content: start
- - position: absolute
- - width: 150px
- - height: 150px
- - left: 0
- - bottom: 0
- - margin: 0 0 -30px -30px
- - background: '#8E7AB5'
- - border-radius: 200px
- icon:
- - width: 60px
- - color: black
- - opacity: '0.6'
- card:
- - padding: 22px 8px 22px 22px
- custom_fields:
- btn:
- - justify-content: end
- - align-self: start
- name:
- - justify-self: start
- - justify-content: start
- - align-self: start
- - font-size: 18px
- - font-weight: 500
- - color: null
- label:
- - min-height: 80px
- - justify-self: start
- - align-self: start
- - font-size: 14px
- - font-weight: 300
- - opacity: '0.7'
- - type: custom:button-card
- entity: light.cameretta
- name: Cameretta
- icon: hue:room-kids
- show_state: true
- tap_action:
- action: none
- double_tap_action:
- action: toggle
- custom_fields:
- btn:
- card:
- type: custom:mushroom-chips-card
- chips:
- - type: template
- tap_action:
- action: toggle
- entity: light.luce_cameretta
- icon: |
- {% if is_state(entity, 'on') %}
- mdi:lightbulb-on
- {% else %}
- mdi:lightbulb-outline
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: more-info
- entity: camera.cameretta
- icon: mdi:cctv
- - type: template
- card_mod:
- style:
- mushroom-template-chip:nth-child(3)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: transparent;
- padding: 5px !important;
- border-radius: 100px !important;
- border: none;
- }
- mushroom-template-chip:nth-child(2)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(223,130,108, 1)' if is_state('sensor.agentdvr_cameretta_persona_rilevata','on') else 'rgba(223,130,108, 0.3)' }};
- padding: 5px !important;
- border-radius: 100px !important;
- }
- .: |
- ha-state-icon {
- animation: scan 5s ease-in-out infinite;
- transform-origin: 90% 80%
- }
- @keyframes scan {
- 0%, 100% { transform: rotate(20deg); }
- 50% { transform: rotate(-15deg); }
- }
- mushroom-template-chip:nth-child(1)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(235, 204, 52, 1)' if is_state('light.luce_cameretta', 'on') else 'rgba(235, 204, 52, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.luce_cameretta', 'on') }};
- padding: 5px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(var(--rgb-amber), 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(var(--rgb-amber), 0);
- }
- }
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- box-shadow: 0 0.5px 2px 0 rgba(0, 0, 0, 0.16);
- }
- .: |
- ha-state-icon {
- animation: {{ 'illumination 2s infinite' if is_state('light.luce_cameretta', 'on') }};
- }
- @keyframes illumination {
- 0%, 100% { clip-path: inset(0 0 0 0); }
- 95% { clip-path: polygon(0% 99%, 20% 55%, 22% 37%, 39% 20%, 61% 21%, 77% 35%, 79% 57%, 99% 100%); }
- }
- state:
- - value: 'off'
- styles:
- img_cell:
- - background: '#FF9209'
- - opacity: 0.3
- - value: unavailable
- styles:
- img_cell:
- - background: '#FF9209'
- - opacity: 0.3
- styles:
- grid:
- - grid-template-areas: '"n btn" "s btn" "i btn"'
- - grid-template-columns: 1fr min-content
- - grid-template-rows: min-content min-content 1fr
- img_cell:
- - justify-content: start
- - position: absolute
- - width: 150px
- - height: 150px
- - left: 0
- - bottom: 0
- - margin: 0 0 -30px -30px
- - background: '#FF9209'
- - border-radius: 200px
- icon:
- - width: 60px
- - color: black
- - opacity: '0.6'
- card:
- - padding: 22px 8px 22px 22px
- custom_fields:
- btn:
- - justify-content: end
- - align-self: start
- name:
- - justify-self: start
- - justify-content: start
- - align-self: start
- - font-size: 18px
- - font-weight: 500
- - color: null
- state:
- - min-height: 80px
- - justify-self: start
- - align-self: start
- - font-size: 12px
- - font-weight: 300
- - opacity: '0.7'
- columns: 2
Advertisement
Comments
-
- Room card in stile Minimalistic ottenuta con custom button card e carte mushroom
Add Comment
Please, Sign In to add comment
Advertisement