Advertisement
rootiest

Untitled

Nov 27th, 2021
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.88 KB | None | 0 0
  1. alias: Air Con Fan Modes Slider
  2. description: ''
  3. mode: single
  4. trigger:
  5.   - platform: state
  6.     entity_id: input_number.air_con_fan_modes_slider
  7.     id: fan_auto
  8.     to: '0'
  9.   - platform: state
  10.     entity_id: input_number.air_con_fan_modes_slider
  11.     id: fan_silent
  12.     to: '1'
  13.   - platform: state
  14.     entity_id: input_number.air_con_fan_modes_slider
  15.     id: fan_1
  16.     to: '2'
  17.   - platform: state
  18.     entity_id: input_number.air_con_fan_modes_slider
  19.     id: fan_2
  20.     to: '3'
  21.   - platform: state
  22.     entity_id: input_number.air_con_fan_modes_slider
  23.     id: fan_3
  24.     to: '4'
  25.   - platform: state
  26.     entity_id: input_number.air_con_fan_modes_slider
  27.     id: fan_4
  28.     to: '5'
  29.   - platform: state
  30.     entity_id: input_number.air_con_fan_modes_slider
  31.     id: fan_5
  32.     to: '6'
  33.   - platform: state
  34.     entity_id: input_number.air_con_fan_modes_slider
  35.     id: fan_6
  36.     to: '7'
  37. condition: []
  38. action:
  39.   - choose:
  40.       - conditions:
  41.           - condition: trigger
  42.             id: fan_auto
  43.         sequence:
  44.           - service: climate.set_fan_mode
  45.             target:
  46.               entity_id: climate.air_con
  47.             data:
  48.               fan_mode: Auto
  49.       - conditions:
  50.           - condition: trigger
  51.             id: fan_silent
  52.         sequence:
  53.           - service: climate.set_fan_mode
  54.             target:
  55.               entity_id: climate.air_con
  56.             data:
  57.               fan_mode: Silence
  58.       - conditions:
  59.           - condition: trigger
  60.             id: fan_1
  61.         sequence:
  62.           - service: climate.set_fan_mode
  63.             target:
  64.               entity_id: climate.air_con
  65.             data:
  66.               fan_mode: '1'
  67.       - conditions:
  68.           - condition: trigger
  69.             id: fan_2
  70.         sequence:
  71.           - service: climate.set_fan_mode
  72.             target:
  73.               entity_id: climate.air_con
  74.             data:
  75.               fan_mode: '2'
  76.       - conditions:
  77.           - condition: trigger
  78.             id: fan_3
  79.         sequence:
  80.           - service: climate.set_fan_mode
  81.             target:
  82.               entity_id: climate.air_con
  83.             data:
  84.               fan_mode: '3'
  85.       - conditions:
  86.           - condition: trigger
  87.             id: fan_4
  88.         sequence:
  89.           - service: climate.set_fan_mode
  90.             target:
  91.               entity_id: climate.air_con
  92.             data:
  93.               fan_mode: '4'
  94.       - conditions:
  95.           - condition: trigger
  96.             id: fan_5
  97.         sequence:
  98.           - service: climate.set_fan_mode
  99.             target:
  100.               entity_id: climate.air_con
  101.             data:
  102.               fan_mode: '5'
  103.       - conditions:
  104.           - condition: trigger
  105.             id: fan_6
  106.         sequence:
  107.           - service: climate.set_fan_mode
  108.             target:
  109.               entity_id: climate.air_con
  110.             data:
  111.               fan_mode: '6'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement