Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Aircon ###
- - type: vertical-stack
- cards:
- - type: "custom:button-card"
- template: mv_section_labels
- name: Aircon
- - type: custom:stack-in-card
- mode: vertical
- cards:
- - type: horizontal-stack
- cards:
- - type: custom:button-card
- entity: switch.aircon
- template: aircon_setting
- style:
- padding-top: 5%
- padding-bottom: -5%
- - type: custom:stack-in-card
- mode: vertical
- cards:
- - type: 'custom:button-card'
- template: temp_sensor_inside
- entity: sensor.launceston_current_temp
- - type: horizontal-stack
- cards:
- - type: vertical-stack
- cards:
- - type: 'custom:button-card'
- template: ac_mode_set_up
- entity: input_select.aircon_speed
- icon: mdi:plus-circle
- name: Speed
- styles:
- icon:
- - color: var(--primary-button-colour)
- - type: 'custom:button-card'
- template: ac_mode_set_down
- entity: input_select.aircon_speed
- icon: mdi:minus-circle
- styles:
- icon:
- - color: var(--primary-button-colour)
- - type: vertical-stack
- cards:
- - type: 'custom:button-card'
- template: ac_mode_set_up
- entity: input_select.aircon_temp_cool
- icon: mdi:thermometer-chevron-up
- name: Cool
- styles:
- icon:
- - color: var(--primary-button-colour)
- state:
- - value: >
- [[[
- return (states['input_select.aircon_mode'].state === 'Cool');
- ]]]
- operator: template
- color: var(--low-colour)
- - type: 'custom:button-card'
- template: ac_mode_set_down
- entity: input_select.aircon_temp_cool
- icon: mdi:thermometer-chevron-down
- name: Cool
- styles:
- icon:
- - color: var(--primary-button-colour)
- state:
- - value: >
- [[[
- return (states['input_select.aircon_mode'].state === 'Cool');
- ]]]
- operator: template
- color: var(--low-colour)
- - type: vertical-stack
- cards:
- - type: 'custom:button-card'
- template: ac_mode_set_up
- entity: input_select.aircon_temp_heat
- icon: mdi:thermometer-chevron-up
- styles:
- icon:
- - color: var(--primary-button-colour)
- name: Heat
- state:
- - value: >
- [[[
- return (states['input_select.aircon_mode'].state === 'Heat');
- ]]]
- operator: template
- color: var(--high-colour)
- - type: 'custom:button-card'
- template: ac_mode_set_down
- entity: input_select.aircon_temp_heat
- icon: mdi:thermometer-chevron-down
- styles:
- icon:
- - color: var(--primary-button-colour)
- state:
- - value: >
- [[[
- return (states['input_select.aircon_mode'].state === 'Heat');
- ]]]
- operator: template
- color: var(--high-colour)
- button_card_templates:
- ##########
- haptic:
- tap_action:
- haptic: light
- action: more-info
- hold_action:
- haptic: success
- action: more-info
- double_tap_action:
- haptic: success
- action: more-info
- state:
- - value: Unknown
- icon: 'mdi:help'
- color: black
- style: |
- ha-card {
- box-shadow: none;
- }
- ##########
- mv_section_labels:
- name: Label
- color_type: label-card
- color: var(primary-background-color)
- styles:
- card:
- - height: 10px
- - background-color: var(paper-card-background-color)
- - border-radius: 2%
- - color: auto
- name:
- - font-weight: bold
- - font-size: 20px
- - color: var(primary-text-color)
- - align-self: middle
- - justify-self: middle
- ##########
- aircon_setting:
- template: haptic
- styles:
- card:
- - font-weight: bold
- - font-size: 13px
- - color: var(primary-text-color)
- - align-self: start
- - justify-self: start
- - padding-bottom: 0px
- - text-shadow: 0px 0px 5px black
- - text-transform: capitalize
- - color: auto
- icon:
- - width: 68%
- - margin-top: 5%
- grid:
- - grid-template-areas: '"i" "n"'
- - grid-template-columns: 1fr
- - grid-template-rows: 2fr min-content
- name:
- - font-weight: bold
- - font-size: 14px
- - color: var(primary-text-color)
- - align-self: middle
- - justify-self: middle
- - padding-bottom: 0px
- show_name: true
- show_label: false
- show_state: false
- name: >
- [[[
- var onoff = states['switch.aircon'].state;
- var mode = states['input_select.aircon_mode'].state;
- var speed = states['input_select.aircon_speed'].state;
- if (speed == '1') var speed = '⪦1⪧'; if (speed == '2') var speed = '⪦2⪧';
- if (speed == '3') var speed = '⪦3⪧'; if (speed == '4') var speed = '⪦4⪧';
- if (speed == '5') var speed = '⪦5⪧'; if (speed == '0') var speed = '⪦0⪧';
- var ctemp = states['input_select.aircon_temp_cool'].state;
- var htemp = states['input_select.aircon_temp_heat'].state;
- if (mode == 'Cool') var temp = ctemp; else var temp = htemp;
- if (mode == 'Fan') return (speed + " ");
- else return (speed + " " + temp + "ºc ");
- ]]]
- show_icon: true
- icon: >
- [[[
- var ac = states['switch.aircon'].state;
- var acmode = states['input_select.aircon_mode'].state;
- if (acmode === 'Fan') return 'mdi:fan';
- if (acmode === 'Cool') return 'mdi:snowflake';
- if (acmode === 'Heat') return 'mdi:white-balance-sunny'
- ]]]
- state:
- - value: >
- [[[
- return (states['switch.aircon'].state === 'off');
- ]]]
- operator: template
- color: var(--primary-button-colour)
- - value: >
- [[[
- return (states['input_select.aircon_mode'].state === 'Heat');
- ]]]
- operator: template
- color: var(--high-colour)
- - value: >
- [[[
- return (states['input_select.aircon_mode'].state === 'Cool');
- ]]]
- operator: template
- color: var(--low-colour)
- - value: >
- [[[
- return (states['input_select.aircon_mode'].state === 'Fan');
- ]]]
- operator: template
- color: var(--mid-colour)
- double_tap_action:
- action: call-service
- service: switch.turn_off
- service_data:
- entity_id: switch.aircon
- tap_action:
- action: call-service
- service: input_boolean.turn_on
- service_data:
- entity_id: input_boolean.aircon_change_settings
- hold_action:
- action: call-service
- service: input_select.select_next
- service_data:
- entity_id: input_select.aircon_mode
- ###########
- aircon_mode_set:
- template: haptic
- size: 40%
- show_state: false
- styles:
- card:
- - font-size: 10px
- name:
- - font-size: 10px
- - color: var(primary-text-color)
- ##########
- ac_mode_set_down:
- show_name: false
- template: aircon_mode_set
- styles:
- card:
- - margin-bottom: 5%
- icon:
- - margin-bottom: 5%
- tap_action:
- action: call-service
- service: input_select.select_previous
- service_data:
- entity_id: entity
- double_tap_action:
- action: call-service
- service: input_select.select_next
- service_data:
- entity_id: entity
- hold_action:
- action: more-info
- ##########
- ac_mode_set_up:
- show_name: true
- template: aircon_mode_set
- styles:
- name:
- - font-weight: bold
- - font-size: 11px
- - color: var(primary-text-color)
- - align-self: end
- - justify-self: middle
- - margin-top: 5%
- tap_action:
- action: call-service
- service: input_select.select_next
- service_data:
- entity_id: entity
- double_tap_action:
- action: call-service
- service: input_select.select_previous
- service_data:
- entity_id: entity
- hold_action:
- action: more-info
- ##########
- temp_sensor_inside:
- template: tap_info_2
- show_name: false
- show_state: false
- show_icon: false
- tap_action:
- action: more-info
- size: 60%
- styles:
- grid:
- - grid-template-areas: '"graph"'
- - grid-template-columns: 1fr
- - grid-template-rows: 1fr
- custom_fields:
- card:
- # - transform: scale(.8)
- - align-self: end
- - justify-self: end
- - font-size: 11px
- - text-shadow: 0px 0px 5px black
- custom_fields:
- graph:
- card:
- type: 'custom:flex-horseshoe-card'
- entities:
- - entity: sensor.launceston_current_temp
- decimals: 1
- units: 'ºc'
- name: Current
- - entity: sensor.launceston_max_temp
- decimals: 1
- name: Max
- units: 'ºc'
- - entity: sensor.dark_sky_summary
- icon: >
- [[[
- return states['sensor.dark_sky_icon_mdi'.state]
- ]]]
- name: 'Climate'
- - entity: sensor.dark_sky_humidity
- decimals: 0
- units: '%'
- name: Current
- - entity: sensor.launceston_min_temp
- decimals: 0
- units: 'ºc'
- name: Min
- show:
- scale_tickmarks: false
- horseshoe_style: 'lineargradient'
- layout:
- hlines:
- - id: 0
- xpos: 50
- ypos: 38
- length: 40
- styles:
- - stroke: var(--primary-text-color);
- - stroke-width: 5;
- - opacity: 0.9;
- - stroke-linecap: round;
- color: '#FFF6E3'
- vlines:
- - id: 0
- xpos: 50
- ypos: 56
- length: 25
- styles:
- - stroke: var(--primary-text-color);
- - opacity: 0.5;
- - stroke-width: 2;
- - stroke-linecap: round;
- states:
- - id: 0
- entity_index: 2 #dark_sky_summary
- xpos: 50
- ypos: 30
- styles:
- - font-size: 2em;
- - opacity: 0.9;
- - id: 1
- entity_index: 0 # temp_lounge
- xpos: 46
- ypos: 54
- styles:
- - font-size: 2em;
- - text-anchor: end;
- - id: 2
- entity_index: 1 #launceston_current_temp
- xpos: 54
- ypos: 54
- styles:
- - font-size: 2em;
- - text-anchor: start;
- - id: 3
- entity_index: 3 # hm_lounge
- xpos: 46
- ypos: 80
- styles:
- - font-size: 2em;
- - text-anchor: end;
- - id: 4
- entity_index: 4 #dark_sky_humidity
- xpos: 54
- ypos: 80
- styles:
- - font-size: 2em;
- - text-anchor: start;
- names:
- # - id: 0
- # entity_index: 1
- # xpos: 50
- # ypos: 100
- # styles:
- # - font-size: 2em;
- - id: 1
- entity_index: 0
- xpos: 46
- ypos: 64
- styles:
- - font-size: 1em;
- - text-anchor: end;
- - opacity: 0.7;
- - id: 2
- entity_index: 1
- xpos: 56
- ypos: 61
- styles:
- - font-size: 0.8em;
- - text-anchor: start;
- - opacity: 0.7;
- - id: 3
- entity_index: 4
- xpos: 56
- ypos: 69
- styles:
- - font-size: 0.8em;
- - text-anchor: start;
- - opacity: 0.7;
- horseshoe_scale:
- min: -10
- max: 45
- color: 'var(--primary-background-color)'
- width: 6
- color_stops:
- -10: var(--low-colour)
- # 0: var(--low-colour)
- # 14: var(--low-colour)
- # 25: var(--mid-colour)
- # 26: var(--high-colour)
- 45: var(--high-colour)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement