-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Roborock room cleaning not working #648
Comments
Are you sure room ids are correct? |
I didn't make any changes to them after setting up the card. Is there a way to verify them? |
They should be visible in attributes of the camera entity (in dev tools) |
Ya they seem to be correct. |
Can you show your service call? It is shown in a popup when you long press "Start" button or add |
Can you try removing quotes from room ids and check if it works? |
Made the change, but can't test until tomorrow. I'll comment back after testing. |
Just tested and same issue. Started a room cleaning but it just starts cleaning the whole floor. |
Tried this and it worked:
|
Does this one work? service: roborock.vacuum_clean_segment
data:
entity_id: vacuum.roborock_s7_maxv
repeats: 1
segments:
- 16 |
Away for the week. I'll test it out when I get back home. |
Sorry for the delay. Just tried that and it worked as well. |
Try to use this config: type: custom:xiaomi-vacuum-map-card
map_source:
camera: camera.roborock_s7_maxv_map
crop:
top: 60
bottom: 120
left: 80
right: 80
calibration_source:
camera: true
entity: vacuum.roborock_s7_maxv
vacuum_platform: humbertogontijo/homeassistant-roborock
map_modes:
- template: vacuum_clean_zone
- template: vacuum_goto
- template: vacuum_clean_segment
id_type: "number"
predefined_selections:
- id: '16'
icon:
name: mdi:silverware-fork-knife
x: 25950
'y': 26825
label:
text: Dining Area
x: 25950
'y': 26825
offset_y: 35
outline:
- - 24750
- 25250
- - 27150
- 25250
- - 27150
- 28400
- - 24750
- 28400
- id: '17'
icon:
name: mdi:door
x: 23450
'y': 28125
label:
text: Entryway
x: 23450
'y': 28125
offset_y: 35
outline:
- - 22150
- 26150
- - 24750
- 26150
- - 24750
- 30100
- - 22150
- 30100
- id: '18'
icon:
name: mdi:chef-hat
x: 28150
'y': 26600
label:
text: Kitchen
x: 28150
'y': 26600
offset_y: 35
outline:
- - 27100
- 25300
- - 29200
- 25300
- - 29200
- 27900
- - 27100
- 27900
- id: '19'
icon:
name: mdi:sofa
x: 21325
'y': 28125
label:
text: Living Room
x: 21325
'y': 28125
offset_y: 35
outline:
- - 19550
- 26150
- - 23100
- 26150
- - 23100
- 30100
- - 19550
- 30100
- id: '20'
icon:
name: mdi:stairs-down
x: 26350
'y': 30375
label:
text: Downstairs
x: 26350
'y': 30375
offset_y: 35
outline:
- - 25400
- 28400
- - 27300
- 28400
- - 27300
- 32350
- - 25400
- 32350
variables: {}
map_locked: true
card_mod:
style: |
.tile-wrapper.clickable.ripple.tile-wrapper {
background-color: #eeeeee;
border-radius: 10px;
color: #616161
}
:host
div.controls-wrapper>div.vacuum-controls>div {
background-color: #eeeeee;
color: #616161
}
div.controls-wrapper>div.map-controls-wrapper>div>div {
background-color: #D7EBFD;
color: #4D6173
}
div.controls-wrapper>div.map-controls-wrapper>div>div>paper-button.map-actions-item.main.clickable.ripple {
background-color: #BBCFE1;
color: #4D6173
}
div.controls-wrapper>div.map-controls-wrapper>div>ha-button-menu>div>paper-button {
background-color: #2196F3;
color: #D7EBFD
}
div.map-zoom-icons {
background-color: #D7EBFD;
color: #2196F3
}
div.map-zoom-icons>div {
background-color: #2196F3;
color: #D7EBFD
}
div.controls-wrapper>xvmc-icons-wrapper>div>div {
background-color: #D7EBFD;
color: #4D6173
}
div.controls-wrapper>div>div>xvmc-dropdown-menu>ha-button-menu>div>paper-button {
background-color: #D7EBFD;
color: #4D6173
}
#map-zoomer-overlay>div:nth-child(1)>ha-icon {
background-color: #A9A9A9;
color: #E5E5E5
}
icons:
- icon: mdi:play
conditions:
- entity: vacuum.roborock_s7_maxv
value_not: cleaning
- entity: vacuum.roborock_s7_maxv
value_not: error
- entity: vacuum.roborock_s7_maxv
value_not: returning
tooltip: Start
tap_action:
action: call-service
service: vacuum.start
service_data:
entity_id: vacuum.roborock_s7_maxv
- icon: mdi:pause
conditions:
- entity: vacuum.roborock_s7_maxv
value_not: docked
- entity: vacuum.roborock_s7_maxv
value_not: idle
- entity: vacuum.roborock_s7_maxv
value_not: error
- entity: vacuum.roborock_s7_maxv
value_not: paused
tooltip: Pause
tap_action:
action: call-service
service: vacuum.pause
service_data:
entity_id: vacuum.roborock_s7_maxv
- icon: mdi:stop
conditions:
- entity: vacuum.roborock_s7_maxv
value_not: docked
- entity: vacuum.roborock_s7_maxv
value_not: idle
- entity: vacuum.roborock_s7_maxv
value_not: error
- entity: vacuum.roborock_s7_maxv
value_not: paused
tooltip: Stop
tap_action:
action: call-service
service: vacuum.stop
service_data:
entity_id: vacuum.roborock_s7_maxv
- icon: mdi:home-map-marker
conditions:
- entity: vacuum.roborock_s7_maxv
value_not: docked
- entity: vacuum.roborock_s7_maxv
value_not: returning
tooltip: Return to base
tap_action:
action: call-service
service: vacuum.return_to_base
service_data:
entity_id: vacuum.roborock_s7_maxv
- icon: mdi:target-variant
conditions:
- entity: vacuum.roborock_s7_maxv
value_not: docked
- entity: vacuum.roborock_s7_maxv
value_not: error
- entity: vacuum.roborock_s7_maxv
value_not: cleaning
- entity: vacuum.roborock_s7_maxv
value_not: returning
tooltip: Clean spot
tap_action:
action: call-service
service: vacuum.clean_spot
service_data:
entity_id: vacuum.roborock_s7_maxv
- icon: mdi:map-marker
tooltip: Locate
tap_action:
action: call-service
service: vacuum.locate
service_data:
entity_id: vacuum.roborock_s7_maxv
- menu_id: fan_speed
icon: mdi:fan-alert
label: 'off'
conditions:
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value: 'off'
tooltip: Change fan speed
tap_action:
action: call-service
service: vacuum.set_fan_speed
service_data:
entity_id: vacuum.roborock_s7_maxv
fan_speed: 'off'
- menu_id: fan_speed
icon: mdi:fan-alert
label: quiet
conditions:
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value: quiet
tooltip: Change fan speed
tap_action:
action: call-service
service: vacuum.set_fan_speed
service_data:
entity_id: vacuum.roborock_s7_maxv
fan_speed: quiet
- menu_id: fan_speed
icon: mdi:fan-alert
label: balanced
conditions:
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value: balanced
tooltip: Change fan speed
tap_action:
action: call-service
service: vacuum.set_fan_speed
service_data:
entity_id: vacuum.roborock_s7_maxv
fan_speed: balanced
- menu_id: fan_speed
icon: mdi:fan-alert
label: Turbo
conditions:
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value: turbo
tooltip: Change fan speed
tap_action:
action: call-service
service: vacuum.set_fan_speed
service_data:
entity_id: vacuum.roborock_s7_maxv
fan_speed: turbo
- menu_id: fan_speed
icon: mdi:fan-alert
label: max
conditions:
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value: max
tooltip: Change fan speed
tap_action:
action: call-service
service: vacuum.set_fan_speed
service_data:
entity_id: vacuum.roborock_s7_maxv
fan_speed: max
- menu_id: fan_speed
icon: mdi:fan-alert
label: custom
conditions:
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value: custom
tooltip: Change fan speed
tap_action:
action: call-service
service: vacuum.set_fan_speed
service_data:
entity_id: vacuum.roborock_s7_maxv
fan_speed: custom
- menu_id: fan_speed
icon: mdi:fan-alert
label: max_plus
conditions:
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value: max_plus
tooltip: Change fan speed
tap_action:
action: call-service
service: vacuum.set_fan_speed
service_data:
entity_id: vacuum.roborock_s7_maxv
fan_speed: max_plus
- icon: mdi:fan-alert
conditions:
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value_not: 'off'
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value_not: quiet
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value_not: balanced
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value_not: turbo
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value_not: max
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value_not: custom
- entity: vacuum.roborock_s7_maxv
attribute: fan_speed
value_not: max_plus
tooltip: Change fan speed
tap_action:
action: call-service
service: vacuum.set_fan_speed
service_data:
entity_id: vacuum.roborock_s7_maxv
fan_speed: 'off'
- type: menu
menu_id: water_box_mode
icon_id: water_box_mode
available_values_attribute: options
icon: mdi:water
icon_mapping:
'off': mdi:water-remove
mild: mdi:water-minus
moderate: mdi:water
intense: mdi:water-plus
custom: mdi:water-sync
tap_action:
action: call-service
service: select.select_option
service_data:
option: '[[value]]'
entity_id: '[[entity_id]]'
entity: select.roborock_s7_maxv_mop_intensity
- type: menu
menu_id: mop_mode
icon_id: mop_mode
available_values_attribute: options
icon: mdi:water
icon_mapping:
standard: mdi:standard-definition
deep: mdi:high-definition
deep_plus: mdi:ultra-high-definition
custom: mdi:fit-to-screen-outline
tap_action:
action: call-service
service: select.select_option
service_data:
option: '[[value]]'
entity_id: '[[entity_id]]'
entity: select.roborock_s7_maxv_mop_mode
tiles:
- tile_id: status
entity: vacuum.roborock_s7_maxv
label: Status
attribute: status
icon: mdi:robot-vacuum
translations:
starting: Starting
charger disconnected: Charger disconnected
idle: Idle
remote control active: Remote control active
cleaning: Cleaning
returning home: Returning home
manual mode: Manual mode
charging: Charging
charging problem: Charging problem
paused: Paused
spot cleaning: Spot cleaning
error: Error
shutting down: Shutting down
updating: Updating
docking: Docking
going to target: Going to target
zoned cleaning: Zoned cleaning
segment cleaning: Segment cleaning
emptying the bin: Emptying the bin
charging complete: Charging complete
device offline: Device offline
- tile_id: battery_level
entity: vacuum.roborock_s7_maxv
label: Battery
attribute: battery_level
icon_source: vacuum.roborock_s7_maxv.attributes.battery_icon
unit: '%'
- tile_id: fan_speed
entity: vacuum.roborock_s7_maxv
label: Fan speed
attribute: fan_speed
icon: mdi:fan
translations:
silent: Silent
standard: Standard
medium: Medium
turbo: Turbo
auto: Auto
gentle: Gentle
- tile_id: sensor_dirty_left
label: Sensors left
unit: h
multiplier: 0.0002777777777777778
hold_action:
action: call-service
service: vacuum.send_command
confirmation: {}
service_data:
command: reset_consumable
params: sensor_dirty_time
entity_id: vacuum.roborock_s7_maxv
entity: sensor.roborock_s7_maxv_sensor_dirty_left
icon: mdi:eye-outline
precision: 0
translations: {}
- tile_id: filter_left
label: Filter left
unit: h
multiplier: 0.0002777777777777778
hold_action:
action: call-service
service: vacuum.send_command
confirmation: {}
service_data:
command: reset_consumable
params: filter_work_time
entity_id: vacuum.roborock_s7_maxv
entity: sensor.roborock_s7_maxv_filter_left
icon: mdi:air-filter
precision: 0
translations: {}
- tile_id: main_brush_left
label: Main brush left
unit: h
multiplier: 0.0002777777777777778
hold_action:
action: call-service
service: vacuum.send_command
confirmation: {}
service_data:
command: reset_consumable
params: main_brush_work_time
entity_id: vacuum.roborock_s7_maxv
entity: sensor.roborock_s7_maxv_main_brush_left
icon: mdi:brush
precision: 0
translations: {}
- tile_id: side_brush_left
label: Side brush left
unit: h
multiplier: 0.0002777777777777778
hold_action:
action: call-service
service: vacuum.send_command
confirmation: {}
service_data:
command: reset_consumable
params: side_brush_work_time
entity_id: vacuum.roborock_s7_maxv
entity: sensor.roborock_s7_maxv_side_brush_left
icon: mdi:brush
precision: 0
translations: {}
- tile_id: cleaning_count
label: Cleaning count
entity: sensor.roborock_s7_maxv_total_clean_count
icon: mdi:counter
precision: 0
translations: {} It should be also ok to remove tiles and icons from config |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@PiotrMachowski Looks like I was wrong. The config you provided did fix room cleaning for when you only select one room. If you select more than 1, it cleans the whole floor like the original issue. |
Ya that one. It's strange, it just seems to be inconsistent. The vacuum will respond with different things based on what I tell it to do. Sometimes it does the selective cleaning, with ether 1 or multiple rooms, and sometimes it just starts cleaning the entire floor. |
O.o |
Checklist
The problem
I've noticed that when I select rooms through the card to clean, the vacuum will instead clean the entire floor. Before humbertogontijo/homeassistant-roborock was officially supported in the card, I was able to get everything working in the card through the setup in this issue.
What version of a card has described problem?
2.2.2
What was the last working version card?
not sure
What vacuum model do you have problems with?
Roborock S7
Which integration do you use to control your vacuum (link)?
https://github.com/humbertogontijo/homeassistant-roborock
What browser (browsers/apps) does have this problem?
all
What version of Home Assistant do you use?
2023.8.2
What type of installation are you running?
Home Assistant Container
Card's configuration
Javascript errors shown in the browser's console (if applicable)
Additional information
none
The text was updated successfully, but these errors were encountered: