Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:state-switch
- view_layout:
- grid-area: "cond1"
- entity: input_boolean.sensors_dropdown2
- default: "off"
- states:
- "on":
- type: custom:button-card
- view_layout:
- grid-area: r1a
- entity: input_boolean.sensors_dropdown2
- name: Sensor batteries
- show_name: true
- show_icon: false
- show_label: false
- show_state: false
- tap_action:
- action: none
- state:
- - value: "on"
- styles:
- card:
- - animation: swipe .5s ease-out
- styles:
- grid:
- - grid-template-areas: '"n" "entities"'
- - grid-template-columns: 1fr
- - grid-template-rows: min-content 1fr
- - column-gap: 8px
- card:
- - height: 100%
- - border-radius: var(--border-radius)
- - box-shadow: var(--box-shadow)
- - padding: 2rem 1rem
- #- background: none
- - overflow: visible
- name:
- - text-align: left
- - font-size: var(--fs-500)
- - font-family: Montserrat
- - font-weight: 500
- - justify-self: center
- - align-self: start
- - color: var(--contrast-100)
- custom_fields:
- entities:
- - align-self: center
- - margin: 0rem
- - text-align: left
- - background: none
- custom_fields:
- entities:
- card:
- type: custom:auto-entities
- card:
- type: entities
- state_color: true
- card_mod:
- style: |
- ha-card {
- color: green !important;
- }
- filter:
- include:
- - group: sensor.battery_sensors
- options:
- card_mod:
- style:
- hui-generic-entity-row:
- $: |
- state-badge {
- display: none;
- }
- .info {
- margin-left: 0px !important;
- }
- .text-content {
- color: var(--contrast-66);
- font-family: montserrat;
- font-size: var(--fs-400);
- font-weight: 500;
- }
- .text-content.value {
- {% if states(config.entity) | float(0) <= 10 %}
- color: var(--color-red);
- {% endif %}
- }
- exclude: []
- show_empty: true
- sort:
- method: state
- reverse: true
- ignore_case: false
- ip: false
- numeric: true
- extra_styles: |
- @keyframes swipe {
- 0% {top: -280px;}
- 100% {top: 0px;}
- }
- #card {
- transform-origin: center bottom;
- }
Advertisement
Add Comment
Please, Sign In to add comment