Albometer

Pop_Information

Jan 28th, 2022
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.95 KB | None | 0 0
  1. type: button
  2. tap_action:
  3.   action: fire-dom-event
  4.   browser_mod:
  5.     command: popup
  6.     title: Informationen
  7.     style:
  8.       .: |
  9.        :host .content {
  10.           width: calc(385px + 385px + 385px);
  11.           max-width: 90vw;
  12.     layout-card: null
  13.     $grid-layout$:
  14.       hui-entities-card:
  15.         $: |
  16.          .card-content {
  17.              padding: 1.5em 2.7em 2.3em 2em;
  18.           }
  19.             ha-card {
  20.               animation: border 1s forwards;
  21.               border-radius: 0;
  22.           }
  23.           @keyframes border {
  24.             0%, 100% {
  25.              border-right: 1px solid rgba(0, 0, 0, 0.3);
  26.            }
  27.            }
  28.            /* phone */
  29.            @media screen and (max-width: 800px) {
  30.              ha-card {
  31.                animation: none;
  32.            }
  33.           }
  34.         $hui-horizontal-stack-card$: |
  35.          #root {
  36.             justify-content: space-evenly;
  37.             margin-top: 1.9em;
  38.             margin-left: 0.8em;
  39.           }
  40.     card:
  41.       type: custom:layout-card
  42.       layout_type: custom:grid-layout
  43.       layout:
  44.         grid-template-columns: repeat(3, 1fr)
  45.         grid-template-rows: 1fr
  46.         grid-template-areas: |
  47.          "printer fritz tablet"
  48.       cards:
  49.         - type: entities
  50.           title: HP OfficeJet 5230
  51.           show_header_toggle: false
  52.           card_mod:
  53.             class: header
  54.             style: |
  55.              ha-card {
  56.                 margin: 0px !important;
  57.               }
  58.           view_layout:
  59.             grid-area: printer
  60.           entities:
  61.             - entity: sensor.hp_printer_printer
  62.               name: Drucker
  63.             - entity: sensor.hp_printer_scanner
  64.               name: Scanner
  65.             - entity: sensor.hp_printer_status_2
  66.               name: Status
  67.             - entity: binary_sensor.hp_printer_connectivity
  68.               name: Verbindung
  69.             - type: custom:bar-card
  70.               width: 55%
  71.               height: 2em
  72.               decimal: 0
  73.               unit_of_measurement: '%'
  74.               positions:
  75.                 icon: 'off'
  76.                 indicator: inside
  77.                 name: outside
  78.               severity:
  79.                 - color: '#6d2525'
  80.                   from: 0
  81.                   to: 89
  82.                 - color: '#303435'
  83.                   from: 90
  84.                   to: 100
  85.               entity_row: true
  86.               entities:
  87.                 - entity: sensor.hp_printer_inkcartridge_black
  88.                   name: Schwarz
  89.                 - entity: sensor.hp_printer_inkcartridge_cyanmagentayellow
  90.                   name: Color
  91.         - type: entities
  92.           view_layout:
  93.             grid-area: fritz
  94.           entities:
  95.             - entity: binary_sensor.fritz_box_6660_cable_firmware_update
  96.               name: Firmware
  97.             - entity: sensor.fritz_box_6660_cable_download_throughput
  98.               name: Download
  99.             - entity: sensor.fritz_box_6660_cable_upload_throughput
  100.               name: Upload
  101.             - entity: switch.fritz_box_6660_cable_wi_fi_albrechtwoelk_2_4
  102.               name: WLAN 2.4
  103.             - entity: switch.fritz_box_6660_cable_wi_fi_albrechtwoelk_5_0
  104.               name: WLAN 5.0
  105.             - entity: switch.fritz_box_6660_cable_wi_fi_schnorrer_wlan
  106.               name: Gäste Wlan
  107.           title: Fritz Box
  108.           show_header_toggle: false
  109.           state_color: true
  110.           card_mod:
  111.             class: header
  112.             style: |
  113.              ha-card {
  114.                 margin: 0px !important;
  115.               }
  116.         - type: entities
  117.           title: Fire Tablet
  118.           show_header_toggle: false
  119.           card_mod:
  120.             class: header
  121.             style: |
  122.              ha-card {
  123.                 margin: 0px !important;
  124.               }
  125.           view_layout:
  126.             grid-area: tablet
  127.           entities:
  128.             - entity: binary_sensor.fire_tablet_plugged_in_2
  129.               name: Stecker
  130.             - entity: sensor.fire_tablet_ram_free_memory_2
  131.               name: Freier Speicher
  132.             - entity: sensor.fire_tablet_ram_total_memory_2
  133.               name: Speicher Total
  134.             - entity: switch.fire_tablet_kiosk_lock_2
  135.               name: Kiosk mode
  136.             - entity: light.fire_tablet_screen_2
  137.               name: Bildschirm
  138.             - type: custom:bar-card
  139.               width: 55%
  140.               height: 2em
  141.               decimal: 0
  142.               unit_of_measurement: '%'
  143.               positions:
  144.                 icon: 'off'
  145.                 indicator: inside
  146.                 name: outside
  147.               severity:
  148.                 - color: '#6d2525'
  149.                   from: 0
  150.                   to: 89
  151.                 - color: '#303435'
  152.                   from: 90
  153.                   to: 100
  154.               entity_row: true
  155.               entities:
  156.                 - entity: sensor.fire_tablet_battery_level_2
  157.                   name: Batterie
  158. icon: mdi:information-outline
Advertisement
Add Comment
Please, Sign In to add comment