Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: vertical-stack
- cards:
- - type: custom:decluttering-card
- template: normal_title
- variables:
- - content: Front
- - sub-content: null
- - type: picture-elements
- image: /local/dashboard_photos/transparent/~transparent-4-3.png
- card_mod:
- style: |
- ha-card {
- {# method of putting overlay over or under by multiple backgrounds #}
- background:
- /* top, transparent red, faked with gradient */
- linear-gradient(
- rgba(0, 0, 0, 0.5),
- rgba(0, 0, 0, 0.1)
- ),
- /* bottom, image */
- url("/local/dashboard_photos/simple_blue_background.png");
- #background-size: 60%;
- background-position: center bottom;
- #background-size: contain;
- background-size: cover;
- #background-size: auto;
- #background-size: 100% auto;
- background-repeat: no-repeat;
- {% set comment = "Use for spinning fan on fan on " %}
- {% if is_state('binary_sensor.hvac_active','on') %}
- --state-rotate-2s: rotation2s 2.5s linear infinite;
- {% endif %}
- {% set comment = "iphone charging" %}
- {% if is_state('sensor.iphone_battery_state','Charging') %}
- --iphone-charging: redpulse 4.01s linear infinite;
- {% endif %}
- {% set comment = "HVAC Cooling" %}
- {% if is_state_attr('climate.t6_pro_thermostat','hvac_action','heating') %}
- --hvac_cooling: bluepulse 4.01s linear infinite;
- {% endif %}
- }
- @keyframes rotation2s {
- 0% {transform: rotate(0deg)}
- 100% {transform: rotate(360deg)}
- }
- @keyframes redpulse {
- 0% {color: red;}
- 45% {color: grey;}
- 60% {color: red;}
- 100% {color: red;}
- }
- @keyframes bluepulse {
- 0% {color: lightblue;}
- 45% {color: grey;}
- 60% {color: lightblue;}
- 100% {color: lightblue;}
- }
- elements:
- - type: image
- tap_action:
- action: more-info
- double_tap_action: none
- hold_action:
- action: more-info
- entity: camera.porch1
- camera_image: camera.porch1
- entity: camera.porch1
- style:
- transform: none
- transform-origin: top left
- top: 3%
- left: 3%
- width: 60%
- card_mod:
- style: |
- :host {
- border-radius: 8px;
- {% if is_state('binary_sensor.porch1_porch_zone_person_occupancy','on') %}
- border: 2px dashed red;
- {% elif is_state('binary_sensor.porch_mot_sticky','on') %}
- border: 2px solid red;
- {% else %}
- border: 2px solid grey;
- {% endif %}
- }
- - type: image
- tap_action:
- action: more-info
- double_tap_action: none
- hold_action:
- action: more-info
- entity: camera.front1
- camera_image: camera.front1
- entity: camera.front1
- style:
- transform: none
- transform-origin: top right
- top: 40%
- right: 3%
- width: 47%
- card_mod:
- style: |
- :host {
- border-radius: 8px;
- {% if is_state('binary_sensor.front1_driveway_zone_person_occupancy','on') %}
- border: 2px dashed red;
- {% elif is_state('binary_sensor.front_mot_sticky','on') %}
- border: 2px solid red;
- {% else %}
- border: 2px solid grey;
- {% endif %}
- }
- - type: custom:button-card
- entity: sensor.front_door_2
- color_type: card
- show_icon: false
- name: Front Door
- color: auto
- show_name: true
- tap_action:
- action: more-info
- hold_action: none
- style:
- transform: none
- top: 6%
- right: 3%
- width: 35%
- card_mod:
- style: |
- ha-card {
- {% if is_state('sensor.front_door_2', 'Violated') %}
- background: #660000 !important;
- {% endif %}
- border: 2px solid grey;
- padding: 6px 14px !important;
- font-weight: 500 !important;
- font-size: 100% !important;
- }
- - type: custom:button-card
- entity: sensor.tv_room_window
- color_type: card
- show_icon: false
- name: TV Window
- color: auto
- show_name: true
- tap_action:
- action: more-info
- hold_action: none
- style:
- transform: none
- transform-origin: top right
- top: 19%
- right: 3%
- width: 35%
- card_mod:
- style: |
- ha-card {
- {% if is_state('sensor.tv_room_window', 'Violated') %}
- background: #660000 !important;
- {% endif %}
- border: 2px solid grey;
- padding: 6px 14px !important;
- font-weight: 500 !important;
- font-size: 100% !important;
- }
- - type: custom:button-card
- entity: sensor.garage_oh_door
- color_type: card
- show_icon: false
- name: Overhead Door
- color: auto
- show_name: true
- tap_action:
- action: more-info
- hold_action: none
- style:
- transform: none
- transform-origin: top right
- top: 85%
- right: 3%
- width: 45%
- card_mod:
- style: |
- ha-card {
- {% if is_state('sensor.garage_oh_door', 'Violated') %}
- background: #660000 !important;
- {% endif %}
- border: 2px solid grey;
- padding: 6px 14px !important;
- font-weight: 500 !important;
- font-size: 100% !important;
- }
- - type: custom:button-card
- entity: light.outdoor_front_group
- color_type: icon
- show_icon: true
- name: Front
- color: auto
- size: 55px
- show_name: true
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- style:
- transform: none
- transform-origin: bottom left
- bottom: 21%
- left: 5%
- card_mod:
- style: |
- ha-card {
- background: rgba(0,0,0,0);
- border: 0px solid red;
- font-weight: 500 !important;
- font-size: 100% !important;
- }
- - type: custom:button-card
- entity: light.house_accent_lights_1_light
- color_type: icon
- show_icon: true
- name: LED
- color: auto
- size: 55px
- show_name: true
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- style:
- transform: none
- transform-origin: bottom left
- bottom: 21%
- left: 21%
- card_mod:
- style: |
- ha-card {
- background: rgba(0,0,0,0);
- border: 0px solid red;
- font-weight: 500 !important;
- font-size: 100% !important;
- }
- - type: custom:button-card
- entity: input_boolean.rotate_house_leds_rgb
- color_type: icon
- show_icon: true
- name: Random
- color: auto
- size: 29px
- show_name: true
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- style:
- transform: none
- transform-origin: bottom left
- bottom: 26%
- left: 37%
- font-size: 80%
- card_mod:
- style: |
- ha-card {
- background: rgba(0,0,0,0);
- border: 0px solid red;
- font-size: 100% !important;
- }
- - type: custom:button-card
- entity: input_boolean.match_house_lights_to_rgb
- color_type: icon
- show_icon: true
- name: Match
- color: auto
- size: 29px
- show_name: true
- tap_action:
- action: toggle
- hold_action:
- action: more-info
- style:
- transform: none
- transform-origin: bottom left
- bottom: 10%
- left: 38%
- font-size: 80%
- card_mod:
- style: |
- ha-card {
- background: rgba(0,0,0,0);
- border: 0px solid red;
- font-size: 100% !important;
- }
- - type: custom:button-card
- entity: light.ext_front_1
- color_type: icon
- show_icon: true
- name: L1
- color: auto
- size: 26px
- show_name: true
- tap_action: none
- hold_action:
- action: more-info
- style:
- transform: none
- transform-origin: bottom left
- bottom: 3%
- left: 6%
- font-size: 80%
- card_mod:
- style: |
- ha-card {
- background: rgba(0,0,0,0);
- border: 0px solid red;
- font-size: 100% !important;
- }
- - type: custom:button-card
- entity: light.ext_front_2
- color_type: icon
- show_icon: true
- name: L2
- color: auto
- size: 26px
- show_name: true
- tap_action: none
- hold_action:
- action: more-info
- style:
- transform: none
- transform-origin: bottom left
- bottom: 3%
- left: 16%
- font-size: 80%
- card_mod:
- style: |
- ha-card {
- background: rgba(0,0,0,0);
- border: 0px solid red;
- font-size: 100% !important;
- }
- - type: custom:button-card
- entity: light.ext_front_3
- color_type: icon
- show_icon: true
- name: L3
- color: auto
- size: 26px
- show_name: true
- tap_action: none
- hold_action:
- action: more-info
- style:
- transform: none
- transform-origin: bottom left
- bottom: 3%
- left: 26%
- font-size: 80%
- card_mod:
- style: |
- ha-card {
- background: rgba(0,0,0,0);
- border: 0px solid red;
- font-size: 100% !important;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement