Advertisement
sevenof9

vacuum

Sep 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.42 KB | None | 0 0
  1. #-------------------------------------------------------------------------------------#
  2. #                                  iSuck                                              #
  3. #                                                                                     #
  4. #-------------------------------------------------------------------------------------#  
  5. - id: empty_wastebin_isuck
  6.   alias: Empty Wastebin iSuck
  7.   trigger:
  8.   - platform: state
  9.     entity_id: input_boolean.empty_wastebin
  10.     to: 'on'
  11.   condition:
  12.   - condition: state
  13.     entity_id: vacuum.isuck
  14.     state: 'docked'
  15.   action:
  16.   - service: VACUUM.XIAOMI_REMOTE_CONTROL_START
  17.     entity_id: vacuum.isuck
  18.   - delay: 12
  19.   - service: VACUUM.XIAOMI_REMOTE_CONTROL_MOVE
  20.     entity_id: vacuum.isuck
  21.     data:
  22.       duration: 2000
  23.       velocity: 0.29
  24.       rotation: 0
  25.   - delay: 5
  26.   - service: VACUUM.XIAOMI_REMOTE_CONTROL_STOP
  27.     entity_id: vacuum.isuck
  28.   - service: input_boolean.turn_off
  29.     entity_id: input_boolean.empty_wastebin
  30. #-------------------------------------------------------------------------------------------------------------------
  31. - id: return_to_dock_isuck
  32.   alias: Return iSuck to dock
  33.   trigger:
  34.   - platform: state
  35.     entity_id: input_boolean.return_to_dock
  36.     to: 'on'
  37.   action:
  38.   - service: vacuum.return_to_base
  39.     entity_id: vacuum.isuck
  40.   - service: input_boolean.turn_off
  41.     entity_id: input_boolean.return_to_dock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement