Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: vertical-stack
- cards:
- - square: false
- type: grid
- columns: 2
- cards:
- - type: custom:button-card
- name: Ingresso
- icon: hue:room-hallway
- entity: light.ingresso
- show_label: true
- label: |
- [[[
- if (states['sensor.porta_ingresso'].state === 'Porta aperta')
- return states['sensor.porta_ingresso'].state
- else if (states['light.ingresso'].state === 'on')
- return "Luci accese"
- else if (states['light.ingresso'].state === 'off')
- return 'Luci spente'
- else return "Luci non disponibili"
- ]]]
- tap_action:
- action: none
- double_tap_action:
- action: toggle
- custom_fields:
- btn:
- card:
- type: custom:mushroom-chips-card
- alignment: end
- chips:
- - type: template
- tap_action:
- action: toggle
- entity: light.luce_ingresso_1
- icon: |
- {% if is_state(entity, 'on') %}
- hue:bulb-group-spot-hung
- {% else %}
- hue:bulb-group-spot-hung
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: toggle
- entity: light.luce_ingresso_2
- icon: |
- {% if is_state(entity, 'on') %}
- hue:bulb-spot-hung
- {% else %}
- hue:bulb-spot-hung
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: more-info
- entity: sensor.porta_ingresso
- icon: |
- {% if is_state(entity, 'Porta aperta') %}
- mdi:door
- {% else %}
- mdi:door-closed
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'Porta aperta') %}
- black
- {% else %}
- {% endif %}
- card_mod:
- style:
- mushroom-template-chip:nth-child(3)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(223,130,108, 1)' if is_state('sensor.porta_ingresso', 'Porta aperta') else 'rgba(223,130,108, 0.3)' }};
- padding: 0px !important;
- border-radius: 100px !important;
- }
- .: |
- ha-state-icon {
- perspective: 45px;
- animation: {{ 'open 6s ease-in-out infinite' if is_state('sensor.porta_ingresso', 'Porta aperta') }};
- transform-origin: 30%;
- }
- @keyframes open {
- 0%, 66% { transform: rotateY(0deg); }
- 33% { transform: rotateY(-120deg); }
- }
- ha-icon {
- perspective: 45px;
- }
- mushroom-template-chip:nth-child(2)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(235, 204, 52, 1)' if is_state('light.luce_ingresso_2', 'on') else 'rgba(1235, 204, 52, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.luce_ingresso_2', 'on') }};
- padding: 0px !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_ingresso_1', 'on') else 'rgba(1235, 204, 52, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.luce_ingresso_1', 'on') }};
- padding: 0px !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);
- }
- styles:
- grid:
- - grid-template-areas: '"btn btn btn" "i n n" "i l l"'
- - grid-template-columns: min-content 1fr 1fr
- - grid-template-rows: 2fr min-content min-content
- img_cell:
- - justify-content: center
- - position: absolute
- - width: 60px
- - height: 60px
- - left: 0
- - bottom: 0
- - margin: 0px 0px -10px -10px
- - background: '#836FFF'
- - border-radius: 200px
- icon:
- - width: 30px
- - color: black
- - opacity: '0.6'
- card:
- - height: 96px
- - padding: 10px 10px 12px 0px
- - box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
- custom_fields:
- btn:
- - justify-content: start
- - align-self: start
- name:
- - justify-self: start
- - align-self: start
- - font-size: 16px
- - font-weight: 500
- - padding-top: 3px
- - padding-left: 65px
- label:
- - min-height: 13px
- - justify-self: start
- - align-self: start
- - font-size: 13px
- - font-weight: 300
- - padding-left: 65px
- - opacity: '0.7'
- state:
- - value: 'on'
- styles:
- card:
- - border: solid 5px rgba(131, 111, 255, 1)
- - value: 'off'
- styles:
- card:
- - border: solid 5px rgba(131, 111, 255, 0.2)
- img_cell:
- - background: '#836FFF'
- - opacity: 0.2
- - value: unavailable
- styles:
- card:
- - border: solid 5px rgba(131, 111, 255, 0.2)
- img_cell:
- - background: '#836FFF'
- - opacity: 0.2
- - type: custom:button-card
- name: Corridoio
- icon: hue:room-other
- entity: light.corridoio
- show_label: true
- label: |
- [[[
- if (states['light.corridoio'].state === 'on')
- return "Luci accese"
- else if (states['light.corridoio'].state === 'off')
- return "Luci spente"
- else return "Luci non disponibili"
- ]]]
- tap_action:
- action: toggle
- double_tap_action:
- action: toggle
- custom_fields:
- btn:
- card:
- type: custom:mushroom-chips-card
- alignment: end
- chips:
- - type: template
- tap_action:
- action: toggle
- entity: light.armadio
- icon: |
- {% if is_state(entity, 'on') %}
- mdi:hanger
- {% else %}
- mdi:hanger
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: toggle
- entity: light.scarpiera
- icon: |
- {% if is_state(entity, 'on') %}
- mdi:shoe-sneaker
- {% else %}
- mdi:shoe-sneaker
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: more-info
- entity: binary_sensor.lavatrice_run
- icon: mdi:washing-machine
- icon_color: |
- {% if is_state(entity, 'on') %}
- orange
- {% else %}
- {% endif %}
- card_mod:
- style:
- mushroom-template-chip:nth-child(1)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(219, 145, 79, 1)' if is_state('light.armadio', 'on') else 'rgba(219, 145, 79, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.armadio', 'on') }};
- padding: 0px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(219, 145, 79, 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(219, 145, 79, 1), 0);
- }
- }
- .: |
- ha-state-icon {
- animation: {{ 'scan 4s ease-in-out infinite' if is_state('light.armadio', 'on') }};
- }
- @keyframes scan {
- 0%, 100% { transform: rotate(20deg); }
- 50% { transform: rotate(-15deg); }
- }
- 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(2)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(166, 207, 152, 1)' if is_state('light.scarpiera', 'on') else 'rgba(166, 207, 152, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.scarpiera', 'on') }};
- padding: 0px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(166, 207, 152, 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(166, 207, 152, 1), 0);
- }
- }
- .: |
- ha-state-icon {
- animation: {{ 'scan 4s ease-in-out infinite' if is_state('light.scarpiera', 'on') }};
- }
- @keyframes scan {
- 0%, 100% { transform: rotate(20deg); }
- 50% { transform: rotate(-15deg); }
- }
- 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(3)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(181, 235, 143, 1)' if is_state('binary_sensor.lavatrice_run','on') else 'rgba(181, 235, 143, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('binary_sensor.lavatrice_run', 'on') }};
- padding: 0px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(181, 235, 143, 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(181, 235, 143, 1), 0);
- }
- }
- .: |
- ha-state-icon {
- animation: {{ 'shake 400ms ease-in-out infinite, drum 2s ease infinite' if is_state('binary_sensor.lavatrice_run','on') }};
- transform-origin: 50% 110%;
- } @keyframes shake {
- 0%, 100% { transform: translate(0, 0) rotate(0); }
- 20% { transform: translate(0.4px, -0.4px) rotate(-4deg); }
- 40% { transform: translate(-0.4px, 0.4px) rotate(4deg); }
- 60% { transform: translate(0.4px, 0.4px) rotate(-4deg); }
- 80% { transform: translate(-0.4px, -0.4px) rotate(4deg); }
- } @keyframes drum {
- 50% { clip-path: polygon(0 0, 0 100%, 35% 100%, 34% 68%, 60% 41%, 71% 56%, 65% 74%, 47% 79%, 32% 69%, 35% 100%, 100% 100%, 100% 0); }
- }
- styles:
- grid:
- - grid-template-areas: '"btn btn btn" "i n n" "i l l"'
- - grid-template-columns: min-content 1fr 1fr
- - grid-template-rows: 2fr min-content min-content
- img_cell:
- - justify-content: center
- - position: absolute
- - width: 60px
- - height: 60px
- - left: 0
- - bottom: 0
- - margin: 0px 0px -10px -10px
- - background: '#ebf595'
- - border-radius: 200px
- icon:
- - width: 30px
- - color: black
- - opacity: '0.6'
- card:
- - height: 96px
- - padding: 10px 10px 12px 0px
- - box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
- custom_fields:
- btn:
- - justify-content: start
- - align-self: start
- name:
- - justify-self: start
- - align-self: start
- - font-size: 16px
- - font-weight: 500
- - padding-top: 3px
- - padding-left: 65px
- label:
- - min-height: 13px
- - justify-self: start
- - align-self: start
- - font-size: 13px
- - font-weight: 300
- - padding-left: 65px
- - opacity: '0.7'
- state:
- - value: 'on'
- styles:
- card:
- - border: solid 5px rgba(235, 245, 149, 1)
- - value: 'off'
- styles:
- card:
- - border: solid 5px rgba(235, 245, 149, 0.2)
- img_cell:
- - background: '#ebf595'
- - opacity: 0.2
- - value: unavailable
- styles:
- card:
- - border: solid 5px rgba(235, 245, 149, 0.2)
- img_cell:
- - background: '#ebf595'
- - opacity: 0.2
- - type: custom:button-card
- name: Studio
- icon: hue:room-computer
- entity: light.studio
- show_label: true
- label: |
- [[[
- if (states['light.studio'].state === 'on')
- return "Luci accese"
- else if (states['light.studio'].state === 'off')
- return "Luci spente"
- else return "Luci non disponibili"
- ]]]
- tap_action:
- action: none
- double_tap_action:
- action: toggle
- custom_fields:
- btn:
- card:
- type: custom:mushroom-chips-card
- alignment: end
- chips:
- - type: template
- tap_action:
- action: toggle
- entity: light.luce_studio
- 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.luce_scrivania
- icon: |
- {% if is_state(entity, 'on') %}
- hue:desk-lamp
- {% else %}
- hue:desk-lamp
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: more-info
- entity: media_player.echo_show_tina
- icon: |
- {% if is_state(entity, 'playing') %}
- mdi:speaker
- {% else %}
- phu:echo-show-5-gen-2
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'playing') %}
- black
- {% else %}
- {% endif %}
- card_mod:
- style:
- mushroom-template-chip:nth-child(1)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(235, 204, 52, 1)' if is_state('light.luce_studio', 'on') else 'rgba(1235, 204, 52, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.luce_studio', 'on') }};
- padding: 0px !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_studio', '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%); }
- }
- mushroom-template-chip:nth-child(2)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(166, 207, 152, 1)' if is_state('light.luce_scrivania', 'on') else 'rgba(166, 207, 152, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.luce_scrivania', 'on') }};
- padding: 0px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(166, 207, 152, 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(166, 207, 152, 1), 0);
- }
- }
- .: |
- ha-state-icon {
- animation: {{ 'scan 4s ease-in-out infinite' if is_state('light.luce_scrivania', 'on') }};
- }
- @keyframes scan {
- 0%, 100% { transform: rotate(20deg); }
- 50% { transform: rotate(-15deg); }
- }
- 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(3)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(219, 145, 79, 1)' if is_state('media_player.echo_show_tina', 'playing') else 'rgba(219, 145, 79, 0.3)' }};
- animation: {{ 'ping 1.3s ease-out infinite, beat 1.3s ease-out infinite both;' if is_state('media_player.echo_show_tina', 'playing') }};
- padding: 0px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(219, 145, 79, 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(219, 145, 79, 1), 0);
- }
- }
- @keyframes beat {
- 0% { transform: scale(1); }
- 10% { transform: scale(1.1); }
- 17% { transform: scale(1.05); }
- 33% { transform: scale(1.25); }
- 60% { transform: scale(1); }
- }
- .: |
- ha-state-icon {
- animation: {{ 'beat 1.3s ease-out infinite both;' if is_state('media_player.echo_show_tina', 'playing') }};
- }
- @keyframes beat {
- 0% { transform: scale(1); }
- 10% { transform: scale(1.1); }
- 17% { transform: scale(1.05); }
- 33% { transform: scale(1.25); }
- 60% { transform: scale(1); }
- }
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- box-shadow: 0 0.5px 2px 0 rgba(0, 0, 0, 0.16);
- }
- styles:
- grid:
- - grid-template-areas: '"btn btn btn" "i n n" "i l l"'
- - grid-template-columns: min-content 1fr 1fr
- - grid-template-rows: 2fr min-content min-content
- img_cell:
- - justify-content: center
- - position: absolute
- - width: 60px
- - height: 60px
- - left: 0
- - bottom: 0
- - margin: 0px 0px -10px -10px
- - background: '#F4D160'
- - border-radius: 200px
- icon:
- - width: 30px
- - color: black
- - opacity: '0.6'
- card:
- - height: 96px
- - padding: 10px 10px 12px 0px
- - box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
- custom_fields:
- btn:
- - justify-content: start
- - align-self: start
- name:
- - justify-self: start
- - align-self: start
- - font-size: 16px
- - font-weight: 500
- - padding-top: 3px
- - padding-left: 65px
- label:
- - min-height: 13px
- - justify-self: start
- - align-self: start
- - font-size: 13px
- - font-weight: 300
- - padding-left: 65px
- - opacity: '0.7'
- state:
- - value: 'on'
- styles:
- card:
- - border: solid 5px rgba(244, 209, 96, 1)
- - value: 'off'
- styles:
- card:
- - border: solid 5px rgba(244, 209, 96, 0.2)
- img_cell:
- - background: '#F4D160'
- - opacity: 0.2
- - value: unavailable
- styles:
- card:
- - border: solid 5px rgba(244, 209, 96, 0.2)
- img_cell:
- - background: '#F4D160'
- - opacity: 0.2
- - type: custom:button-card
- name: Bagni
- icon: hue:room-computer
- entity: light.bagni
- show_label: true
- label: |
- [[[
- if (states['light.bagni'].state === 'on')
- return "Luci accese"
- else if (states['light.bagni'].state === 'off')
- return "Luci spente"
- else return "Luci non disponibili"
- ]]]
- tap_action:
- action: none
- double_tap_action:
- action: none
- custom_fields:
- btn:
- card:
- type: custom:mushroom-chips-card
- alignment: end
- chips:
- - type: template
- tap_action:
- action: toggle
- entity: light.luce_bagno_piccolo
- icon: |
- {% if is_state(entity, 'on') %}
- mdi:shower-head
- {% else %}
- mdi:shower-head
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: toggle
- entity: light.specchio_bagno_piccolo
- icon: |
- {% if is_state(entity, 'on') %}
- mdi:mirror-rectangle
- {% else %}
- mdi:mirror-rectangle
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: toggle
- entity: input_boolean.sensore_bagno
- icon: >
- {% if is_state(entity, 'off') %}
- phu:aqara-motion
- {% elif
- is_state('binary_sensor.lumi_lumi_sensor_motion_aq2_motion_2',
- 'on') %}
- mdi:motion-sensor
- {% else %}
- phu:aqara-motion
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- - type: template
- tap_action:
- action: toggle
- entity: light.luce_bagno_grande
- icon: |
- {% if is_state(entity, 'on') %}
- mdi:shower
- {% else %}
- mdi:shower
- {% endif %}
- icon_color: |
- {% if is_state(entity, 'on') %}
- black
- {% else %}
- {% endif %}
- card_mod:
- style:
- mushroom-template-chip:nth-child(1)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(var(--rgb-amber), 1)' if is_state('light.luce_bagno_piccolo', 'on') else 'rgba(var(--rgb-amber), 0.3)' }};
- padding: 0px !important;
- border-radius: 100px !important;
- }
- 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: {{ 'clip 0.7s ease-out infinite' if is_state('light.luce_bagno_piccolo', 'on') }};
- }
- @keyframes clip {
- 0% {clip-path: inset(0 0 45% 0); }
- 100% { clip-path: inset(0 0 0 0); }
- }
- mushroom-template-chip:nth-child(2)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(126, 147, 247, 1)' if is_state('light.specchio_bagno_piccolo', 'on') else 'rgba(126, 147, 247, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.specchio_bagno_piccolo', 'on') }};
- padding: 0px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(110, 133, 245, 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(110, 133, 245, 1), 0);
- }
- }
- .: |
- ha-state-icon {
- animation: {{ 'scan 4s ease-in-out infinite' if is_state('light.specchio_bagno_piccolo', 'on') }};
- }
- @keyframes scan {
- 0%, 100% { transform: rotate(20deg); }
- 50% { transform: rotate(-15deg); }
- }
- 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(3)$:
- mushroom-chip$: |
- ha-card {
- {% if states('input_boolean.sensore_bagno') == 'off' %}
- --chip-background: rgba(97, 150, 166, 0.3);
- {% elif not states('binary_sensor.lumi_lumi_sensor_motion_aq2_motion_2') == 'on' %}
- --chip-background: rgba(97, 150, 166, 1);
- {% else %}
- animation: motion 2s linear infinite;
- {% endif %}
- padding: 0px !important;
- border-radius: 100px !important;
- }
- @keyframes motion {
- 0%, 100% { --chip-background: rgba(97, 150, 166, 0.8); }
- 50% { --chip-background: rgba(97, 150, 166, 0.5); }
- }
- .: |
- ha-state-icon {
- {% if states('input_boolean.sensore_bagno') == 'on'and states('binary_sensor.lumi_lumi_sensor_motion_aq2_motion_2') == 'on' %}
- animation: clip 2s linear infinite;
- {% else %}
- {% endif %}
- }
- @keyframes clip {
- 50% { clip-path: polygon(0 0, 55% 0, 100% 100%, 0 100%); }
- }
- 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(4)$:
- mushroom-chip$: |
- ha-card {
- --chip-background: {{ 'rgba(166, 207, 152, 1)' if is_state('light.luce_bagno_grande', 'on') else 'rgba(166, 207, 152, 0.3)' }};
- animation: {{ 'ping 2s ease-out infinite' if is_state('light.luce_bagno_grande', 'on') }};
- padding: 0px !important;
- border-radius: 100px !important;
- }
- @keyframes ping {
- 0% {
- box-shadow: 0 0 5px 1px rgba(166, 207, 152, 1);
- }
- 100% {
- box-shadow: 0 0 5px 10px rgba(166, 207, 152, 1), 0);
- }
- }
- .: |
- ha-state-icon {
- animation: {{ 'scan 4s ease-in-out infinite' if is_state('light.luce_bagno_grande', 'on') }};
- }
- @keyframes scan {
- 0%, 100% { transform: rotate(20deg); }
- 50% { transform: rotate(-15deg); }
- }
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- box-shadow: 0 0.5px 2px 0 rgba(0, 0, 0, 0.16);
- }
- styles:
- grid:
- - grid-template-areas: '"btn btn btn" "i n n" "i l l"'
- - grid-template-columns: min-content 1fr 1fr
- - grid-template-rows: 2fr min-content min-content
- img_cell:
- - justify-content: center
- - position: absolute
- - width: 60px
- - height: 60px
- - left: 0
- - bottom: 0
- - margin: 0px 0px -10px -10px
- - background: '#85a389'
- - border-radius: 200px
- icon:
- - width: 30px
- - color: black
- - opacity: '0.6'
- card:
- - height: 96px
- - padding: 10px 10px 12px 0px
- - box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
- custom_fields:
- btn:
- - justify-content: start
- - align-self: start
- name:
- - justify-self: start
- - align-self: start
- - font-size: 16px
- - font-weight: 500
- - padding-top: 3px
- - padding-left: 65px
- label:
- - min-height: 13px
- - justify-self: start
- - align-self: start
- - font-size: 13px
- - font-weight: 300
- - padding-left: 65px
- - opacity: '0.7'
- state:
- - value: 'on'
- styles:
- card:
- - border: solid 5px rgba(133, 163, 137, 1)
- - value: 'off'
- styles:
- card:
- - border: solid 5px rgba(133, 163, 137, 0.2)
- img_cell:
- - background: '#85a389'
- - opacity: 0.2
- - value: unavailable
- styles:
- card:
- - border: solid 5px rgba(133, 163, 137, 0.2)
- img_cell:
- - background: '#85a389'
- - opacity: 0.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement