Advertisement
gednet

Przycisk ładowarki PSPower

Jul 13th, 2024
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.12 KB | Housing | 0 0
  1. type: custom:button-card
  2. entity: sensor.pspower_evse_state
  3. show_icon: true
  4. show_name: true
  5. show_state: false
  6. show_last_changed: false
  7. name: Obsługa ładowarki
  8. styles:
  9.   label:
  10.     - color: gray
  11.     - font-size: 12px
  12.     - justify-self: center
  13.     - padding: 0px 5px
  14.   name:
  15.     - font-size: 15px
  16.     - justify-self: center
  17.     - padding: 5px 0px
  18.   state:
  19.     - justify-self: center
  20.     - font-size: 15px
  21.     - padding: 0px 5px
  22. tap_action:
  23.   action: call-service
  24.   service: automation.trigger
  25.   data: null
  26.   target:
  27.     entity_id: automation.pspower_start_stop_ladowania
  28. icon: mdi:restart
  29. size: 60%
  30. aspect_ratio: 2.8
  31. state:
  32.   - value: 4
  33.     icon: mdi:play
  34.     name: Rozpocznij ładowanie
  35.     color: rgb(0,200,0)
  36.   - value: 5
  37.     icon: mdi:pause
  38.     name: Zatrzymaj ładowanie
  39.     color: rgb(204, 171, 8)
  40.   - value: 1
  41.     icon: mdi:connection
  42.     name: Podłącz pojazd
  43.     color: rgb(90, 110, 210)
  44.   - value: 0
  45.     icon: mdi:information-variant-circle
  46.     name: Ładowarka gotowa
  47.     color: rgb(60, 60, 60)
  48.   - value: 8
  49.     icon: mdi:alert
  50.     color: rgb(240,30, 0)
  51.     name: Błąd ładowarki
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement