No enitiy_id created Roborock S7

Is it possible to run only the HA integration or do you have to run both the android/ios roborock app and the HA integration?

Hello.
Thanks for the sharing.

Can you control the “mopa” as you can choose on the roborock application? To turn off and on , to set the desired type of clean with “mopa”… soft… medium or high?
Thanks

Can you put the yaml of the card that you have configured?
All that is on the image that you show @MrFroggy ?
Thanks

I use both. But you can use only the app or only the integration with HA.

You do have an attribute to show if the mop is installed or not, but I don’t think you can control that from HA, you can control it only from the app.
This functionality is already asked at Roborock integration github page. Maybe in the near future…

Sure!

  - title: Vacuum
    path: vacuum
    icon: mdi:robot-vacuum
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: custom:xiaomi-vacuum-card
            entity: vacuum.lucineide
            image: /local/vacuum/vacuum.png
            name: Lucineide
            vendor: xiaomi
            attributes:
              mop_attached:
                key: mop_attached
                label: 'Mop: '
          - type: horizontal-stack
            cards:
              - elements:
                  - entity: sensor.lucineide_side_brush_remaining
                    style:
                      background-color: rgba(0, 0, 0, 0.3)
                      bottom: 0px
                      color: orange
                      font-size: 30px
                      left: 0px
                      right: 0px
                      transform: translate(0%,0%)
                    title: '% Remaining Until Side Brush Should Be Replaced'
                    type: state-label
                  - entity: sensor.lucineide_side_brush_hrs_remaining
                    style:
                      bottom: 0px
                      color: white
                      font-size: 16px
                      line-height: 16px
                      right: 0px
                      transform: translate(0%,0%)
                    prefix: 'Remaining '
                    title: Hours Remaining Until Side Brush Should Be Replaced
                    type: state-label
                  - icon: mdi:restart
                    style:
                      color: white
                      padding: 7px
                      right: 0px
                      top: 0px
                      transform: translate(0%,0%)
                    tap_action:
                      action: call-service
                      confirmation:
                        text: >-
                          Are you sure you want to reset the hours remaining
                          counter for replacing the side brush?
                      service: vacuum.send_command
                      service_data:
                        command: reset_consumable
                        entity_id: vacuum.lucineide
                        params:
                          - side_brush_work_time
                    title: Reset Hours
                    type: icon
                image: /local/vacuum/side_brush.png
                type: picture-elements
              - elements:
                  - entity: sensor.lucineide_sensors_remaining
                    style:
                      background-color: rgba(0, 0, 0, 0.3)
                      bottom: 0px
                      color: orange
                      font-size: 30px
                      left: 0px
                      right: 0px
                      transform: translate(0%,0%)
                    title: '% Remaining Until Sensors Should Be Cleaned'
                    type: state-label
                  - entity: sensor.lucineide_sensors_hrs_remaining
                    style:
                      bottom: 0px
                      color: white
                      font-size: 16px
                      line-height: 16px
                      right: 0px
                      transform: translate(0%,0%)
                    prefix: 'Remaining '
                    title: Hours Remaining Until Sensors Should Be Cleaned
                    type: state-label
                  - icon: mdi:restart
                    style:
                      color: white
                      padding: 7px
                      right: 0px
                      top: 0px
                      transform: translate(0%,0%)
                    tap_action:
                      action: call-service
                      confirmation:
                        text: >-
                          Are you sure you want to reset the hours remaining
                          counter for cleaning the sensors?
                      service: vacuum.send_command
                      service_data:
                        command: reset_consumable
                        entity_id: vacuum.lucineide
                        params:
                          - sensor_dirty_time
                    title: Reset Hours
                    type: icon
                image: /local/vacuum/sensors.png
                type: picture-elements
          - type: horizontal-stack
            cards:
              - elements:
                  - entity: sensor.lucineide_filter_remaining
                    style:
                      background-color: rgba(0, 0, 0, 0.3)
                      bottom: 0px
                      color: orange
                      font-size: 30px
                      left: 0px
                      right: 0px
                      transform: translate(0%,0%)
                    title: '% Remaining Until Filter Should Be Replaced'
                    type: state-label
                  - entity: sensor.lucineide_filter_hrs_remaining
                    style:
                      bottom: 0px
                      color: white
                      font-size: 16px
                      line-height: 16px
                      right: 0px
                      transform: translate(0%,0%)
                    prefix: 'Remaining '
                    title: Hours Remaining Until Filter Should Be Replaced
                    type: state-label
                  - icon: mdi:restart
                    style:
                      color: white
                      padding: 7px
                      right: 0px
                      top: 0px
                      transform: translate(0%,0%)
                    tap_action:
                      action: call-service
                      confirmation:
                        text: >-
                          Are you sure you want to reset the hours remaining
                          counter for replacing the filter?
                      service: vacuum.send_command
                      service_data:
                        command: reset_consumable
                        entity_id: vacuum.lucineide
                        params:
                          - filter_work_time
                    title: Reset Hours
                    type: icon
                image: /local/vacuum/filter.png
                type: picture-elements
              - elements:
                  - entity: sensor.lucineide_main_brush_remaining
                    style:
                      background-color: rgba(0, 0, 0, 0.3)
                      bottom: 0px
                      color: orange
                      font-size: 30px
                      left: 0px
                      right: 0px
                      transform: translate(0%,0%)
                    title: '% Remaining Until Main Brush Should Be Replaced'
                    type: state-label
                  - entity: sensor.lucineide_main_brush_hrs_remaining
                    style:
                      bottom: 0px
                      color: white
                      font-size: 16px
                      line-height: 16px
                      right: 0px
                      transform: translate(0%,0%)
                    prefix: 'Remaining '
                    title: Hours Remaining Until Main Brush Should Be Replaced
                    type: state-label
                  - icon: mdi:restart
                    style:
                      color: white
                      padding: 7px
                      right: 0px
                      top: 0px
                      transform: translate(0%,0%)
                    tap_action:
                      action: call-service
                      confirmation:
                        text: >-
                          Are you sure you want to reset the hours remaining
                          counter for replacing the main brush?
                      service: vacuum.send_command
                      service_data:
                        command: reset_consumable
                        entity_id: vacuum.lucineide
                        params:
                          - main_brush_work_time
                    title: Reset Hours
                    type: icon
                image: /local/vacuum/main_brush.png
                type: picture-elements
      - type: vertical-stack
        cards:
          - type: custom:xiaomi-vacuum-map-card
            entity: vacuum.lucineide
            map_camera: camera.lucineide_map
            camera_calibration: true
          - show_header: true
            type: entities
            entities:
              - head:
                  entity: input_boolean.aspirar_iniciar
                  secondary_info: last-changed
                  icon: mdi:robot-vacuum
                  name: Start
                type: custom:fold-entity-row
                entities:
                  - entity: input_number.aspirar_cozinha
                    name: Kitchen
                    type: custom:numberbox-card
                    icon_plus: mdi:chevron-up
                    icon_minus: mdi:chevron-down
                    style: |
                      .cur-num{font-size:20px !important}
                  - entity: input_number.aspirar_sala
                    name: Living Room
                    type: custom:numberbox-card
                    icon_plus: mdi:chevron-up
                    icon_minus: mdi:chevron-down
                    style: |
                      .cur-num{font-size:20px !important}
                  - entity: input_number.aspirar_escritorio
                    name: Office
                    type: custom:numberbox-card
                    icon_plus: mdi:chevron-up
                    icon_minus: mdi:chevron-down
                    style: |
                      .cur-num{font-size:20px !important}
                  - entity: input_number.aspirar_hall_entrada
                    name: Hall
                    type: custom:numberbox-card
                    icon_plus: mdi:chevron-up
                    icon_minus: mdi:chevron-down
                    style: |
                      .cur-num{font-size:20px !important}
                  - entity: input_number.aspirar_wc
                    name: WC
                    type: custom:numberbox-card
                    icon_plus: mdi:chevron-up
                    icon_minus: mdi:chevron-down
                    style: |
                      .cur-num{font-size:20px !important}

filter main_brush

sensors side_brush 8249fd50a958e80bd226584a09acd534471bbb4a

4 Likes

Thank you for sharing the images too :slight_smile:

Really appreciate. Let’s wait for a github version for s7.
Or in a near future the root for s7 too :slight_smile:

@MrFroggy where did you define the zones? To get the entity ID?
entity: input_number.aspirar_wc

From HA helpers. Those input_numbers as well as the “input_boolean.aspirar_iniciar” are all helpers to make an automation within NodeRed.
This works like this: I expand the “Iniciar” (Start in Portuguese) dropdown and all zones appears. Then I just select how many passes I want for each zone and just press “Iniciar”.
Ahh and to optimize bandwidth, I just update the map when the vacuum is ON. If it’s OFF, the map does not update at all.

Sorry to ask you. I understand that I choose from the dropdown box, but is it needed NodeRed to accomplish this?
Thank you

No, you can do your automations within HA automations as well.
The use of NodeRed is just my preference. All my automations are implemented in NodeRed.

I cannot get the picture working…:frowning:

I tried the path inside config/photos/name.png
But it does not show the pic…
Any ideia why? Can you help me with that.?

Other question…
In ha where I can find the entities input…?
You talk in nodered but as I don’t have it where can I find that in HA?
Thanks

All images need to be saved inside “/config/www” directory. Inside the “www” directory you can create any directory tree you want.

1 Like

Goto Configuration->Helpers.
Install NodeRed depends on your HA installation. If you have HASSOS, then just install it from “Supervisor->Addon Store”.

@MrFroggy ok… but without NodeRed i already got into the HA → Helpers , but honestly i don’t know how to create on my side based on the yaml. Sorry for not to know so much about HA , but this regarding helpers and the sensors , i would be really appreciated if you can provide me some guidance. ?

i also intalled NodeRed in HA and installed the nodes for RoboRock , but i don’t know what to do… :frowning:
can you show me how please?
or without NodeRed …
i Am almost there i think heeheh.

Many thanks

Hi @nbexiga,

You don’t need the roborock palette in NodeRed to work with your S7. This palette is for people that doesn’t use HomeAssistant, only NodeRed. In your cenario (HA+NR) you should use only the HA<->Roborock integration, not the palette.

NodeRed is another chapter. First you need to learn HA and how it works (including helpers, automations, entities, attributes, services, templates, events, etc). Only then you should move to NodeRed. Just do as I did, learn from youtube videos, forum and the community. It’s not difficult, you just need to spend some time and patience.

For helpers, check those 2 videos:
Video 1
Video 2

But this is too much Offtopic. If you need more help, PM me.

BTW, these are the sensors created to help display some information on the cards.

# Roborock S7
- platform: template
  sensors:
    # Used for the Filter maintenance card
    lucineide_filter_remaining:
      friendly_name: 'HEPA Filter Life (%)'
      unit_of_measurement: '%'
      value_template: "{{((state_attr('vacuum.lucineide', 'filter_left') / 150) * 100) | round | int}}"

    # Used for the Filter maintenance card
    lucineide_filter_hrs_remaining:
      friendly_name: 'HEPA Filter Life (hr)'
      unit_of_measurement: 'hrs'
      value_template: "{{state_attr('vacuum.lucineide', 'filter_left')}}"

    # Used for the Side Brush maintenance card
    lucineide_side_brush_remaining:
      friendly_name: 'Side Brush Life (%)'
      unit_of_measurement: '%'
      value_template: "{{((state_attr('vacuum.lucineide', 'side_brush_left') / 200) * 100) | round | int}}"

    # Used for the Side Brush maintenance card
    lucineide_side_brush_hrs_remaining:
      friendly_name: 'Side Brush Life (hr)'
      unit_of_measurement: 'hrs'
      value_template: "{{state_attr('vacuum.lucineide', 'side_brush_left')}}"

    # Used for the Main Brush maintenance card
    lucineide_main_brush_remaining:
      friendly_name: 'Main Brush Life (%)'
      unit_of_measurement: '%'
      value_template: "{{((state_attr('vacuum.lucineide', 'main_brush_left') / 300) * 100) | round | int}}"

    # Used for the Main Brush maintenance card
    lucineide_main_brush_hrs_remaining:
      friendly_name: 'Main Brush Life (hr)'
      unit_of_measurement: 'hrs'
      value_template: "{{state_attr('vacuum.lucineide', 'main_brush_left')}}"

    # Used for the Sensors maintenance card
    lucineide_sensors_remaining:
      friendly_name: 'Sensors Usage (%)'
      unit_of_measurement: '%'
      value_template: "{{((state_attr('vacuum.lucineide', 'sensor_dirty_left') / 30) * 100) | round | int}}"

    # Used for the Sensors maintenance card
    lucineide_sensors_hrs_remaining:
      friendly_name: 'Sensors Usage (hr)'
      unit_of_measurement: 'hrs'
      value_template: "{{state_attr('vacuum.lucineide', 'sensor_dirty_left')}}"
3 Likes

Thank you all for all this lovely sharing !
Finally got the Roborock S7 fully integrated in HA, I’m loving it :


:slight_smile:

1 Like

You are welcome.

BTW, nice vacuum card!