nvsch

Untitled

Sep 25th, 2022
1,331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 7.10 KB | None | 0 0
  1. type: custom:button-card
  2. show_icon: false
  3. show_name: false
  4. show_label: false
  5. entity: climate.slaapkamer
  6. custom_fields:
  7.   mini_climate:
  8.     card:
  9.       type: custom:mini-climate
  10.       entity: climate.slaapkamer
  11.       name: Airconditioning
  12.       fan_mode:
  13.         hide: 'off'
  14.         icon: mdi:fan
  15.         order: 0
  16.         active: (state, entity) => entity.state !== 'off'
  17.         source:
  18.           auto: Auto
  19.           low: Laag
  20.           medium: Medium
  21.           high: Hoog
  22.           change_action: >
  23.            (selected, state, entity) => this.call_service('climate',
  24.             'set_fan_mode', { entity_id: entity.entity_id, fan_mode: selected })
  25.       card_mod:
  26.         style: |
  27.          ha-card {
  28.             --ha-card-background: var(--nova-theme-primary);
  29.           }
  30.           ha-card .toggle-button {
  31.             display: none;
  32.           }
  33.           ha-card .entity__secondary_info {
  34.             padding: 3px 0px 0px 0px;
  35.             text-align: left;
  36.             overflow:unset;
  37.             color: var(--nova-theme-grey)
  38.           }
  39.           ha-card .entity__info__name {
  40.             font-size:16px;
  41.             color: var(--nova-theme-names)
  42.           }
  43.           ha-card .entity__controls {
  44.             padding-bottom: 15px;
  45.             padding-top: 1.4%;
  46.           }
  47.           ha-card .ctl-wrap {
  48.             padding-top: 5%;
  49.           }
  50.           ha-card .bottom {
  51.             padding-top: 15px;
  52.             color: var(--nova-theme-grey);
  53.           }
  54.           ha-card .entity__icon {
  55.             display:none;
  56.           }
  57.  
  58.           :host {
  59.             --mini-climate-icon-color: var(--nova-theme-grey);
  60.           }                          
  61.       temperature:
  62.         unit: °C
  63.         round: 1
  64.         source:
  65.           entity: sensor.skr_temperature
  66.       indicators:
  67.         outdoortemp:
  68.           icon: mdi:home-export-outline
  69.           unit: °C
  70.           round: 1
  71.           source:
  72.             entity: sensor.hvac_m_buitentemp
  73.         humidity:
  74.           icon: mdi:water
  75.           unit: '%'
  76.           round: 1
  77.           source:
  78.             entity: sensor.skr_humidity
  79.         power_consumption:
  80.           icon: mdi:flash
  81.           unit: W
  82.           round: 1
  83.           source:
  84.             entity: sensor.watt_phase1
  85.       hvac_mode:
  86.         style: '(value, entity) => ({ color: ''black'' })'
  87.         source:
  88.           'off':
  89.             icon: mdi:power
  90.             name: Uitgeschakeld
  91.           heat:
  92.             icon: mdi:weather-sunny
  93.             name: Verwarmen
  94.           cool:
  95.             icon: mdi:snowflake
  96.             name: Koelen
  97.           fan_only:
  98.             icon: mdi:fan
  99.             name: Ventileren
  100.   buttons:
  101.     card:
  102.       type: horizontal-stack
  103.       cards:
  104.         - type: custom:button-card
  105.           entity: climate.slaapkamer
  106.           tap_action:
  107.             action: call-service
  108.             service: climate.set_hvac_mode
  109.             service_data:
  110.               hvac_mode: 'off'
  111.               entity_id: climate.slaapkamer
  112.           show_name: false
  113.           icon: mdi:power
  114.           styles:
  115.             card:
  116.               - background-color: var(--primary-background-color)
  117.               - border-radius: 5px
  118.             icon:
  119.               - color: var(--nova-theme-accent)
  120.               - filter: opacity(0.6)
  121.               - height: 25px
  122.           state:
  123.             - value: 'off'
  124.               styles:
  125.                 card:
  126.                   - background-color: orange
  127.                 icon:
  128.                   - color: var(--nova-theme-primary)
  129.                   - filter: unset
  130.         - type: custom:button-card
  131.           entity: climate.slaapkamer
  132.           tap_action:
  133.             action: call-service
  134.             service: climate.set_hvac_mode
  135.             service_data:
  136.               hvac_mode: cool
  137.               entity_id: climate.slaapkamer
  138.           show_name: false
  139.           icon: mdi:snowflake
  140.           styles:
  141.             card:
  142.               - background-color: var(--primary-background-color)
  143.               - border-radius: 5px
  144.             icon:
  145.               - color: var(--nova-theme-accent)
  146.               - filter: opacity(0.6)
  147.               - height: 25px
  148.           state:
  149.             - value: cool
  150.               styles:
  151.                 card:
  152.                   - background-color: '#2b9af9'
  153.                 icon:
  154.                   - color: var(--nova-theme-primary)
  155.                   - filter: unset
  156.         - type: custom:button-card
  157.           entity: climate.slaapkamer
  158.           tap_action:
  159.             action: call-service
  160.             service: climate.set_hvac_mode
  161.             service_data:
  162.               hvac_mode: heat
  163.               entity_id: climate.slaapkamer
  164.           show_name: false
  165.           icon: mdi:fire
  166.           styles:
  167.             card:
  168.               - background-color: var(--primary-background-color)
  169.               - border-radius: 5px
  170.             icon:
  171.               - color: var(--nova-theme-accent)
  172.               - filter: opacity(0.6)
  173.               - height: 25px
  174.           state:
  175.             - value: heat
  176.               styles:
  177.                 card:
  178.                   - background-color: '#ff8100'
  179.                 icon:
  180.                   - color: var(--nova-theme-primary)
  181.                   - filter: unset
  182.         - type: custom:button-card
  183.           entity: climate.slaapkamer
  184.           tap_action:
  185.             action: call-service
  186.             service: climate.set_hvac_mode
  187.             service_data:
  188.               hvac_mode: fan_only
  189.               entity_id: climate.slaapkamer
  190.           show_name: false
  191.           icon: mdi:fan
  192.           styles:
  193.             card:
  194.               - background-color: var(--primary-background-color)
  195.               - border-radius: 5px
  196.             icon:
  197.               - color: var(--nova-theme-accent)
  198.               - filter: opacity(0.6)
  199.               - height: 25px
  200.           state:
  201.             - value: fan_only
  202.               styles:
  203.                 card:
  204.                   - background-color: '#8a8a8a'
  205.                 icon:
  206.                   - color: var(--nova-theme-primary)
  207.                   - filter: unset
  208.         - type: custom:button-card
  209.           entity: button.slaapkamer_a_c_display
  210.           tap_action:
  211.             action: call-service
  212.             service: button.press
  213.             service_data:
  214.               entity_id: button.slaapkamer_a_c_display
  215.           show_name: false
  216.           icon: mdi:led-on
  217.           styles:
  218.             card:
  219.               - background-color: var(--primary-background-color)
  220.               - border-radius: 5px
  221.             icon:
  222.               - color: var(--nova-theme-accent)
  223.               - filter: opacity(0.6)
  224.               - height: 25px
  225. styles:
  226.   custom_fields:
  227.     mini_climate:
  228.       - overflow: unset
  229.     buttons:
  230.       - padding-left: 10px
  231.       - padding-right: 10px
  232.       - padding-bottom: 10px
  233.   card:
  234.     - overflow: unset
  235.     - background: var(--nova-theme-primary)
  236.     - padding: 0
  237.   grid:
  238.     - grid-template-areas: '"mini_climate" "buttons"'
  239.     - grid-template-columns: 1fr
  240.     - grid-template-rows: 1fr min-content min-content
  241.  
Advertisement
Add Comment
Please, Sign In to add comment