This commit is contained in:
Johannes
2022-08-09 18:30:45 +02:00
parent 68753ba4b2
commit 328cf1d8a0
2 changed files with 12 additions and 1 deletions

View File

@@ -294,7 +294,11 @@ class LuiController(object):
self._ha_api.get_entity(entity_id).call_service("press")
elif entity_id.startswith('input_select'):
self._ha_api.get_entity(entity_id).call_service("select_next")
elif entity_id.startswith('vacuum'):
if self._ha_api.get_entity(entity_id).state == "docked":
self._ha_api.get_entity(entity_id).call_service("start")
else:
self._ha_api.get_entity(entity_id).call_service("return_to_base")
# for media page
if button_type == "media-next":