Advertisement
-Teme-

Apex kortti

Feb 28th, 2025
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. type: vertical-stack
  2. cards:
  3. - type: custom:config-template-card
  4. entities:
  5. - input_select.apex_time
  6. variables:
  7. span: states['input_select.apex_time'].state
  8. card:
  9. type: custom:apexcharts-card
  10. header:
  11. title: lämmitys ja jäähdytys
  12. show: true
  13. show_states: true
  14. update_interval: 10min
  15. graph_span: ${span}
  16. apex_config:
  17. grid:
  18. show: true
  19. legend:
  20. show: false
  21. chart:
  22. height: 300px
  23. experimental:
  24. color_threshold: true
  25. yaxis:
  26. - id: temperature
  27. min: ~18
  28. max: "|+3|"
  29. decimals: 1
  30. apex_config:
  31. tickAmount: 5
  32. labels:
  33. formatter: |
  34. EVAL:v => `c ${v.toFixed(2)}`
  35. - id: heating
  36. show: false
  37. min: 0
  38. max: 1
  39. - id: cooling
  40. show: false
  41. min: 0
  42. max: 1
  43. series:
  44. - entity: climate.bath_floor_heating
  45. attribute: current_temperature
  46. yaxis_id: temperature
  47. name: current temperature
  48. type: line
  49. unit: °C
  50. stroke_width: 1.5
  51. opacity: 0.8
  52. curve: smooth
  53. group_by:
  54. func: median
  55. duration: 5min
  56. show:
  57. header_color_threshold: true
  58. legend_value: false
  59. extremas: false
  60. color: white
  61. - entity: climate.bath_floor_heating
  62. attribute: temperature
  63. name: Set temperature
  64. show:
  65. in_header: true
  66. group_by:
  67. fill: last
  68. yaxis_id: temperature
  69. type: line
  70. curve: stepline
  71. unit: °C
  72. float_precision: 1
  73. opacity: 0.5
  74. stroke_width: 1.5
  75. color: gold
  76. - entity: switch.test_plus2pm_switch_0
  77. transform: "return x === 'on' ? 1 : 0;"
  78. yaxis_id: heating
  79. name: Heating
  80. type: area
  81. color: red
  82. group_by:
  83. func: raw
  84. show:
  85. legend_value: false
  86. in_header: false
  87. name_in_header: false
  88. datalabels: false
  89. extend_to: false
  90. - entity: switch.test_plus2pm_switch_1
  91. transform: "return x === 'on' ? 1 : 0;"
  92. yaxis_id: cooling
  93. name: Cooling
  94. type: area
  95. color: blue
  96. group_by:
  97. func: raw
  98. show:
  99. legend_value: false
  100. in_header: false
  101. name_in_header: false
  102. datalabels: false
  103. extend_to: false
  104. - type: horizontal-stack
  105. cards:
  106. - type: entities
  107. entities:
  108. - input_select.apex_time
  109.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement