Skip to content
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

Use start and pause instead of toggle as service commands for vacuum #348

Closed
wants to merge 1 commit into from

Conversation

AndersSahlin
Copy link

@AndersSahlin AndersSahlin commented Feb 10, 2024

The vacuum service does not support the toggle command so the Vacuum button click does not do anything.
This error is recorded in the console log:
2.QL3D25OP.js:1 Uncaught (in promise) {code: 'not_found', message: 'Service vacuum.toggle not found.', translation_key: 'service_not_found', translation_placeholders: {…}, translation_domain: 'homeassistant'}

Instead of toggle, this PR proposes to use the start and pause commands, which are supported for vacuums:
https://www.home-assistant.io/integrations/vacuum/

@matt8707 matt8707 closed this in af0457e Feb 10, 2024
@matt8707
Copy link
Owner

Thanks! I added it here instead

ha-fusion/src/lib/Utils.ts

Lines 102 to 104 in af0457e

case 'vacuum':
service = state === 'cleaning' ? 'pause' : 'start';
break;

@AndersSahlin AndersSahlin deleted the patch-1 branch February 10, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants