Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: horizontal-stack
- cards:
- - type: custom:button-card
- color_type: blank-card
- styles:
- card:
- - width: 20px
- - type: custom:mushroom-template-card
- primary: ''
- secondary: ''
- icon: |
- {% if states('sensor.luci_accese')|int >= 1 %}
- {{ 'mdi:numeric-' + states('sensor.luci_accese') + '-circle' }}
- {%- else -%}
- mdi:lightbulb
- {% endif %}
- icon_color: |
- {% if states('sensor.luci_accese')|int >= 1 %}
- yellow
- {% else %}
- disabled
- {% endif %}
- badge_icon: |
- {% if states('sensor.luci_accese')|int >= 1 %}
- mdi:lightbulb-on
- {% else %}
- {% endif %}
- badge_color: yellow
- layout: vertical
- card_mod:
- style:
- mushroom-shape-icon$: |
- .shape {
- {% if states('sensor.luci_accese')|int >= 1 %}
- --shape-color: rgba(var(--rgb-red), 0.4);
- {%- else -%}
- {% endif %}
- box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
- }
- .: |
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- }
- ha-card {
- transform: scale(1.3);
- border: none;
- box-shadow: none;
- padding-left: 0px;
- background: rgba(0,0,0,0);
- }
- ha-state-icon {
- {% if states('sensor.luci_accese')|int >= 1 %}
- animation: alarm 3s ease infinite;
- {%- else -%}
- {% endif %}
- }
- @keyframes alarm {
- 0%, 80%, 100% { transform: translateY(0); }
- 10% { transform: translateY(-2px) rotate(-27deg); }
- 20% { transform: translateY(-2px) rotate(21deg); }
- 30% { transform: translateY(-2px) rotate(-15deg); }
- 40% { transform: translateY(-2px) rotate(9deg); }
- 50% { transform: translateY(0); }
- 60% { transform: translateY(-1.2px) }
- }
- mushroom-badge-icon {
- #--badge-icon-size: 10px;
- --icon-color: red;
- animation: wobbling 0.7s linear infinite alternate;
- }
- @keyframes wobbling {
- 0% {transform: rotate(-20deg);}
- 100% {transform: rotate(20deg);}
- }
- - type: custom:mushroom-template-card
- entity: cover.tapparelle
- icon: >
- {% if states('binary_sensor.lumi_lumi_sensor_magnet_aq2_opening') == 'on'
- %}
- mdi:door
- {% elif states('cover.tapparella') == 'opening' or
- states('cover.tapparella') == 'closing' %}
- mdi:window-shutter
- {% else %}
- mdi:window-shutter
- {% endif %}
- icon_color: >
- {% if states('binary_sensor.lumi_lumi_sensor_magnet_aq2_opening') == 'on'
- %}
- red
- {% elif states('cover.tapparella') == 'opening' or
- states('cover.tapparella') == 'closing' %}
- red
- {% else %}
- blue
- {% endif %}
- badge_icon: >
- {% if states('binary_sensor.lumi_lumi_sensor_magnet_aq2_opening') == 'on'
- or states('cover.tapparella') == 'opening' or states('cover.tapparella')
- == 'closing' %}
- mdi:alert
- {%- else -%}
- {% endif %}
- badge_color: red
- layout: vertical
- primary: ''
- secondary: ''
- card_mod:
- style:
- mushroom-shape-icon$: |
- .shape {
- box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
- }
- .: |
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- }
- ha-state-icon {
- {% if states('binary_sensor.lumi_lumi_sensor_magnet_aq2_opening') == 'on' %}
- animation: door 6s ease-in-out infinite;
- transform-origin: 30%;
- {% elif states('cover.tapparella') == 'opening' %}
- animation: open 3s steps(1) infinite;
- {% elif states('cover.tapparella') == 'closing' %}
- animation: close 3s steps(1) infinite;
- {% elif state_attr('cover.tapparella', 'current_position') > 76 %}
- clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 36%, 68% 36%, 68% 100%, 100% 100%, 100% 0);
- {% elif state_attr('cover.tapparella', 'current_position') > 51 %}
- clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 48%, 68% 48%, 68% 100%, 100% 100%, 100% 0);
- {% elif state_attr('cover.tapparella', 'current_position') > 26 %}
- clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 60%, 68% 60%, 68% 100%, 100% 100%, 100% 0);
- {% elif state_attr('cover.tapparella', 'current_position') > 0 %}
- clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 74%, 68% 74%, 68% 100%, 100% 100%, 100% 0);
- {% endif %}
- }
- .shape {
- perspective: 45px;
- }
- @keyframes door {
- 0%, 66% { transform: rotateY(0deg); }
- 33% { transform: rotateY(-120deg); }
- }
- @keyframes open {
- 0% { clip-path: inset(0 0 0 0); }
- 20% { clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 74%, 68% 74%, 68% 100%, 100% 100%, 100% 0); }
- 40% { clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 60%, 68% 60%, 68% 100%, 100% 100%, 100% 0); }
- 60% { clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 48%, 68% 48%, 68% 100%, 100% 100%, 100% 0); }
- 80% { clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 36%, 68% 36%, 68% 100%, 100% 100%, 100% 0); }
- }
- @keyframes close {
- 0% { clip-path: inset(0 0 0 0); }
- 80% { clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 74%, 68% 74%, 68% 100%, 100% 100%, 100% 0); }
- 60% { clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 60%, 68% 60%, 68% 100%, 100% 100%, 100% 0); }
- 40% { clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 48%, 68% 48%, 68% 100%, 100% 100%, 100% 0); }
- 20% { clip-path: polygon(0 0, 0 100%, 32% 100%, 32% 36%, 68% 36%, 68% 100%, 100% 100%, 100% 0); }
- }
- ha-card {
- transform: scale(1.3);
- border: none;
- box-shadow: none;
- background: rgba(0,0,0,0);
- text-align: center;
- }
- - type: custom:mushroom-template-card
- icon: mdi:home-assistant
- icon_color: blue
- layout: vertical
- primary: ''
- badge_icon: ''
- badge_color: ''
- card_mod:
- style:
- mushroom-shape-icon$: |
- .shape {
- box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
- }
- .: |
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- }
- ha-card {
- transform: scale(1.3);
- border: none;
- box-shadow: none;
- background: rgba(0,0,0,0);
- text-align: center;
- }
- ha-state-icon {
- animation: boing 3s ease infinite;
- transform-origin: 50% 90%;
- }
- @keyframes boing {
- 0% { transform: scale3d(1, 1, 1); }
- 7% { transform: scale3d(1.25, 0.75, 1); }
- 10% { transform: scale3d(0.75, 1.25, 1); }
- 12% { transform: scale3d(1.15, 0.85, 1); }
- 16% { transform: scale3d(0.95, 1.05, 1); }
- 19% { transform: scale3d(1.05, 0.95, 1); }
- 25% { transform: scale3d(1, 1, 1); }
- }
- - type: custom:mushroom-template-card
- primary: ''
- secondary: ''
- icon: |
- {% if states('input_boolean.luci_notte') == 'on' %}
- mdi:robot-excited-outline
- {% else %}
- mdi:robot-dead
- {% endif %}
- entity: input_boolean.luci_notte
- tap_action:
- action: toggle
- layout: vertical
- icon_color: |
- {% if states('input_boolean.luci_notte') == 'on' %}
- orange
- {% else %}
- disabled
- {% endif %}
- badge_icon: ''
- badge_color: ''
- card_mod:
- style:
- mushroom-shape-icon$: |
- .shape {
- box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
- }
- .: |
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- }
- ha-state-icon {
- {% if is_state('input_boolean.luci_notte', 'on') %}
- animation: tilt 4s steps(1) infinite, blink 4s infinite;
- transform-origin: 50% 92%;
- {% endif %}
- }
- @keyframes tilt {
- 0%, 100% { transform: rotate(0deg); }
- 33% { transform: rotate(8deg); }
- 66% { transform: rotate(-8deg); }
- }
- @keyframes blink {
- 0%, 20%, 30%, 45%, 55%, 70%, 80%, 100% { clip-path: inset(0 0 0 0); }
- 25% { clip-path: polygon(0 0, 100% 0, 100% 53%, 25% 52%, 24% 77%, 75% 77%, 76% 52%, 100% 52%, 100% 100%, 0 100%); }
- 50% { clip-path: polygon(0 0, 100% 0, 100% 53%, 51% 54%, 51% 76%, 76% 77%, 75% 53%, 100% 52%, 100% 100%, 0 100%); }
- 75% { clip-path: polygon(0 0, 100% 0, 100% 53%, 24% 53%, 24% 77%, 47% 77%, 47% 52%, 100% 52%, 100% 100%, 0 100%); }
- }
- ha-card {
- transform: scale(1.3);
- border: none;
- box-shadow: none;
- background: rgba(0,0,0,0);
- text-align: center;
- }
- - type: custom:mushroom-template-card
- primary: ''
- secondary: ''
- icon: |
- {% if states('input_boolean.kiosk') == 'on' %}
- mdi:ghost-outline
- {% else %}
- mdi:ghost-outline
- {% endif %}
- entity: input_boolean.hide_header
- tap_action:
- action: toggle
- layout: vertical
- icon_color: |
- {% if states('input_boolean.kiosk') == 'on' %}
- blue-grey
- {% else %}
- disabled
- {% endif %}
- badge_icon: ''
- badge_color: ''
- card_mod:
- style:
- mushroom-shape-icon$: |
- .shape {
- box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.36) !important;
- }
- .: |
- ha-card:active {
- transform: translateY(1.5px);
- transition: 0s;
- }
- ha-state-icon {
- {% if is_state('input_boolean.kiosk', 'on') %}
- animation: drift 10s ease-in-out infinite, blink 4s infinite;
- {% endif %}
- }
- @keyframes drift {
- 0%, 100% { transform: translate(3px, 0px); }
- 30% { transform: translate(-1px, 2px); }
- 45% { transform: translate(1.5px, 0px); }
- 75% { transform: translate(-3.2px, -3px); }
- }
- @keyframes blink {
- 0%, 24%, 35%, 74%, 85%, 100% { clip-path: inset(0 0 0 0); }
- 25% { clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 53%, 25% 52%, 27% 31%, 49% 31%, 49% 54%, 100% 54%, 100% 0); }
- 75% { clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 53%, 49% 51%, 52% 30%, 73% 31%, 75% 52%, 100% 54%, 100% 0); }
- }
- ha-card {
- transform: scale(1.3);
- border: none;
- box-shadow: none;
- background: rgba(0,0,0,0);
- text-align: center;
- }
- - type: custom:button-card
- color_type: blank-card
- styles:
- card:
- - width: 20px
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement