Suneman

Climatekort

Mar 13th, 2021
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.37 KB | None | 0 0
  1. type: vertical-stack
  2. cards:
  3.   - type: horizontal-stack
  4.     cards:
  5.       - type: 'custom:simple-thermostat'
  6.         entity: climate.varmekabler_felix
  7.         style: |
  8.          :host {
  9.             --paper-item-icon-color:
  10.              {% set mode = state_attr('climate.varmekabler_felix', 'hvac_action') %}
  11.              {% if mode == "heating" %} #eb7a34
  12.              {% else %} #aeeafc
  13.              {% endif %}
  14.              ;
  15.            }
  16.         show_header: true
  17.         label:
  18.           temperature: Enhet
  19.           state: Modus
  20.         control:
  21.           _headings: false
  22.           _setpoint: false
  23.         hide:
  24.           setpoint: true
  25.           state: true
  26.         sensors:
  27.           - entity: climate.varmekabler_felix
  28.             attribute: temperature
  29.             name: Setpoint
  30.           - entity: sensor.watt_varmekabler_felix
  31.             name: Watt
  32.         name: Felix
  33.         decimals: '1'
  34.       - type: markdown
  35.         content: >-
  36.           ||Forbruk
  37.  
  38.           |:|:|
  39.           I dag | {{ states('sensor.daily_energy_varmekabler_felix')|round(1) }}
  40.           kWh / {{ state_attr('sensor.cost_varmekabler_felix',
  41.           'this_day')|round(2) }} kr
  42.  
  43.           I går | {{state_attr('sensor.daily_energy_varmekabler_felix',
  44.           'last_period')|round(1) }} kWh /
  45.           {{state_attr('sensor.cost_varmekabler_felix','daily_last_period')|round(2)
  46.           }} kr
  47.  
  48.           Nå| {{ state_attr('sensor.cost_varmekabler_felix', 'pr_hour')|round(2)
  49.           }} kr pr time
  50.   - type: horizontal-stack
  51.     cards:
  52.       - entities:
  53.           - entity: sensor.soverom_felix_vs_temperature
  54.             name: Temp
  55.             show_fill: false
  56.           - entity: sensor.setpoint_varmekabler_felix
  57.             color: red
  58.             show_points: false
  59.             name: Setpoint
  60.             show_line: false
  61.           - entity: sensor.watt_varmekabler_felix
  62.             y_axis: secondary
  63.             name: Watt
  64.             show_line: false
  65.             show_points: false
  66.             color: '#7F7F7F'
  67.         hours_to_show: 24
  68.         hour24: true
  69.         align_state: center
  70.         lower_bound: 10
  71.         upper_bound: 25
  72.         show:
  73.           name: false
  74.           icon: false
  75.           extrema: true
  76.           average: true
  77.         line_width: 5
  78.         points_per_hour: 3
  79.         color_thresholds:
  80.           - value: 12
  81.             color: '#CCE5FF'
  82.           - value: 14
  83.             color: '#66B2FF'
  84.           - value: 16
  85.             color: '#0080FF'
  86.           - value: 18
  87.             color: '#87c087'
  88.           - value: 19
  89.             color: '#389638'
  90.           - value: 20
  91.             color: '#007800'
  92.           - value: 21
  93.             color: '#FF9932'
  94.           - value: 22
  95.             color: '#FF8000'
  96.           - value: 23
  97.             color: '#ff0000'
  98.         type: 'custom:mini-graph-card'
  99.   - type: horizontal-stack
  100.     cards:
  101.       - type: button
  102.         entity: input_boolean.varmekabler_eco_felix
  103.         name: Øko
  104.         tap_action:
  105.           action: call-service
  106.           service: input_boolean.turn_on
  107.           service_data:
  108.             entity_id: input_boolean.varmekabler_eco_felix
  109.         icon: 'hass:weather-night'
  110.         icon_height: 30px
  111.         show_name: false
  112.       - type: button
  113.         entity: input_boolean.varmekabler_comfy_felix
  114.         name: Komfort
  115.         tap_action:
  116.           action: call-service
  117.           service: input_boolean.turn_on
  118.           service_data:
  119.             entity_id: input_boolean.varmekabler_comfy_felix
  120.         icon: 'hass:white-balance-sunny'
  121.         show_name: false
  122.         icon_height: 30px
  123.       - type: button
  124.         entity: input_boolean.varmekabler_boost_felix
  125.         name: Boost
  126.         tap_action:
  127.           action: call-service
  128.           service: input_boolean.turn_on
  129.           service_data:
  130.             entity_id: input_boolean.varmekabler_boost_felix
  131.         icon: 'mdi:car-turbocharger'
  132.         show_name: false
  133.         icon_height: 30px
  134.   - type: horizontal-stack
  135.     cards:
  136.       - type: 'custom:numberbox-card'
  137.         entity: input_number.setpoint_eco_varmekabler_felix
  138.         name: false
  139.       - type: 'custom:numberbox-card'
  140.         entity: input_number.setpoint_comfy_varmekabler_felix
  141.         name: false
  142.       - type: 'custom:numberbox-card'
  143.         entity: input_number.setpoint_boost_varmekabler_felix
  144.         name: false
  145.  
Advertisement
Add Comment
Please, Sign In to add comment