denysdovhan / vacuum-card

Vacuum cleaner card for Home Assistant Lovelace UI
https://denysdovhan.com/smart-home
MIT License
903 stars 529 forks source link

Support for Xiaomi Mi Robot Vacuum SDJQR01RR / SDJQR02RR (First generation) #695

Closed M0DDer closed 4 months ago

M0DDer commented 7 months ago

Here it is. The remaining percentages are used, not the elapsed time. Just like in the native MiHome app

type: custom:vacuum-card
entity: vacuum.rockrobo_v1_1f25_robot_cleaner
show_name: false
stats:
  default:
    - attribute: props.filter_work_time
      unit: '%'
      value_template: '{{ ( 100/150 * (150 - value / 3600 ) ) | round(0) }}'
      subtitle: Filter
    - attribute: props.side_brush_work_time
      unit: '%'
      value_template: '{{ ( 100/200 * (200 - value / 3600 ) ) | round(0) }}'
      subtitle: Side brush
    - attribute: props.main_brush_work_time
      unit: '%'
      value_template: '{{ ( 100/300 * (300 - value / 3600 ) ) | round(0) }}'
      subtitle: Main Brush
    - attribute: props.sensor_dirty_time
      unit: '%'
      value_template: '{{ ( 100/30 * (30 - value / 3600 ) ) | round(0) }}'
      subtitle: Sensors
  cleaning:
    - attribute: clean_area
      subtitle: Clean Area
      unit: m2
    - attribute: clean_time
      unit: min
      subtitle: Clean time
shortcuts:
  - name: Clean room
    service: script.clean_room
    icon: mdi:sofa
map: camera.xiaomi_cloud_map_extractor
github-actions[bot] commented 5 months ago

There hasn't been any activity on this issue recently. This issue has now been marked as stale and will be closed if no further activity occurs. Please, update to the latest version and check if that solves the issue. Thank you for your contributions!

github-actions[bot] commented 4 months ago

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.