Dreame Binding [5.2.0.0;5.3.0.0)

Thanks for that. I will test it as soon as my robot wakes up from winter sleep :wink:

In the meanwhile I created a nice widget:

uid: a1_pro_2000_dashboard
tags:
  - A1_Pro_2000

props:
  parameters:
    - name: title
      label: Titel
      type: TEXT
      default: A1 Pro 2000
  parameterGroups: []

component: f7-card

config:
  style:
    margin: 0
    border-radius: 18px
    overflow: hidden

slots:
  default:

    # ============================================================
    # HEADER
    # ============================================================
    - component: f7-row
      config:
        class:
          - align-items-center
        style:
          padding: 16px 20px 12px
      slots:
        default:

          # TITEL
          - component: f7-col
            config:
              width: 75
            slots:
              default:
                - component: Label
                  config:
                    text: =props.title
                    style:
                      font-size: 22px
                      font-weight: 600

          # AKTUELLER MÄHSTATUS
          - component: f7-col
            config:
              width: 25
              style:
                text-align: right
            slots:
              default:
                - component: oh-icon
                  config:
                    icon: "f7:circle_fill"
                    width: 18px
                    color: "=items.A1_Pro_2000_State.state === 'mowing' ? 'green' : 'gray'"

                - component: Label
                  config:
                    text: "=items.A1_Pro_2000_State.state"
                    style:
                      font-size: 13px
                      font-weight: 600
                      margin-left: 5px

    # ============================================================
    # KARTE + INFORMATIONEN
    # ============================================================
    - component: f7-row
      config:
        class:
          - align-items-start
        style:
          padding: 0 12px 12px
      slots:
        default:

          # ======================================================
          # KARTE
          # ======================================================
          - component: f7-col
            config:
              width: 65
            slots:
              default:
                - component: f7-card
                  config:
                    style:
                      margin: 0
                      border-radius: 14px
                      overflow: hidden
                      background: var(--f7-page-bg-color)
                  slots:
                    default:
                      - component: oh-image
                        config:
                          item: A1_Pro_2000_Map_SVG
                          lazy: false
                          style:
                            width: 100%
                            height: auto
                            min-height: 400px
                            object-fit: contain

          # ======================================================
          # RECHTE INFORMATIONSSPALTE
          # ======================================================
          - component: f7-col
            config:
              width: 35
            slots:
              default:

                # ==================================================
                # MÄHFORTSCHRITT
                # ==================================================
                - component: f7-card
                  config:
                    style:
                      margin: 0 0 8px 8px
                      border-radius: 12px
                      padding: 12px
                  slots:
                    default:

                      - component: f7-row
                        slots:
                          default:

                            # BEZEICHNUNG
                            - component: f7-col
                              config:
                                width: 60
                              slots:
                                default:
                                  - component: Label
                                    config:
                                      text: Mähfortschritt
                                      style:
                                        font-size: 13px
                                        opacity: 0.65

                            # PROZENT
                            - component: f7-col
                              config:
                                width: 40
                                style:
                                  text-align: right
                              slots:
                                default:
                                  - component: Label
                                    config:
                                      text: "=Number.parseFloat(items.A1_Pro_2000_Mowing_Progress.state).toFixed(1) + ' %'"
                                      style:
                                        font-size: 15px
                                        font-weight: 600

                      # FORTSCHRITTSBALKEN
                      - component: f7-progressbar
                        config:
                          progress: "=Number.parseFloat(items.A1_Pro_2000_Mowing_Progress.state)"
                          style:
                            margin-top: 7px
                            height: 9px
                            border-radius: 5px

                # ==================================================
                # FLÄCHE + MÄHZEIT
                # ==================================================
                - component: f7-row
                  config:
                    style:
                      margin-left: 4px
                  slots:
                    default:

                      # ==================================================
                      # AKTUELL GEMÄHTE / GEPLANTE FLÄCHE
                      # ==================================================
                      - component: f7-col
                        config:
                          width: 50
                        slots:
                          default:
                            - component: f7-card
                              config:
                                style:
                                  margin: 0 4px 8px 0
                                  border-radius: 12px
                                  padding: 10px 5px
                                  text-align: center
                              slots:
                                default:

                                  # FLÄCHEN-ICON
                                  - component: oh-icon
                                    config:
                                      icon: "f7:map_fill"
                                      width: 20px
                                      color: "var(--f7-theme-color)"

                                  # FLÄCHE
                                  - component: Label
                                    config:
                                      text: "=Number.parseFloat(items.A1_Pro_2000_Current_Mowed_Area.state).toFixed(0) + ' / ' + Number.parseFloat(items.A1_Pro_2000_Planned_Mowing_Area.state).toFixed(0) + ' m²'"
                                      style:
                                        font-size: 15px
                                        font-weight: 600
                                        margin-top: 4px

                                  # BEZEICHNUNG
                                  - component: Label
                                    config:
                                      text: Fläche
                                      style:
                                        font-size: 10px
                                        opacity: 0.6

                      # ==================================================
                      # MÄHZEIT
                      # ==================================================
                      - component: f7-col
                        config:
                          width: 50
                        slots:
                          default:
                            - component: f7-card
                              config:
                                style:
                                  margin: 0 0 8px 4px
                                  border-radius: 12px
                                  padding: 10px 5px
                                  text-align: center
                              slots:
                                default:

                                  # UHR-ICON
                                  - component: oh-icon
                                    config:
                                      icon: "f7:clock_fill"
                                      width: 20px
                                      color: "var(--f7-theme-color)"

                                  # MÄHZEIT
                                  # Task Time Value wird vom Binding in Sekunden geliefert.
                                  # Umrechnung in hh:mm ohne String()/Intl/padStart().
                                  - component: Label
                                    config:
                                      text: "=(Math.floor(Number.parseFloat(items.A1_Pro_2000_Task_Time_Value.state) / 3600) < 10 ? '0' : '') + Math.floor(Number.parseFloat(items.A1_Pro_2000_Task_Time_Value.state) / 3600) + ':' + (Math.floor((Number.parseFloat(items.A1_Pro_2000_Task_Time_Value.state) % 3600) / 60) < 10 ? '0' : '') + Math.floor((Number.parseFloat(items.A1_Pro_2000_Task_Time_Value.state) % 3600) / 60)"
                                      style:
                                        font-size: 15px
                                        font-weight: 600
                                        margin-top: 4px

                                  # BEZEICHNUNG
                                  - component: Label
                                    config:
                                      text: Mähzeit
                                      style:
                                        font-size: 10px
                                        opacity: 0.6

                # ==================================================
                # AKTUELLE ZONE
                # ==================================================
                - component: f7-card
                  config:
                    style:
                      margin: 0 4px 8px 8px
                      border-radius: 12px
                      padding: 10px
                  slots:
                    default:
                      - component: f7-row
                        slots:
                          default:

                            # ZONEN-ICON
                            - component: f7-col
                              config:
                                width: 20
                              slots:
                                default:
                                  - component: oh-icon
                                    config:
                                      icon: "f7:location_fill"
                                      width: 22px
                                      color: "var(--f7-theme-color)"

                            # ZONE
                            - component: f7-col
                              config:
                                width: 80
                              slots:
                                default:

                                  - component: Label
                                    config:
                                      text: "=items.A1_Pro_2000_Current_Zone.state"
                                      style:
                                        font-size: 15px
                                        font-weight: 600
                                        overflow: hidden
                                        text-overflow: ellipsis
                                        white-space: nowrap

                                  # BEZEICHNUNG
                                  - component: Label
                                    config:
                                      text: Aktuelle Zone
                                      style:
                                        font-size: 10px
                                        opacity: 0.6

                # ==================================================
                # AKKU + WLAN
                # ==================================================
                - component: f7-row
                  config:
                    style:
                      margin-left: 4px
                  slots:
                    default:

                      # ==================================================
                      # AKKU
                      # ==================================================
                      - component: f7-col
                        config:
                          width: 50
                        slots:
                          default:
                            - component: f7-card
                              config:
                                style:
                                  margin: 0 4px 8px 0
                                  border-radius: 12px
                                  padding: 8px 4px
                                  text-align: center
                              slots:
                                default:

                                  # AKKU-ICON
                                  - component: oh-icon
                                    config:
                                      icon: "f7:battery_25"
                                      width: 22px
                                      color: "var(--f7-theme-color)"

                                  # AKKU-PROZENT
                                  - component: Label
                                    config:
                                      text: "=Number.parseFloat(items.A1_Pro_2000_Batterieladung.state).toFixed(0) + ' %'"
                                      style:
                                        font-size: 15px
                                        font-weight: 600
                                        margin-top: 3px

                                  # BEZEICHNUNG
                                  - component: Label
                                    config:
                                      text: Akku
                                      style:
                                        font-size: 10px
                                        opacity: 0.6

                      # ==================================================
                      # WLAN
                      # ==================================================
                      - component: f7-col
                        config:
                          width: 50
                        slots:
                          default:
                            - component: f7-card
                              config:
                                style:
                                  margin: 0 0 8px 4px
                                  border-radius: 12px
                                  padding: 8px 4px
                                  text-align: center
                              slots:
                                default:

                                  # WLAN-ICON
                                  - component: oh-icon
                                    config:
                                      icon: "f7:wifi"
                                      width: 22px
                                      color: "var(--f7-theme-color)"

                                  # WLAN-SIGNAL
                                  - component: Label
                                    config:
                                      text: "=items.A1_Pro_2000_WiFi_Signal_Strength.state"
                                      style:
                                        font-size: 15px
                                        font-weight: 600
                                        margin-top: 3px

                                  # BEZEICHNUNG
                                  - component: Label
                                    config:
                                      text: WLAN
                                      style:
                                        font-size: 10px
                                        opacity: 0.6

                # ==================================================
                # BEDIENBUTTONS
                # ==================================================
                - component: f7-row
                  config:
                    style:
                      margin-left: 4px
                  slots:
                    default:

                      # ==================================================
                      # START
                      # ==================================================
                      - component: f7-col
                        config:
                          width: 33
                        slots:
                          default:
                            - component: oh-button
                              config:
                                text: Start
                                iconF7: play_fill
                                fill: true
                                large: true
                                action: command
                                actionItem: A1_Pro_2000_Command
                                actionCommand: start
                                style:
                                  margin: 2px
                                  border-radius: 9px

                      # ==================================================
                      # PAUSE
                      # ==================================================
                      - component: f7-col
                        config:
                          width: 33
                        slots:
                          default:
                            - component: oh-button
                              config:
                                text: Pause
                                iconF7: pause_fill
                                fill: true
                                large: true
                                action: command
                                actionItem: A1_Pro_2000_Command
                                actionCommand: pause
                                style:
                                  margin: 2px
                                  border-radius: 9px

                      # ==================================================
                      # STATION
                      # ==================================================
                      - component: f7-col
                        config:
                          width: 33
                        slots:
                          default:
                            - component: oh-button
                              config:
                                text: Station
                                iconF7: house_fill
                                fill: true
                                large: true
                                action: command
                                actionItem: A1_Pro_2000_Command
                                actionCommand: dock
                                style:
                                  margin: 2px
                                  border-radius: 9px

Comments are welcome…

Works perfectly well with X40 Ultra vac

i use the binding daily with Dreame L50 pro ultra and its awesome so far.Only bug i see is with the map.Some times works perfect,shows the cleaning path and the rooms cleaned.Some times starts ok in multi room cleaning and randomly stops downloading map updates…

Hi Ronny, thank you for this binding. My Dreame X60 Pro Ultra Complete (model dreame.vacuum.r6001a, firmware 4.3.9_1881) is discovered by Beta 4 on openHAB 5.2.3, but the vacuum remains OFFLINE with CONFIGURATION_ERROR because the model is not in the supported model list. The Dreamehome account is ONLINE.

For an initial experiment, we locally added r6001a to the model list. The vacuum then came online and reported its battery, a room list and a PNG map. We have not yet verified the map visually or tested room cleaning and cleaning modes. Could you consider adding and verifying this model in an official test build? I would be happy to help test. Thank you!

Hi Manuel,

thank you for the detailed report and for already verifying the initial model mapping.

Beta 5 is now available and officially includes support for the Dreame X60 Pro Ultra Complete (dreame.vacuum.r6001a):

Download Dreame Binding Beta 5

The build retains compatibility with openHAB 5.2.x. Could you please check whether the existing Thing comes online and test the following points?

  • status and battery updates
  • room list and room names
  • visual appearance of the PNG and SVG maps
  • room cleaning
  • cleaning and suction modes
  • start, pause, stop and dock commands

Feedback about unavailable channels, incorrect values or model-specific behavior would be very helpful. If something fails, please share the relevant sanitized TRACE messages for org.openhab.binding.dreame.

Before installing the standalone beta JAR, please also make sure that the openHAB MQTT transport is installed. If necessary, run this command in the openHAB console:

feature:install openhab-transport-mqtt

Thank you very much for testing!

Hi Ronny,
thanks for your great job.
I want to use the binding for my Dream L10s Ultra Gen 3 (dreame.vacuum.r501h, Firmware 4.3.9_1304).
Tried the official download, and also the mentiod Beta 5 above.
Dreamhome Account is ok, but Vacuum throws:
Status: OFFLINE
CONFIGURATION_ERROR
The discovered vacuum model has no verified protocol mapping
Is it planned to include my model in the binding?
Thanks in advance.
Kind regards,
Bjoern

Thanks also,
I have a Dreame X60 Ultra, firmware 4.3.9_1853. Using your latest jar the bridge connects and shows online, it scans and detects my vacuum, but in the vacuum thing I get
Status:

OFFLINE

CONFIGURATION_ERROR

The discovered vacuum model has no verified protocol mapping
logs below.

[DEBUG] [org.openhab.binding.dreame.internal.discovery.DreameVacuumDiscoveryService] - Discovered vacuum model dreame.vacuum.r5089b
[TRACE] [org.openhab.binding.dreame.internal.handler.DreameVacuumHandler] - Vacuum discovery diagnostics: model=dreame.vacuum.r5089b, firmwarePresent=true, ownerPresent=true, brokerPresent=true

Anything else I can provide?
I can connect with the Matter binding but this gives limited info.
Thanks again
Ant

Hi @AntPow and @bjhimself,

thank you both for reporting the exact model and firmware information.

I have published Beta 6 with initial support for both reported models:

  • Dreame L10s Ultra Gen 3 (dreame.vacuum.r501h)
  • Dreame X60 Ultra (dreame.vacuum.r5089b)

Download Dreame Binding Beta 6

The build retains compatibility with openHAB 5.2.x. Before installing the standalone JAR, please make sure that the MQTT transport is installed:

feature:install openhab-transport-mqtt

Could you please check whether the existing vacuum Thing now comes online and test the status and battery updates, available channels, commands, room names, room cleaning, cleaning modes, and the PNG/SVG maps?

Since these exact models have not yet been tested with this binding, feedback about unavailable channels, incorrect values, or model-specific behavior would be very helpful. If something fails, please share the relevant sanitized TRACE messages for org.openhab.binding.dreame.

Thank you very much for testing!

Hi Ronny,
thanks for the very quick support. Works fine for me, Vacuum is connected, the first items are created.
I will check more this weekend.
Thank you very much!
Kind regards,
Bjoern

i dont know if anyone else experienced this,my map stops updating after awhile.It works ok for 1 or 2 rooms but if i multiclean more rooms sometime map stops updating.

Hi Constantinos,

thank you for reporting this. Could you please enable TRACE logging for org.openhab.binding.dreame and capture the log from shortly before starting the multi-room cleaning until the map stops updating?

It would also help to know:

  • whether both the PNG and SVG map stop updating,
  • approximately how many rooms were selected,
  • whether starting another cleaning task or restarting the Thing restores map updates.

Please sanitize credentials, tokens, serial numbers, MAC addresses and complete device IDs before sharing the log.

Thank you!

Thanks for adding the Dreame X60 Ultra (dreame.vacuum.r5089b).
Now recognises the vacuum and loads a number of channels - most work but the following channels are returning undefined but also do not appear in the app (that I could find - that may appear when triggered). Not an issue to me but FYI.
Dreame_Vacuum_Detergent_Remaining
Dreame_Vacuum_Detergent_Time_Remaining
Dreame_Vacuum_Mop_Pad_Remaining
Dreame_Vacuum_Mop_Pad_Time_Remaining
Dreame_Vacuum_Room_Cleaning

the Dreame_Vacuum_Water_Volume shows medium but the app is telling me to refill.
trace below

00:04.091[TRACE] [org.openhab.binding.dreame.internal.api.DreameHttpTransport] - Dreamehome POST /dreame-iot-com-10000/device/sendCommand authenticated=true body={"did":"******","id":"***","data":{"did":"***1832","id":"***","method":"get_properties","params":[{"did":"***","siid":2,"piid":1},{"did":"***","siid":2,"piid":2},{"did":"***","siid":3,"piid":1},{"did":"***","siid":3,"piid":2},{"did":"***","siid":4,"piid":1},{"did":"***","siid":4,"piid":2},{"did":"***","siid":4,"piid":3},{"did":"***","siid":4,"piid":4},{"did":"***","siid":4,"piid":5},{"did":"***","siid":4,"piid":7},{"did":"***","siid":4,"piid":23},{"did":"***","siid":4,"piid":25},{"did":"***","siid":4,"piid":40},{"did":"***","siid":4,"piid":50},{"did":"***","siid":9,"piid":1},{"did":"***","siid":9,"piid":2},{"did":"***","siid":10,"piid":1},{"did":"***","siid":10,"piid":2},{"did":"***","siid":11,"piid":1},{"did":"***","siid":11,"piid":2},{"did":"***","siid":12,"piid":2},{"did":"***","siid":12,"piid":3},{"did":"***","siid":12,"piid":4},{"did":"***","siid":16,"piid":1},{"did":"***","siid":16,"piid":2},{"did":"***","siid":18,"piid":1},{"did":"***","siid":18,"piid":2},{"did":"***","siid":20,"piid":1},{"did":"***","siid":20,"piid":2},{"did":"***","siid":15,"piid":3}],"from":"openHAB"}}

13:00:05.021[TRACE] [org.openhab.binding.dreame.internal.api.DreameHttpTransport] - Dreamehome POST /dreame-iot-com-10000/device/sendCommand authenticated=true body={"did":"*******","id":"***","data":{"did":"*******","id":"***","method":"get_properties","params":[{"did":"***","siid":6,"piid":8}],"from":"openHAB"}}

This vacuum also has a matter interface and I will explore that when I get a chance.