Roborock notify on clean end

mail@pastecode.io avatar
unknown
yaml
12 days ago
616 B
3
Indexable
Never
alias: "Roborock cleaning finished "
description: ""
trigger:
  - type: not_running
    platform: device
    device_id: xxx
    entity_id: xxx
    domain: binary_sensor
condition: []
action:
  - service: notify.mobile_app_realme_9pro
    metadata: {}
    data:
      title: Robo Pretty
      message: >-
        Pretty finished cleaning. \nIt took care of {{
        states('sensor.pretty_cleaning_area') }}m²  in {% set ct =
        states('sensor.pretty_cleaning_time')|int %} {{
        ct|timestamp_custom('%H:%M:%S hours', false) if ct > 3599 else
        ct|timestamp_custom('%M:%S minutes') }} 
mode: single