Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-------------------------------------------------------------------------------------#
- # iSuck #
- # #
- #-------------------------------------------------------------------------------------#
- - id: empty_wastebin_isuck
- alias: Empty Wastebin iSuck
- trigger:
- - platform: state
- entity_id: input_boolean.empty_wastebin
- to: 'on'
- condition:
- - condition: state
- entity_id: vacuum.isuck
- state: 'docked'
- action:
- - service: VACUUM.XIAOMI_REMOTE_CONTROL_START
- entity_id: vacuum.isuck
- - delay: 12
- - service: VACUUM.XIAOMI_REMOTE_CONTROL_MOVE
- entity_id: vacuum.isuck
- data:
- duration: 2000
- velocity: 0.29
- rotation: 0
- - delay: 5
- - service: VACUUM.XIAOMI_REMOTE_CONTROL_STOP
- entity_id: vacuum.isuck
- - service: input_boolean.turn_off
- entity_id: input_boolean.empty_wastebin
- #-------------------------------------------------------------------------------------------------------------------
- - id: return_to_dock_isuck
- alias: Return iSuck to dock
- trigger:
- - platform: state
- entity_id: input_boolean.return_to_dock
- to: 'on'
- action:
- - service: vacuum.return_to_base
- entity_id: vacuum.isuck
- - service: input_boolean.turn_off
- entity_id: input_boolean.return_to_dock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement