Guest User

Untitled

a guest
Nov 6th, 2024
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.88 KB | None | 0 0
  1. type: custom:vertical-stack-in-card
  2. cards:
  3. - type: custom:text-divider-row
  4. text: Heizung
  5. - type: vertical-stack
  6. cards:
  7. - type: horizontal-stack
  8. cards:
  9. - type: custom:button-card
  10. entity: climate.wohnzimmer
  11. icon: mdi:television
  12. name: |
  13. [[[
  14. if (entity.state == 'heat') {
  15. return "-> " + entity.attributes.temperature + '°C';
  16. } else {
  17. return "Aus";
  18. }
  19. ]]]
  20. state_display: |
  21. [[[
  22. return '' + states['sensor.wozi_govee_temperature'].state + '°C';
  23. ]]]
  24. styles:
  25. grid:
  26. - position: relative
  27. card:
  28. - height: 50px
  29. name:
  30. - color: null
  31. - font-size: 12px
  32. state:
  33. - color: |
  34. [[[
  35. if (entity.attributes.current_temperature > 25) return '#e63232';
  36. if (entity.attributes.current_temperature > 23) return '#ff6f22';
  37. if (entity.attributes.current_temperature > 20) return 'var(--orange-color)';
  38. if (entity.attributes.current_temperature > 18) return '#4d6dff';
  39. else return 'red';
  40. ]]]
  41. - font-size: 14px
  42. icon:
  43. - color: |
  44. [[[
  45. if (entity.attributes.hvac_action == 'heating' && entity.state == 'heat') return '#ff6f22';
  46. else return '';
  47. ]]]
  48. layout: icon_state_name2nd
  49. show_name: true
  50. show_state: true
  51. show_icon: true
  52. tap_action:
  53. action: more-info
  54. - type: custom:button-card
  55. entity: climate.flur_bt
  56. icon: mdi:wardrobe-outline
  57. name: |
  58. [[[
  59. if (entity.state == 'heat') {
  60. return "-> " + entity.attributes.temperature + '°C';
  61. } else {
  62. return "Aus";
  63. }
  64. ]]]
  65. state_display: |
  66. [[[
  67. return '' + states['sensor.flur_temperature'].state + '°C';
  68. ]]]
  69. styles:
  70. grid:
  71. - position: relative
  72. card:
  73. - height: 50px
  74. name:
  75. - color: null
  76. - font-size: 12px
  77. state:
  78. - color: |
  79. [[[
  80. if (entity.attributes.current_temperature > 25) return '#e63232';
  81. if (entity.attributes.current_temperature > 23) return '#ff6f22';
  82. if (entity.attributes.current_temperature > 20) return 'var(--orange-color)';
  83. if (entity.attributes.current_temperature > 18) return '#4d6dff';
  84. else return 'red';
  85. ]]]
  86. - font-size: 14px
  87. icon:
  88. - color: |
  89. [[[
  90. if (entity.attributes.hvac_action == 'heating' && entity.state == 'heat') return '#ff6f22';
  91. else return '';
  92. ]]]
  93. layout: icon_state_name2nd
  94. show_name: true
  95. show_state: true
  96. show_icon: true
  97. tap_action:
  98. action: more-info
  99. - type: custom:button-card
  100. entity: climate.kuche
  101. icon: mdi:silverware-fork-knife
  102. name: |
  103. [[[
  104. if (entity.state == 'heat') {
  105. return "-> " + entity.attributes.temperature + '°C';
  106. } else {
  107. return "Aus";
  108. }
  109. ]]]
  110. state_display: |
  111. [[[
  112. return '' + states['sensor.kuche_govee_temperature'].state + '°C';
  113. ]]]
  114. styles:
  115. grid:
  116. - position: relative
  117. card:
  118. - height: 50px
  119. name:
  120. - color: null
  121. - font-size: 12px
  122. state:
  123. - color: |
  124. [[[
  125. if (entity.attributes.current_temperature > 25) return '#e63232';
  126. if (entity.attributes.current_temperature > 23) return '#ff6f22';
  127. if (entity.attributes.current_temperature > 20) return 'var(--orange-color)';
  128. if (entity.attributes.current_temperature > 18) return '#4d6dff';
  129. else return 'red';
  130. ]]]
  131. - font-size: 14px
  132. icon:
  133. - color: |
  134. [[[
  135. if (entity.attributes.hvac_action == 'heating' && entity.state == 'heat') return '#ff6f22';
  136. else return '';
  137. ]]]
  138. layout: icon_state_name2nd
  139. show_name: true
  140. show_state: true
  141. show_icon: true
  142. tap_action:
  143. action: more-info
  144. - type: horizontal-stack
  145. cards:
  146. - type: custom:button-card
  147. entity: climate.bad
  148. icon: mdi:bathtub
  149. name: |
  150. [[[
  151. if (entity.state == 'heat') {
  152. return "-> " + entity.attributes.temperature + '°C';
  153. } else {
  154. return "Aus";
  155. }
  156. ]]]
  157. state_display: |
  158. [[[
  159. return '' + states['sensor.bad_temperature'].state + '°C';
  160. ]]]
  161. styles:
  162. grid:
  163. - position: relative
  164. card:
  165. - height: 50px
  166. name:
  167. - color: null
  168. - font-size: 12px
  169. state:
  170. - color: |
  171. [[[
  172. if (entity.attributes.current_temperature > 25) return '#e63232';
  173. if (entity.attributes.current_temperature > 23) return '#ff6f22';
  174. if (entity.attributes.current_temperature > 20) return 'var(--orange-color)';
  175. if (entity.attributes.current_temperature > 18) return '#4d6dff';
  176. else return 'red';
  177. ]]]
  178. - font-size: 14px
  179. icon:
  180. - color: |
  181. [[[
  182. if (entity.attributes.hvac_action == 'heating' && entity.state == 'heat') return '#ff6f22';
  183. else return '';
  184. ]]]
  185. layout: icon_state_name2nd
  186. show_name: true
  187. show_state: true
  188. show_icon: true
  189. tap_action:
  190. action: more-info
  191. - type: custom:button-card
  192. entity: climate.schlafzimmer
  193. icon: mdi:bed
  194. name: |
  195. [[[
  196. if (entity.state == 'heat') {
  197. return "-> " + entity.attributes.temperature + '°C';
  198. } else {
  199. return "Aus";
  200. }
  201. ]]]
  202. state_display: |
  203. [[[
  204. return '' + states['sensor.schlafzimmer_temperature'].state + '°C';
  205. ]]]
  206. styles:
  207. grid:
  208. - position: relative
  209. card:
  210. - height: 50px
  211. name:
  212. - color: null
  213. - font-size: 12px
  214. state:
  215. - color: |
  216. [[[
  217. if (entity.attributes.current_temperature > 25) return '#e63232';
  218. if (entity.attributes.current_temperature > 23) return '#ff6f22';
  219. if (entity.attributes.current_temperature > 20) return 'var(--orange-color)';
  220. if (entity.attributes.current_temperature > 18) return '#4d6dff';
  221. else return 'red';
  222. ]]]
  223. - font-size: 14px
  224. icon:
  225. - color: |
  226. [[[
  227. if (entity.attributes.hvac_action == 'heating' && entity.state == 'heat') return '#ff6f22';
  228. else return '';
  229. ]]]
  230. layout: icon_state_name2nd
  231. show_name: true
  232. show_state: true
  233. show_icon: true
  234. tap_action:
  235. action: more-info
  236. - type: custom:button-card
  237. entity: binary_sensor.balkon_tur_contact
  238. name: Balkon
  239. state_display: |
  240. [[[
  241. if (entity.state == 'on') {
  242. return "Offen" ;
  243. } else {
  244. return "ist zu";
  245. }
  246. ]]]
  247. styles:
  248. grid:
  249. - position: relative
  250. card:
  251. - height: 50px
  252. name:
  253. - font-size: 14px
  254. - color: ''
  255. state:
  256. - font-size: 12px
  257. - color: ''
  258. icon:
  259. - color: ''
  260. layout: icon_name_state2nd
  261. show_name: true
  262. show_state: true
  263. show_icon: true
  264. tap_action:
  265. action: call-service
  266. service: input_boolean.toggle
  267. data: {}
  268. target:
  269. entity_id: input_boolean.lovelace_heizung
  270. - type: divider
  271. - type: conditional
  272. conditions:
  273. - entity: input_boolean.lovelace_heizung
  274. state: 'on'
  275. card:
  276. type: custom:vertical-stack-in-card
  277. cards:
  278. - type: custom:mini-graph-card
  279. animate: false
  280. decimals: 2
  281. font_size: 70
  282. align_state: center
  283. height: 150
  284. show:
  285. icon: false
  286. name: false
  287. state: false
  288. labels: true
  289. fill: false
  290. legend: true
  291. graph: true
  292. labels_secondary: false
  293. hours_to_show: 24
  294. points_per_hour: 2
  295. line_width: 2
  296. entities:
  297. - entity: sensor.wozi_govee_temperature
  298. name: Kino
  299. show_points: false
  300. show_state: true
  301. show_fill: false
  302. state_adaptive_color: true
  303. show_legend: true
  304. - entity: climate.flur_thermostat
  305. attribute: current_temperature
  306. name: Flur
  307. show_points: false
  308. show_state: true
  309. show_fill: false
  310. state_adaptive_color: true
  311. show_legend: true
  312. color: var(--orange-color)
  313. - entity: sensor.kuche_govee_temperature
  314. name: Küche
  315. show_points: false
  316. show_state: true
  317. show_fill: false
  318. state_adaptive_color: true
  319. show_legend: true
  320. color: var(--red-color)
  321. - entity: climate.bad
  322. attribute: current_temperature
  323. name: Bad
  324. show_points: false
  325. show_state: true
  326. show_fill: false
  327. state_adaptive_color: true
  328. show_legend: true
  329. color: var(--green-color)
  330. - entity: climate.schlafzimmer
  331. attribute: current_temperature
  332. name: Schlafen
  333. show_points: false
  334. show_state: true
  335. show_fill: false
  336. state_adaptive_color: true
  337. show_legend: true
  338. color: var(--purple-color)
  339. - type: divider
  340. - type: horizontal-stack
  341. cards:
  342. - type: custom:button-card
  343. entity: sensor.wozi_govee_temperature
  344. icon: mdi:home-thermometer
  345. name: 22C°
  346. layout: icon_name
  347. styles:
  348. name:
  349. - color: null
  350. - font-size: 12px
  351. - justify-self: start
  352. - font-weight: bold
  353. - line-height: 30px
  354. icon:
  355. - color: orange
  356. - justify-self: start
  357. show_name: true
  358. show_state: false
  359. show_icon: false
  360. tap_action:
  361. action: call-service
  362. service: script.heizung_comfort
  363. data: {}
  364. target: {}
  365. - type: custom:button-card
  366. entity: sensor.wozi_govee_temperature
  367. icon: mdi:home-thermometer-outline
  368. name: Eco
  369. layout: icon_name
  370. styles:
  371. name:
  372. - color: null
  373. - font-size: 12px
  374. - justify-self: start
  375. - font-weight: bold
  376. - line-height: 30px
  377. icon:
  378. - color: '#00bfff'
  379. - justify-self: start
  380. - padding: 0px 5px
  381. show_name: true
  382. show_state: false
  383. show_icon: false
  384. tap_action:
  385. action: call-service
  386. service: script.heizung_eco
  387. data: {}
  388. target: {}
  389. - type: custom:button-card
  390. entity: sensor.wozi_govee_temperature
  391. icon: mdi:snowflake-thermometer
  392. name: Frost
  393. layout: icon_name
  394. styles:
  395. name:
  396. - color: null
  397. - font-size: 12px
  398. - justify-self: start
  399. - font-weight: bold
  400. - line-height: 30px
  401. icon:
  402. - color: lightblue
  403. - justify-self: start
  404. - padding: 0px 0px
  405. show_name: true
  406. show_state: false
  407. show_icon: false
  408. tap_action:
  409. action: call-service
  410. service: script.heizung_frost
  411. data: {}
  412. target: {}
  413. - type: custom:button-card
  414. entity: sensor.wozi_govee_temperature
  415. icon: mdi:thermometer-off
  416. name: Aus
  417. layout: icon_name
  418. styles:
  419. name:
  420. - color: null
  421. - font-size: 12px
  422. - justify-self: start
  423. - font-weight: bold
  424. - line-height: 30px
  425. icon:
  426. - color: lightblue
  427. - justify-self: start
  428. - padding: 0px 0px
  429. show_name: true
  430. show_state: false
  431. show_icon: false
  432. tap_action:
  433. action: call-service
  434. service: script.heizung_aus
  435. data: {}
  436. target: {}
  437. - type: custom:button-card
  438. entity: sensor.wozi_govee_temperature
  439. icon: mdi:poll
  440. name: Info
  441. layout: icon_name
  442. styles:
  443. name:
  444. - color: null
  445. - font-size: 12px
  446. - justify-self: start
  447. - font-weight: bold
  448. - line-height: 30px
  449. icon:
  450. - color: lightblue
  451. - justify-self: start
  452. - padding: 0px 0px
  453. show_name: true
  454. show_state: false
  455. show_icon: false
  456. tap_action:
  457. action: navigate
  458. navigation_path: /lovelace/heizung_stats
Advertisement
Add Comment
Please, Sign In to add comment