Guest User

Untitled

a guest
Dec 6th, 2024
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.45 KB | None | 0 0
  1. title: EVSE
  2. path: evse
  3. icon: mdi:ev-station
  4. type: sections
  5. sections:
  6. - type: grid
  7. cards:
  8. - type: custom:mushroom-chips-card
  9. chips:
  10. - type: back
  11. alignment: start
  12. grid_options:
  13. columns: 1
  14. rows: auto
  15. - type: custom:streamline-card
  16. template: badges_template
  17. variables: {}
  18. grid_options:
  19. columns: 42
  20. rows: auto
  21. column_span: 4
  22. - type: grid
  23. cards:
  24. - type: heading
  25. icon: mdi:ev-station
  26. heading: OpenEVSE
  27. heading_style: subtitle
  28. - type: entities
  29. entities:
  30. - type: custom:hui-element
  31. card_type: horizontal-stack
  32. cards:
  33. - type: horizontal-stack
  34. cards:
  35. - type: heading
  36. icon: ""
  37. heading_style: title
  38. - type: custom:button-card
  39. entity: input_text.openevse_override_state
  40. aspect_ratio: 2
  41. color_type: card
  42. show_label: true
  43. show_name: false
  44. icon: fas:bolt
  45. name: Auto
  46. tap_action:
  47. action: call-service
  48. service: openevse.set_override
  49. target:
  50. device_id: 1a8619b7019b8e42ea0f560a0c008fc0
  51. data:
  52. state: active
  53. state:
  54. - value: active
  55. color: rgb(24.71% 82.35% 56.47%)
  56. styles:
  57. icon:
  58. - color: >-
  59. [[[ if
  60. (states['sensor.openevse_charging_status'].state
  61. === 'charging') return 'yellow'; else return
  62. 'white'; ]]]
  63. - operator: default
  64. color: rgba(0, 0, 0, 0.0)
  65. styles:
  66. icon:
  67. - color: rgba(24.71% 82.35% 56.47% 1)
  68. styles:
  69. card:
  70. - border-radius: 10%
  71. - type: custom:button-card
  72. entity: input_text.openevse_override_state
  73. aspect_ratio: 2
  74. color_type: card
  75. show_label: true
  76. show_name: false
  77. icon: fas:robot
  78. name: Auto
  79. tap_action:
  80. action: call-service
  81. service: openevse.clear_override
  82. target:
  83. device_id: 1a8619b7019b8e42ea0f560a0c008fc0
  84. state:
  85. - value: auto
  86. color: rgb(19.61% 70.2% 83.14%)
  87. styles:
  88. icon:
  89. - color: >-
  90. [[[ if
  91. (states['sensor.openevse_charging_status'].state
  92. === 'charging') return 'yellow'; else return
  93. 'white'; ]]]
  94. - operator: default
  95. color: rgba(0,0,0,0.0)
  96. styles:
  97. icon:
  98. - color: rgba(19.61% 70.2% 83.14% 1)
  99. styles:
  100. card:
  101. - border-radius: 10%
  102. - type: custom:button-card
  103. entity: input_text.openevse_override_state
  104. aspect_ratio: 2
  105. color_type: card
  106. show_label: true
  107. show_name: false
  108. icon: fas:ban
  109. name: Auto
  110. tap_action:
  111. action: call-service
  112. service: openevse.set_override
  113. target:
  114. device_id: 1a8619b7019b8e42ea0f560a0c008fc0
  115. data:
  116. state: disabled
  117. state:
  118. - value: disabled
  119. color: rgb(6.67% 41.57% 53.33%)
  120. styles:
  121. icon:
  122. - color: white
  123. - operator: default
  124. color: rgba(0,0,0,0.0)
  125. styles:
  126. icon:
  127. - color: white
  128. styles:
  129. card:
  130. - border-radius: 10%
  131. - type: heading
  132. icon: ""
  133. heading_style: title
  134. - type: custom:hui-element
  135. card_type: custom:mushroom-chips-card
  136. chips:
  137. - type: entity
  138. entity: sensor.openevse_station_status
  139. card_mod:
  140. style: |
  141. ha-card {
  142. {% if states("sensor.openevse_station_status") == 'active' %}
  143. --chip-background: rgb(24.71% 82.35% 56.47%);
  144. {% elif states("sensor.openevse_station_status") == 'disabled' %}
  145. --chip-background: rgb(6.67% 41.57% 53.33%);
  146. {% endif %}
  147. border-radius: 10% !important;
  148. }
  149. - type: entity
  150. entity: sensor.openevse_charging_status
  151. card_mod:
  152. style: |
  153. ha-card {
  154. {% if states("sensor.openevse_charging_status") == 'connected'%}
  155. --chip-background: rgb(24.71% 82.35% 56.47%);
  156. {% elif states("sensor.openevse_charging_status") == 'charging'%}
  157. --chip-background: rgb(19.61% 70.2% 83.14%);
  158. {% elif states("sensor.openevse_charging_status") == 'not connected' or states("sensor.openevse_charging_status") == 'sleeping' %}
  159. --chip-background: rgb(6.67% 41.57% 53.33%);
  160. {% endif %}
  161. border-radius: 10% !important;
  162. }
  163. - type: entity
  164. entity: binary_sensor.openevse_vehicle_connected_2
  165. card_mod:
  166. style: |
  167. ha-card {
  168. {% if states("binary_sensor.openevse_vehicle_connected_2") == 'on' %}
  169. --chip-background: rgb(24.71% 82.35% 56.47%);
  170. {% elif states("binary_sensor.openevse_vehicle_connected_2") == 'off' %}
  171. --chip-background: rgb(6.67% 41.57% 53.33%);
  172. {% endif %}
  173. border-radius: 10% !important;
  174. }
  175. alignment: center
  176. - show_name: true
  177. show_icon: true
  178. show_state: true
  179. type: glance
  180. entities:
  181. - entity: sensor.openevse_charge_time_elapsed
  182. name: Temps écoulé
  183. - entity: sensor.openevse_time_left
  184. name: Temps réstant
  185. icon: mdi:timer-sand
  186. - entity: sensor.openevse_usage_this_session
  187. name: Session
  188. icon: mdi:ev-station
  189. columns: 3
  190. - type: horizontal-stack
  191. cards:
  192. - type: horizontal-stack
  193. cards:
  194. - type: gauge
  195. entity: number.openevse_charge_rate
  196. name: Consigne
  197. max: 32
  198. - type: gauge
  199. entity: sensor.ioniq_5_ev_battery_level
  200. name: SOC
  201. max: 100
  202. unit: "%"
  203. min: 1
  204. - type: entities
  205. entities:
  206. - entity: sensor.openevse_current_power_usage
  207. name: " "
  208. secondary_info: none
  209. - entity: sensor.openevse_charging_current
  210. name: " "
  211. show_header_toggle: true
  212. state_color: false
  213. - type: custom:mushroom-number-card
  214. entity: number.openevse_charge_rate
  215. name: Courant
  216. icon_color: blue
  217. fill_container: true
  218. grid_options:
  219. columns: 12
  220. rows: 2
  221. - type: entities
  222. entities:
  223. - entity: sensor.openevse_current_power_usage
  224. name: Puissance
  225. secondary_info: none
  226. - entity: sensor.openevse_charging_current
  227. name: Courant
  228. - entity: sensor.openevse_ambient_temperature
  229. name: Température
  230. column_span: 1
  231. - type: grid
  232. cards:
  233. - type: heading
  234. heading: IONIQ 5
  235. heading_style: subtitle
  236. icon: mdi:car
  237. - show_name: false
  238. show_icon: true
  239. show_state: true
  240. type: glance
  241. entities:
  242. - entity: sensor.ioniq_5_ev_battery_level
  243. - entity: sensor.ioniq_5_ev_range
  244. - entity: sensor.ioniq_5_last_updated_at
  245. grid_options:
  246. columns: 9
  247. rows: 2
  248. - show_name: false
  249. show_icon: true
  250. type: button
  251. tap_action:
  252. action: perform-action
  253. perform_action: kia_uvo.force_update
  254. target: {}
  255. data:
  256. device_id: 021d7599c5e63a8dd3afefcbc2b02376
  257. name: Refresh
  258. icon: mdi:refresh
  259. grid_options:
  260. columns: 3
  261. rows: 2
  262. - type: picture-elements
  263. image: /local/community/ioniq5-card/ioniqa/ioniq5-back.png
  264. elements:
  265. - type: image
  266. entity: lock.ioniq_5_door_lock
  267. image: /local/community/ioniq5-card/ioniqa/ioniq5-back.png
  268. style:
  269. left: 50%
  270. top: 50%
  271. width: 100%
  272. - type: image
  273. entity: sensor.ioniq_battery_dots
  274. tap_action:
  275. action: none
  276. image: /local/community/ioniq5-card/ioniqa/centre-squares.png
  277. state_image:
  278. "10": /local/community/ioniq5-card/ioniqa/10.png
  279. "20": /local/community/ioniq5-card/ioniqa/20.png
  280. "30": /local/community/ioniq5-card/ioniqa/30.png
  281. "40": /local/community/ioniq5-card/ioniqa/40.png
  282. "50": /local/community/ioniq5-card/ioniqa/50.png
  283. "60": /local/community/ioniq5-card/ioniqa/60.png
  284. "70": /local/community/ioniq5-card/ioniqa/70.png
  285. "80": /local/community/ioniq5-card/ioniqa/80.png
  286. "90": /local/community/ioniq5-card/ioniqa/90.png
  287. "100": /local/community/ioniq5-card/ioniqa/100.png
  288. style:
  289. left: 50%
  290. top: 50%
  291. width: 100%
  292. heigth: 100%
  293. style: |
  294. ha-card {
  295. box-shadow: none;
  296. }
  297. - type: state-label
  298. entity: sensor.ioniq_5_last_updated_at
  299. style:
  300. top: 51.5%
  301. left: 50%
  302. - type: image
  303. entity: binary_sensor.ioniq_5_engine
  304. tap_action:
  305. action: none
  306. image: /local/community/ioniq5-card/ioniqa/night-light.png
  307. state_image:
  308. "on": /local/community/ioniq5-card/ioniqa/night-light-on.png
  309. style:
  310. left: 50%
  311. top: 50%
  312. width: 100%
  313. heigth: 100%
  314. - type: image
  315. entity: device_tracker.ioniq5_device_tracker
  316. image: /local/community/ioniq5-card/ioniqa/backpanel.png
  317. style:
  318. left: 50%
  319. top: 50%
  320. width: 100%
  321. heigth: 100%
  322. - type: image
  323. entity: binary_sensor.ioniq_5_ev_battery_charge
  324. tap_action:
  325. action: none
  326. image: /local/community/ioniq5-card/ioniqa/brake-light.png
  327. state_image:
  328. "on": /local/community/ioniq5-card/ioniqa/brake-light-on.png
  329. "off": /local/community/ioniq5-card/ioniqa/brake-light.png
  330. style:
  331. left: 50%
  332. top: 50%
  333. width: 100%
  334. heigth: 100%
  335. - type: image
  336. entity: binary_sensor.ioniq_5_ev_battery_plug
  337. state_image:
  338. "off": /local/community/ioniq5-card/ioniqa/unplugged.png
  339. "on": /local/community/ioniq5-card/ioniqa/pluggedin.png
  340. style:
  341. top: 31%
  342. left: 88%
  343. width: 11%
  344. transform: initial
  345. - type: custom:button-card
  346. entity: lock.ioniq_5_door_lock
  347. name: Portes
  348. color: white
  349. tap_action:
  350. action: toggle
  351. haptic: medium
  352. hold_action:
  353. action: more-info
  354. haptic: medium
  355. styles:
  356. card:
  357. - aspect-ratio: 1/1
  358. - border-radius: 20px
  359. - size: 00%
  360. - box-shadow: none
  361. - background: transparent
  362. - border: none
  363. icon:
  364. - color: white
  365. grid:
  366. - grid-template-areas: "\"i\" \"n\""
  367. - grid-template-columns: 1fr
  368. name:
  369. - color: white
  370. - font-family: null
  371. state:
  372. - value: unlocked
  373. icon: mdi:lock-open-alert
  374. styles:
  375. icon:
  376. - color: red
  377. - animation: blink 2s ease infinite
  378. name:
  379. - color: red
  380. style:
  381. top: 13%
  382. left: 8%
  383. width: 20%
  384. - type: custom:button-card
  385. entity: sensor.ioniq_5_car_battery_level
  386. name: 12V
  387. show_name: false
  388. show_icon: false
  389. show_state: true
  390. hold_action:
  391. action: default
  392. styles:
  393. card:
  394. - aspect-ratio: 1/1
  395. - border-radius: 20px
  396. - size: 00%
  397. - border: none
  398. icon:
  399. - size: 100%
  400. name:
  401. - font-family: poxel
  402. - padding-right: 00%
  403. state:
  404. - font-family: null
  405. - font-size: 110%
  406. - color: |
  407. [[[
  408. if (entity.state <= 50) return 'red';
  409. else if (entity.state <= 75) return 'orange';
  410. else if (entity.state <= 100) return 'white';
  411. else return 'red';
  412. ]]]
  413. card_mod:
  414. class: soft-ui
  415. style: |
  416. ha-card {
  417. box-shadow: none;
  418. background: transparent;
  419. }
  420. style:
  421. top: 18%
  422. left: 89%
  423. transform: scale(1)
  424. - type: custom:button-card
  425. entity: sensor.ioniq_5_car_battery_level
  426. name: 12V
  427. show_name: false
  428. show_icon: true
  429. show_state: false
  430. hold_action:
  431. action: default
  432. styles:
  433. card:
  434. - aspect-ratio: 1/1
  435. - border-radius: 20px
  436. - size: 00%
  437. - border: none
  438. icon:
  439. - size: 100%
  440. - color: |
  441. [[[
  442. if (entity.state <= 50) return 'red';
  443. else if (entity.state <= 75) return 'orange';
  444. else if (entity.state <= 100) return 'white';
  445. else return 'red';
  446. ]]]
  447. card_mod:
  448. class: soft-ui
  449. style: |
  450. ha-card {
  451. box-shadow: none;
  452. background: transparent;
  453. }
  454. style:
  455. top: 1%
  456. left: 85%
  457. transform: scale(1.4)
  458. - type: custom:button-card
  459. entity: sensor.ioniq_5_ev_battery_level
  460. color: auto
  461. size: 100%
  462. name: Batterie VE
  463. show_name: true
  464. show_state: true
  465. show_icon: false
  466. hold_action:
  467. action: default
  468. styles:
  469. card:
  470. - border-radius: 20px
  471. - box-shadow: none
  472. name:
  473. - font-size: 100%
  474. - padding-right: 0%
  475. - padding-bottom: 0%
  476. - color: white
  477. state:
  478. - font-size: 100%
  479. - color: white
  480. card_mod: null
  481. style:
  482. left: 34%
  483. top: 88%
  484. width: 24%
  485. style: |
  486. ha-card {
  487. background-color: rgba(0, 0, 0, 0.1);
  488. }
  489. - type: custom:button-card
  490. entity: sensor.ioniq_average_energy_consumption_mi_kwh
  491. color: auto
  492. size: 100%
  493. name: KWh/100
  494. show_name: true
  495. show_state: true
  496. show_icon: false
  497. hold_action:
  498. action: default
  499. styles:
  500. card:
  501. - border-radius: 20px
  502. - box-shadow: none
  503. name:
  504. - font-size: 100%
  505. - padding-right: 0%
  506. - padding-bottom: 0%
  507. - color: white
  508. state:
  509. - font-size: 100%
  510. - color: white
  511. style:
  512. left: 64%
  513. top: 88%
  514. width: 20%
  515. - type: custom:button-card
  516. entity: sensor.ioniq_5_ev_range
  517. color: auto
  518. size: 80%
  519. name: GuessOmeter
  520. show_name: false
  521. show_state: true
  522. show_icon: false
  523. hold_action:
  524. action: default
  525. styles:
  526. card:
  527. - aspect-ratio: 4/1
  528. - border-radius: 4px
  529. - box-shadow: black
  530. - background-color: " #FFFFFF"
  531. - border-color: black
  532. - border: solid 3px black
  533. name:
  534. - font-size: 100%
  535. - padding-right: 40%
  536. - padding-bottom: 0%
  537. - color: white
  538. state:
  539. - font-size: 130%
  540. - color: black
  541. - font-family: roboto
  542. - font-weight: 800
  543. style:
  544. left: 49%
  545. top: 61.9%
  546. width: 25%
  547. - type: image
  548. entity: sensor.ioniq_battery_port_state
  549. state_image:
  550. "0": /local/community/ioniq5-card/chargeport/state-0.gif
  551. "1": /local/community/ioniq5-card/chargeport/state-1.gif
  552. "2": /local/community/ioniq5-card/chargeport/state-2.gif
  553. "3": /local/community/ioniq5-card/chargeport/state-3.gif
  554. "4": >-
  555. /local/community/ioniq5-card/chargeport/ioniq-state-fully-charged.png
  556. "6": /local/community/ioniq5-card/chargeport/state-6.png
  557. "7": /local/community/ioniq5-card/chargeport/state-7.png
  558. "8": /local/community/ioniq5-card/chargeport/state-8.png
  559. "9": /local/community/ioniq5-card/chargeport/state-9.png
  560. "10": /local/community/ioniq5-card/chargeport/state-10.png
  561. style:
  562. left: 56%
  563. top: 50%
  564. width: 80%
  565. grid_options:
  566. columns: 24
  567. rows: auto
  568. - type: horizontal-stack
  569. cards:
  570. - type: custom:button-card
  571. entity: switch.ioniq_5_conditionnement
  572. name: HVAC
  573. size: 10%
  574. tap_action:
  575. action: toggle
  576. state:
  577. - value: "off"
  578. icon: mdi:hvac-off
  579. color: grey
  580. - value: "on"
  581. icon: mdi:hvac
  582. color: orange
  583. - type: custom:button-card
  584. entity: lock.ioniq_5_door_lock
  585. name: Lock
  586. size: 10%
  587. tap_action:
  588. action: toggle
  589. - type: horizontal-stack
  590. cards:
  591. - type: custom:mushroom-number-card
  592. entity: number.ioniq_5_dc_charging_limit
  593. name: DC Max
  594. - type: custom:mushroom-number-card
  595. entity: number.ioniq_5_ac_charging_limit
  596. name: AC Max
  597. column_span: 1
  598. - type: grid
  599. cards:
  600. - type: heading
  601. heading_style: subtitle
  602. icon: mdi:map-marker-radius
  603. heading: Position
  604. - type: map
  605. entities:
  606. - entity: device_tracker.ioniq_5_location
  607. theme_mode: auto
  608. hours_to_show: 24
  609. grid_options:
  610. columns: full
  611. rows: 5
  612. aspect_ratio: "16:9"
  613. column_span: 1
  614. cards: []
  615. max_columns: 3
  616. dense_section_placement: false
  617.  
Advertisement
Add Comment
Please, Sign In to add comment