Advertisement
Guest User

Untitled

a guest
Jan 13th, 2025
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 7.82 KB | None | 0 0
  1. type: vertical-stack
  2. cards:
  3.   - type: custom:button-card
  4.     entity: sensor.32_134446_fan_info
  5.     color_type: card
  6.     layout: icon_name_state2nd
  7.     color: rgb(40, 150, 214)
  8.     name: WTW
  9.     styles:
  10.       card:
  11.         - height: 120px
  12.     size: 100%
  13.     icon: mdi:fan
  14.     show_state: true
  15.     show_label: true
  16.     label: >-
  17.       [[[ var tr = states['sensor.32_134446_remaining_mins'].state; if(tr[0] !=
  18.       '0') { return 'timer: '+ tr + ' min'} ]]]
  19.     state:
  20.       - value: auto
  21.         color: rgb(40, 150, 214)
  22.         icon: mdi:fan-auto
  23.       - value: temporary
  24.         operator: regex
  25.         color: rgb(0, 255, 0)
  26.         icon: mdi:timer
  27.       - operator: default
  28.         color: rgb(255, 0, 0)
  29.     tap_action:
  30.       action: call-service
  31.       service: remote.send_command
  32.       service_data:
  33.         command: request31DA
  34.         entity_id: remote.29_162275
  35.   - type: horizontal-stack
  36.     cards:
  37.       - type: custom:button-card
  38.         entity: sensor.32_134446_fan_info
  39.         tap_action:
  40.           action: call-service
  41.           service: remote.send_command
  42.           service_data:
  43.             command: away
  44.             entity_id: remote.29_162275
  45.         color_type: card
  46.         color: rgb(40, 150, 214)
  47.         icon: mdi:home-export-outline
  48.         name: " "
  49.         styles:
  50.           card:
  51.             - height: 60px
  52.         state:
  53.           - value: away
  54.             color: rgb(225, 317, 55)
  55.       - type: custom:button-card
  56.         entity: sensor.32_134446_fan_info
  57.         tap_action:
  58.           action: call-service
  59.           service: remote.send_command
  60.           service_data:
  61.             command: low
  62.             entity_id: remote.29_162275
  63.         color_type: card
  64.         color: rgb(40, 150, 214)
  65.         icon: mdi:fan-speed-1
  66.         name: " "
  67.         styles:
  68.           card:
  69.             - height: 60px
  70.         state:
  71.           - value: speed 1
  72.             color: rgb(225, 317, 55)
  73.       - type: custom:button-card
  74.         entity: sensor.32_134446_fan_info
  75.         tap_action:
  76.           action: call-service
  77.           service: remote.send_command
  78.           service_data:
  79.             command: medium
  80.             entity_id: remote.29_162275
  81.         color_type: card
  82.         color: rgb(40, 150, 214)
  83.         icon: mdi:fan-speed-2
  84.         name: " "
  85.         styles:
  86.           card:
  87.             - height: 60px
  88.         state:
  89.           - value: speed 2
  90.             color: rgb(225, 317, 55)
  91.       - type: custom:button-card
  92.         entity: sensor.32_134446_fan_info
  93.         tap_action:
  94.           action: call-service
  95.           service: remote.send_command
  96.           service_data:
  97.             command: high
  98.             entity_id: remote.29_162275
  99.         color_type: card
  100.         color: rgb(40, 150, 214)
  101.         icon: mdi:fan-speed-3
  102.         name: " "
  103.         styles:
  104.           card:
  105.             - height: 60px
  106.         state:
  107.           - value: speed 3
  108.             operator: regex
  109.             color: rgb(225, 317, 55)
  110.       - type: custom:button-card
  111.         entity: sensor.32_134446_fan_info
  112.         tap_action:
  113.           action: call-service
  114.           service: remote.send_command
  115.           service_data:
  116.             command: auto
  117.             entity_id: remote.29_162275
  118.         color_type: card
  119.         color: rgb(40, 150, 214)
  120.         icon: mdi:fan-auto
  121.         name: " "
  122.         styles:
  123.           card:
  124.             - height: 60px
  125.         state:
  126.           - value: auto
  127.             color: rgb(225, 317, 55)
  128.       - type: custom:button-card
  129.         entity: sensor.32_134446_fan_info
  130.         tap_action:
  131.           action: call-service
  132.           service: remote.send_command
  133.           service_data:
  134.             command: disable
  135.             entity_id: remote.29_162275
  136.         color_type: card
  137.         color: rgb(40, 150, 214)
  138.         icon: mdi:fan-off
  139.         name: " "
  140.         styles:
  141.           card:
  142.             - height: 60px
  143.         state:
  144.           - value: "off"
  145.             color: rgb(225, 317, 55)
  146.   - type: horizontal-stack
  147.     cards:
  148.       - type: custom:button-card
  149.         entity: sensor.32_134446_fan_info
  150.         tap_action:
  151.           action: call-service
  152.           service: remote.send_command
  153.           service_data:
  154.             command: high_60
  155.             entity_id: remote.29_162275
  156.         color_type: card
  157.         color: rgb(40, 150, 214)
  158.         icon: mdi:timer
  159.         name: 60 min
  160.         styles:
  161.           card:
  162.             - height: 60px
  163.         state:
  164.           - value: speed 3 temporary override
  165.             color: rgb(225, 317, 55)
  166.       - type: custom:button-card
  167.         entity: sensor.32_134446_fan_info
  168.         tap_action:
  169.           action: call-service
  170.           service: remote.send_command
  171.           service_data:
  172.             command: high_15
  173.             entity_id: remote.29_162275
  174.         color_type: card
  175.         color: rgb(40, 150, 214)
  176.         icon: mdi:timer
  177.         name: 15 min
  178.         styles:
  179.           card:
  180.             - height: 60px
  181.         state:
  182.           - value: speed 3 temporary override
  183.             color: rgb(225, 317, 55)
  184.   - type: horizontal-stack
  185.     cards:
  186.       - type: custom:button-card
  187.         entity: binary_sensor.32_134446_bypass_position
  188.         tap_action:
  189.           action: call-service
  190.           service: remote.send_command
  191.           service_data:
  192.             command: bypass_open
  193.             entity_id: remote.29_162275
  194.         color_type: card
  195.         color: rgb(40, 150, 214)
  196.         icon: mdi:valve-open
  197.         name: Open bypass
  198.         styles:
  199.           card:
  200.             - height: 60px
  201.         state:
  202.           - value: "on"
  203.             color: rgb(0, 255, 205)
  204.             name: Bypass open
  205.       - type: custom:button-card
  206.         entity: binary_sensor.32_134446_bypass_position
  207.         tap_action:
  208.           action: call-service
  209.           service: remote.send_command
  210.           service_data:
  211.             command: bypass_close
  212.             entity_id: remote.29_162275
  213.         color_type: card
  214.         color: rgb(40, 150, 214)
  215.         icon: mdi:valve-closed
  216.         name: Close bypass
  217.         styles:
  218.           card:
  219.             - height: 60px
  220.         state:
  221.           - value: "off"
  222.             color: rgb(0, 255, 205)
  223.             name: Bypass closed
  224.       - type: custom:button-card
  225.         entity: binary_sensor.32_134446_bypass_position
  226.         tap_action:
  227.           action: call-service
  228.           service: remote.send_command
  229.           service_data:
  230.             command: bypass_auto
  231.             entity_id: remote.29_162275
  232.         color_type: card
  233.         color: rgb(40, 150, 214)
  234.         icon: mdi:valve
  235.         name: Bypass auto
  236.         styles:
  237.           card:
  238.             - height: 60px
  239.   - type: horizontal-stack
  240.     cards:
  241.       - type: custom:button-card
  242.         entity: sensor.32_134446_fan_info
  243.         tap_action:
  244.           action: call-service
  245.           service: remote.send_command
  246.           service_data:
  247.             command: request31DA
  248.             entity_id: remote.29_162275
  249.         color_type: card
  250.         color: rgb(100, 150, 214)
  251.         icon: mdi:home-export-outline
  252.         name: Request 31DA
  253.         styles:
  254.           card:
  255.             - height: 60px
  256.         state:
  257.           - value: away
  258.             color: rgb(225, 317, 55)
  259.   - type: horizontal-stack
  260.     cards:
  261.       - type: custom:button-card
  262.         entity: sensor.32_134446_fan_info
  263.         tap_action:
  264.           action: call-service
  265.           service: remote.send_command
  266.           service_data:
  267.             command: request10D0
  268.             entity_id: remote.29_162275
  269.         color_type: card
  270.         color: rgb(240, 150, 214)
  271.         icon: mdi:home-export-outline
  272.         name: "DEBUG: get filter time: Send 10d0"
  273.         styles:
  274.           card:
  275.             - height: 60px
  276.         state:
  277.           - value: away
  278.             color: rgb(225, 317, 55)
  279.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement