-
-
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
undefined is not an object (evaluating 'i.id.toString')
when using template: vacuum_goto_predefined
#724
Comments
The Valetudo RE manual is equally confusing: there's |
Use the following config: - template: vacuum_goto_predefined
selection_type: PREDEFINED_POINT
predefined_selections:
- id: 1
position:
- 2638
- 2533
icon:
name: mdi:delete-empty
x: 2638
'y': 2533
label:
text: Emptying
x: 2638
'y': 2533
offset_y: 35 |
Still no go. The service call now is:
Comparing it to a "Pin & Go" call, the only difference is that the coordinates are sent as strings vs integers in the latter. |
Edit: Sorry, below comment seems duplicate of #662, see #662 (comment). I can confirm a similar issue with Error:
In the HA logs (when I add
|
Checklist
The problem
I am configuring a Valetudo Map Card and everything seems to work fine, including the imported segments. However, when adding a Predefined Goto, using the example from the manual, I am getting a
undefined is not an object (evaluating 'i.id.toString')
error.This is because of a missing
id
attribute, which the manual does not actually mention. However, after adding said attribute, I am getting no reaction from the robot itself. Again, the predefined rooms work just fine.Relevant config piece:
The service call for the Goto location defined as above is:
As you can notice, the coordinates are empty. I am not sure if this is related to the
id
thing or is a different issue altogether. Also note that while I am passing the- position: [ 28006, 28036 ]
in YAML editor, its format gets changed to what you see above upon saving.What version of a card has described problem?
v2.2.2
What was the last working version card?
No response
What vacuum model do you have problems with?
roborock.s5
Which integration do you use to control your vacuum (link)?
https://www.home-assistant.io/integrations/mqtt/
What browser (browsers/apps) does have this problem?
Safari
What version of Home Assistant do you use?
2024.3.3
What type of installation are you running?
Home Assistant OS
Card's configuration
Javascript errors shown in the browser's console (if applicable)
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: