Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:button-card
- entity: climate.house_thermostat
- styles:
- grid:
- - grid-template-areas: '"stack"'
- grid-template-columns: 1fr
- grid-template-rows: auto
- align-content: start
- align-self: start
- justify-content: start
- justify-self: start
- card:
- - background-color: transparent
- height: 375px
- width: 302.5px
- padding: 0px 15px 15px 15px
- margin: 0px 0px 0px 0px
- background: transparent
- border-radius: 30px
- border: solid 2px transparent
- - box-shadow: 10 10 10 2px transparent
- name:
- - font-size: 18px
- font-weight: 600
- padding: 10px 15px 35px 15px
- align-self: start
- justify-self: start
- show_state: false
- show_name: true
- show_icon: false
- custom_fields:
- stack:
- card:
- type: custom:button-card
- show_state: false
- show_name: true
- show_icon: false
- styles:
- grid:
- - grid-template-areas: '"gauge" "horizontal"'
- align-content: start
- align-self: start
- justify-content: start
- justify-self: start
- card:
- - background-color: transparent
- padding: 0px
- margin: 0px
- height: 375px
- overflow-y: auto
- border-radius: 0px
- custom_fields:
- gauge:
- - align-content: start
- align-self: start
- justify-content: start
- justify-self: start
- width: 270px
- margin: '-35px 0px 0px 0px'
- horizontal:
- - margin: '-100px 0px 0px 0px'
- custom_fields:
- gauge:
- card:
- type: thermostat
- name: Thermostat
- entity: climate.house_thermostat
- card_mod:
- style: |
- ha-card {
- font-weight: 550;
- background-color: transparent;
- font-family: SF Pro Rounded;}
- .value {
- font-weight: 500}
- horizontal:
- card:
- type: custom:layout-card
- layout_type: custom:grid-layout
- layout:
- grid-template-columns: 1fr 1fr 1fr 1fr
- grid-template-areas: ' "off home arthur-asleep night'
- cards:
- - view_layout:
- grid-area: home
- type: custom:button-card
- entity: input_select.house_thermostat_presets
- tap_action:
- action: perform-action
- perform_action: input_select.select_option
- target:
- entity_id: input_select.house_thermostat_presets
- data:
- option: Home
- show_name: false
- show_icon: true
- show_state: false
- icon: mdi:home
- state:
- - value: Home
- styles:
- card:
- - box-shadow: >
- inset 1px 1px 3px rgba(255,255,255,0.3), 2px 2px
- 6px rgba(0,0,0,0.2)
- - background: >-
- linear-gradient(45deg, rgba(255,255,255,0.05)
- 20%, rgba(255,255,255,0.2) 100%)
- - border: solid .05em rgba(255,255,255,0.3)
- - color: rgba(255,255,255,1)
- styles:
- card:
- - background: >-
- linear-gradient(45deg, rgba(0,0,0, 0.1) 20%,
- rgba(0,0,0, 0.2) 100%)
- padding: 10px
- margin: 0px
- height: 50px
- border-radius: 15px
- icon:
- - color: white
- width: 25px
- - view_layout:
- grid-area: arthur-asleep
- type: custom:button-card
- entity: input_select.house_thermostat_presets
- tap_action:
- action: perform-action
- perform_action: input_select.select_option
- target:
- entity_id: input_select.house_thermostat_presets
- data:
- option: Arthur Asleep
- show_name: false
- show_icon: true
- show_state: false
- icon: mdi:sleep
- state:
- - value: Arthur Asleep
- styles:
- card:
- - box-shadow: >
- inset 1px 1px 3px rgba(255,255,255,0.3), 2px 2px
- 6px rgba(0,0,0,0.2)
- - background: >-
- linear-gradient(45deg, rgba(255,255,255,0.05)
- 20%, rgba(255,255,255,0.2) 100%)
- - border: solid .05em rgba(255,255,255,0.3)
- - color: rgba(255,255,255,1)
- styles:
- card:
- - background: >-
- linear-gradient(45deg, rgba(0,0,0, 0.1) 20%,
- rgba(0,0,0, 0.2) 100%)
- padding: 10px
- margin: 0px
- height: 50px
- border-radius: 15px
- icon:
- - color: white
- width: 25px
- - view_layout:
- grid-area: night
- type: custom:button-card
- entity: input_select.house_thermostat_presets
- tap_action:
- action: perform-action
- perform_action: input_select.select_option
- target:
- entity_id: input_select.house_thermostat_presets
- data:
- option: Sleep
- show_name: false
- show_icon: true
- show_state: false
- icon: mdi:moon-waxing-crescent
- state:
- - value: Sleep
- styles:
- card:
- - box-shadow: >
- inset 1px 1px 3px rgba(255,255,255,0.3), 2px 2px
- 6px rgba(0,0,0,0.2)
- - background: >-
- linear-gradient(45deg, rgba(255,255,255,0.05)
- 20%, rgba(255,255,255,0.2) 100%)
- - border: solid .05em rgba(255,255,255,0.3)
- - color: rgba(255,255,255,1)
- styles:
- card:
- - background: >-
- linear-gradient(45deg, rgba(0,0,0, 0.1) 20%,
- rgba(0,0,0, 0.2) 100%)
- padding: 10px
- margin: 0px
- height: 50px
- border-radius: 15px
- icon:
- - color: white
- width: 25px
- - view_layout:
- grid-area: 'off'
- type: custom:button-card
- entity: input_select.house_thermostat_presets
- tap_action:
- action: perform-action
- perform_action: input_select.select_option
- target:
- entity_id: input_select.house_thermostat_presets
- data:
- option: 'Off'
- show_name: false
- show_icon: true
- show_state: false
- icon: mdi:power
- state:
- - value: 'Off'
- styles:
- card:
- - box-shadow: >
- inset 1px 1px 3px rgba(255,255,255,0.3), 2px 2px
- 6px rgba(0,0,0,0.2)
- - background: >-
- linear-gradient(45deg, rgba(255,255,255,0.05)
- 20%, rgba(255,255,255,0.2) 100%)
- - border: solid .05em rgba(255,255,255,0.3)
- - color: rgba(255,255,255,1)
- styles:
- card:
- - background: >-
- linear-gradient(45deg, rgba(0,0,0, 0.1) 20%,
- rgba(0,0,0, 0.2) 100%)
- padding: 10px
- margin: 0px
- height: 50px
- border-radius: 15px
- icon:
- - color: white
- width: 25px
- view_layout:
- grid-area: bottom
- card_mod:
- style: |
- :host {
- display: block;
- position: relative; margin: 0px 6px 0px 0px;
- }
- :host::before {
- content: "";
- position: absolute;
- inset: 0;
- border-radius: 30px;
- -webkit-backdrop-filter: blur(50px);
- z-index: -1;
- padding: .1rem;
- background: linear-gradient(60deg,
- rgba(255,255,255,0.0) 0%,
- rgba(255,255,255,0.2) 49%,
- rgba(255,255,255,0.2) 51%,
- rgba(255,255,255,0.0) 100%);
- -webkit-mask:
- linear-gradient(#fff 0 0) content-box,
- linear-gradient(#fff 0 0);
- -webkit-mask-composite: xor;
- mask-composite: exclude;
- z-index: 0; filter: saturate(140%);
- }
- :host::after {
- content: "";
- background: linear-gradient(180deg, rgba(255,255,255, 0.1) 20%, rgba(255,255,255, 0.0) 100%);
- position: absolute;
- inset: 0;
- border-radius: 30px;
- box-shadow: inset -8px 10px 15px rgba(0, 0, 0, 0.1);
- z-index: -1;
- -webkit-backdrop-filter:blur(30px) saturate(110%) brightness(90%);
- filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.2)); }
Advertisement
Add Comment
Please, Sign In to add comment