Advertisement
nisu66

Card irrigazione

Jun 11th, 2024 (edited)
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 8.03 KB | None | 0 0
  1. type: vertical-stack
  2. cards:
  3.   - type: horizontal-stack
  4.     cards:
  5.       - type: custom:button-card
  6.         color_type: card
  7.         entity: input_boolean.irrigation_monday
  8.         name: Lunedì
  9.         state:
  10.           - value: 'on'
  11.             icon: mdi:calendar-check
  12.             styles:
  13.               card:
  14.                 - background-color: green
  15.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  16.                 - transition: background-color 0.3s ease
  17.           - value: 'off'
  18.             icon: mdi:calendar-remove
  19.             styles:
  20.               card:
  21.                 - background-color: red
  22.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  23.                 - transition: background-color 0.3s ease
  24.         styles:
  25.           card:
  26.             - border-radius: 15px
  27.             - height: 70px
  28.             - width: 160px
  29.           name:
  30.             - font-weight: bold
  31.             - font-size: 14px
  32.       - type: custom:button-card
  33.         color_type: card
  34.         entity: input_boolean.irrigation_tuesday
  35.         name: Martedì
  36.         state:
  37.           - value: 'on'
  38.             icon: mdi:calendar-check
  39.             styles:
  40.               card:
  41.                 - background-color: green
  42.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  43.                 - transition: background-color 0.3s ease
  44.           - value: 'off'
  45.             icon: mdi:calendar-remove
  46.             styles:
  47.               card:
  48.                 - background-color: red
  49.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  50.                 - transition: background-color 0.3s ease
  51.         styles:
  52.           card:
  53.             - border-radius: 15px
  54.             - height: 70px
  55.             - width: 155px
  56.           name:
  57.             - font-weight: bold
  58.             - font-size: 14px
  59.       - type: custom:button-card
  60.         color_type: card
  61.         entity: input_boolean.irrigation_wednesday
  62.         name: Mercoledì
  63.         state:
  64.           - value: 'on'
  65.             icon: mdi:calendar-check
  66.             styles:
  67.               card:
  68.                 - background-color: green
  69.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  70.                 - transition: background-color 0.3s ease
  71.           - value: 'off'
  72.             icon: mdi:calendar-remove
  73.             styles:
  74.               card:
  75.                 - background-color: red
  76.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  77.                 - transition: background-color 0.3s ease
  78.         styles:
  79.           card:
  80.             - border-radius: 15px
  81.             - height: 70px
  82.             - width: 160px
  83.           name:
  84.             - font-weight: bold
  85.             - font-size: 14px
  86.   - type: horizontal-stack
  87.     cards:
  88.       - type: custom:button-card
  89.         color_type: card
  90.         entity: input_boolean.irrigation_thursday
  91.         name: Giovedì
  92.         state:
  93.           - value: 'on'
  94.             icon: mdi:calendar-check
  95.             styles:
  96.               card:
  97.                 - background-color: green
  98.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  99.                 - transition: background-color 0.3s ease
  100.           - value: 'off'
  101.             icon: mdi:calendar-remove
  102.             styles:
  103.               card:
  104.                 - background-color: red
  105.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  106.                 - transition: background-color 0.3s ease
  107.         styles:
  108.           card:
  109.             - border-radius: 15px
  110.             - height: 70px
  111.             - width: 160px
  112.           name:
  113.             - font-weight: bold
  114.             - font-size: 14px
  115.       - type: custom:button-card
  116.         color_type: card
  117.         entity: input_boolean.irrigation_friday
  118.         name: Venerdì
  119.         state:
  120.           - value: 'on'
  121.             icon: mdi:calendar-check
  122.             styles:
  123.               card:
  124.                 - background-color: green
  125.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  126.                 - transition: background-color 0.3s ease
  127.           - value: 'off'
  128.             icon: mdi:calendar-remove
  129.             styles:
  130.               card:
  131.                 - background-color: red
  132.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  133.                 - transition: background-color 0.3s ease
  134.         styles:
  135.           card:
  136.             - border-radius: 15px
  137.             - height: 70px
  138.             - width: 155px
  139.           name:
  140.             - font-weight: bold
  141.             - font-size: 14px
  142.       - type: custom:button-card
  143.         color_type: card
  144.         entity: input_boolean.irrigation_saturday
  145.         name: Sabato
  146.         state:
  147.           - value: 'on'
  148.             icon: mdi:calendar-check
  149.             styles:
  150.               card:
  151.                 - background-color: green
  152.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  153.                 - transition: background-color 0.3s ease
  154.           - value: 'off'
  155.             icon: mdi:calendar-remove
  156.             styles:
  157.               card:
  158.                 - background-color: red
  159.                 - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  160.                 - transition: background-color 0.3s ease
  161.         styles:
  162.           card:
  163.             - border-radius: 15px
  164.             - height: 70px
  165.             - width: 160px
  166.           name:
  167.             - font-weight: bold
  168.             - font-size: 14px
  169.   - type: custom:button-card
  170.     color_type: card
  171.     entity: input_boolean.irrigation_sunday
  172.     name: Domenica
  173.     state:
  174.       - value: 'on'
  175.         icon: mdi:calendar-check
  176.         styles:
  177.           card:
  178.             - background-color: green
  179.             - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  180.             - transition: background-color 0.3s ease
  181.       - value: 'off'
  182.         icon: mdi:calendar-remove
  183.         styles:
  184.           card:
  185.             - background-color: red
  186.             - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
  187.             - transition: background-color 0.3s ease
  188.     styles:
  189.       card:
  190.         - border-radius: 15px
  191.         - height: 90px
  192.         - width: 490px
  193.       name:
  194.         - font-weight: bold
  195.         - font-size: 14px
  196.   - type: entities
  197.     title: Ora di Partenza e Durata
  198.     show_header_toggle: false
  199.     entities:
  200.       - type: custom:time-picker-card
  201.         entity: input_datetime.irrigation_start_time
  202.         name: Ora di Partenza
  203.         secondary_info: none
  204.         layout:
  205.           name: inside
  206.           align_controls: center
  207.       - type: custom:mushroom-number-card
  208.         entity: input_number.strada_duration
  209.         display_mode: buttons
  210.         layout: horizontal
  211.         icon: mdi:clock-edit
  212.         icon_color: deep-purple
  213.       - type: custom:mushroom-number-card
  214.         entity: input_number.siepi_duration
  215.         display_mode: buttons
  216.         layout: horizontal
  217.         icon_color: light-green
  218.         icon: mdi:clock-edit
  219.       - type: custom:mushroom-number-card
  220.         entity: input_number.davanticasa_duration
  221.         display_mode: buttons
  222.         layout: horizontal
  223.         icon: mdi:clock-edit
  224.         icon_color: red
  225.   - type: custom:button-card
  226.     tap_action:
  227.       action: toggle
  228.     entity: script.irrigazione_a_tempo_manuale
  229.     show_name: true
  230.     show_icon: true
  231.     show_state: true
  232.     icon: mdi:sprinkler
  233.     styles:
  234.       card:
  235.         - background-color: '#800080'
  236.         - border-radius: 15px
  237.         - height: 190px
  238.         - width: 487px
  239.       name:
  240.         - font-weight: bold
  241.         - color: '#FFFF00'
  242.       icon:
  243.         - color: '#FFFF00'
  244.   - type: custom:button-card
  245.     color_type: card
  246.     entity: input_boolean.irrigation_pause
  247.     name: Irrigazione on/off
  248.     icon: mdi:pause-circle
  249.     state:
  250.       - value: 'on'
  251.         icon: mdi:water-off
  252.         styles:
  253.           card:
  254.             - background-color: red
  255.       - value: 'off'
  256.         icon: mdi:water
  257.         styles:
  258.           card:
  259.             - background-color: green
  260.     styles:
  261.       card:
  262.         - border-radius: 15px
  263.         - height: 90px
  264.         - width: 487px
  265.       name:
  266.         - font-weight: bold
  267.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement