Advertisement
Einstine1984

opple desk

Jul 18th, 2022
1,178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 7.47 KB | None | 0 0
  1. alias: Office Opple Desk
  2. description: ''
  3. trigger:
  4.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  5.     domain: zha
  6.     platform: device
  7.     type: remote_button_short_press
  8.     subtype: button_1
  9.     id: '1'
  10.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  11.     domain: zha
  12.     platform: device
  13.     type: remote_button_short_press
  14.     subtype: button_2
  15.     id: '2'
  16.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  17.     domain: zha
  18.     platform: device
  19.     type: remote_button_short_press
  20.     subtype: button_3
  21.     id: '3'
  22.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  23.     domain: zha
  24.     platform: device
  25.     type: remote_button_short_press
  26.     subtype: button_4
  27.     id: '4'
  28.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  29.     domain: zha
  30.     platform: device
  31.     type: remote_button_short_press
  32.     subtype: button_5
  33.     id: '5'
  34.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  35.     domain: zha
  36.     platform: device
  37.     type: remote_button_short_press
  38.     subtype: button_6
  39.     id: '6'
  40.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  41.     domain: zha
  42.     platform: device
  43.     type: remote_button_alt_short_press
  44.     subtype: button_1
  45.     id: '1'
  46.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  47.     domain: zha
  48.     platform: device
  49.     type: remote_button_alt_short_press
  50.     subtype: button_2
  51.     id: '2'
  52.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  53.     domain: zha
  54.     platform: device
  55.     type: remote_button_alt_short_press
  56.     subtype: button_3
  57.     id: '3'
  58.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  59.     domain: zha
  60.     platform: device
  61.     type: remote_button_alt_short_press
  62.     subtype: button_4
  63.     id: '4'
  64.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  65.     domain: zha
  66.     platform: device
  67.     type: remote_button_alt_short_press
  68.     subtype: button_5
  69.     id: '5'
  70.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  71.     domain: zha
  72.     platform: device
  73.     type: remote_button_alt_short_press
  74.     subtype: button_6
  75.     id: '6'
  76.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  77.     domain: zha
  78.     platform: device
  79.     type: remote_button_alt_double_press
  80.     subtype: button_1
  81.     id: '11'
  82.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  83.     domain: zha
  84.     platform: device
  85.     type: remote_button_alt_double_press
  86.     subtype: button_2
  87.     id: '22'
  88.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  89.     domain: zha
  90.     platform: device
  91.     type: remote_button_alt_double_press
  92.     subtype: button_3
  93.     id: '33'
  94.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  95.     domain: zha
  96.     platform: device
  97.     type: remote_button_alt_double_press
  98.     subtype: button_4
  99.     id: '44'
  100.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  101.     domain: zha
  102.     platform: device
  103.     type: remote_button_alt_double_press
  104.     subtype: button_5
  105.     id: '55'
  106.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  107.     domain: zha
  108.     platform: device
  109.     type: remote_button_alt_double_press
  110.     subtype: button_6
  111.     id: '66'
  112.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  113.     domain: zha
  114.     platform: device
  115.     type: remote_button_triple_press
  116.     subtype: button_1
  117.     id: '111'
  118.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  119.     domain: zha
  120.     platform: device
  121.     type: remote_button_triple_press
  122.     subtype: button_2
  123.     id: '222'
  124.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  125.     domain: zha
  126.     platform: device
  127.     type: remote_button_triple_press
  128.     subtype: button_3
  129.     id: '333'
  130.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  131.     domain: zha
  132.     platform: device
  133.     type: remote_button_triple_press
  134.     subtype: button_4
  135.     id: '444'
  136.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  137.     domain: zha
  138.     platform: device
  139.     type: remote_button_triple_press
  140.     subtype: button_5
  141.     id: '555'
  142.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  143.     domain: zha
  144.     platform: device
  145.     type: remote_button_triple_press
  146.     subtype: button_6
  147.     id: '666'
  148.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  149.     domain: zha
  150.     platform: device
  151.     type: remote_button_alt_long_press
  152.     subtype: button_1
  153.     id: 1_
  154.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  155.     domain: zha
  156.     platform: device
  157.     type: remote_button_alt_long_press
  158.     subtype: button_2
  159.     id: 2_
  160.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  161.     domain: zha
  162.     platform: device
  163.     type: remote_button_alt_long_press
  164.     subtype: button_3
  165.     id: 3_
  166.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  167.     domain: zha
  168.     platform: device
  169.     type: remote_button_alt_long_press
  170.     subtype: button_4
  171.     id: 4_
  172.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  173.     domain: zha
  174.     platform: device
  175.     type: remote_button_alt_long_press
  176.     subtype: button_5
  177.     id: 5_
  178.   - device_id: 82f85633b90b2d2d86a8ca17c4abfc43
  179.     domain: zha
  180.     platform: device
  181.     type: remote_button_alt_long_press
  182.     subtype: button_6
  183.     id: 6_
  184. condition: []
  185. action:
  186.   - choose:
  187.       - conditions:
  188.           - condition: trigger
  189.             id: '1'
  190.         sequence:
  191.           - service: cover.open_cover
  192.             target:
  193.               device_id: 5a9e13b7c8b79ac5e83246154be1a2bc
  194.             data: {}
  195.       - conditions:
  196.           - condition: trigger
  197.             id: '3'
  198.         sequence:
  199.           - service: cover.stop_cover
  200.             target:
  201.               device_id: 5a9e13b7c8b79ac5e83246154be1a2bc
  202.             data: {}
  203.       - conditions:
  204.           - condition: trigger
  205.             id: '5'
  206.         sequence:
  207.           - service: cover.close_cover
  208.             target:
  209.               device_id: 5a9e13b7c8b79ac5e83246154be1a2bc
  210.             data: {}
  211.       - conditions:
  212.           - condition: trigger
  213.             id: '2'
  214.         sequence:
  215.           - service: script.office_cover_open
  216.             data: {}
  217.       - conditions:
  218.           - condition: trigger
  219.             id: '4'
  220.         sequence:
  221.           - service: script.office_cover_stop
  222.             data: {}
  223.       - conditions:
  224.           - condition: trigger
  225.             id: '6'
  226.         sequence:
  227.           - service: script.office_cover_close
  228.             data: {}
  229.       - conditions:
  230.           - condition: trigger
  231.             id: '222'
  232.         sequence:
  233.           - service: climate.turn_on
  234.             target:
  235.               entity_id: climate.sensibo
  236.             data: {}
  237.       - conditions:
  238.           - condition: trigger
  239.             id: '666'
  240.         sequence:
  241.           - service: climate.turn_off
  242.             target:
  243.               entity_id: climate.sensibo
  244.             data: {}
  245.       - conditions:
  246.           - condition: trigger
  247.             id: '44'
  248.         sequence:
  249.           - service: script.office_fan_light_toggle
  250.             data: {}
  251.       - conditions:
  252.           - condition: trigger
  253.             id: '22'
  254.         sequence:
  255.           - service: input_number.increment
  256.             data: {}
  257.             target:
  258.               entity_id: input_number.office_fan_state
  259.       - conditions:
  260.           - condition: trigger
  261.             id: '66'
  262.         sequence:
  263.           - service: input_number.decrement
  264.             data: {}
  265.             target:
  266.               entity_id: input_number.office_fan_state
  267.       - conditions:
  268.           - condition: trigger
  269.             id: '11'
  270.         sequence:
  271.           - service: script.raise_main_temperature
  272.             data: {}
  273.       - conditions:
  274.           - condition: trigger
  275.             id: '55'
  276.         sequence:
  277.           - service: script.lower_main_temperature
  278.             data: {}
  279.     default: []
  280. mode: parallel
  281.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement