Vacuum.goto in automation does not accept coordinates

Dear Forum,

Iam a little bit afraid that the answer to this question is as trivial as to that one of mine: Vacuum.starrt Service in a button card is not working
Still:

I am trying to compose an automation that sends the vacuum every other weekday at 13:30h to the bin, so that we can easily empty its container and send it back to the dock. This is what I have so far:

  - at: '13:39'
    platform: time
  condition:   
    condition: time
    weekday:
    - mon
    - wed
    - thu
    - fri
  action:
  - data: {}
    entity_id: vacuum.xiaomi_vacuum_cleaner
    x_coord: 21068
    y_coord: 27343    
    service: xiaomi_miio.vacuum_goto
  mode: single

But when I tell HA to check the config before restarting, I get this error message:

Invalid config for [automation]: [x_coord] is an invalid option for [automation]. Check: automation->action->0->x_coord. (See /config/configuration.yaml, line 103).

If I try to apply the priciples from here: https://www.home-assistant.io/integrations/xiaomi_miio/
It also does not work. I am confused :confounded:

The data needs to be indented. Try this:

  action:
  - data:
      entity_id: vacuum.xiaomi_vacuum_cleaner
      x_coord: 21068
      y_coord: 27343    
    service: xiaomi_miio.vacuum_goto

The {} after data in your pasted code means there is no data (because it wasn’t indented properly).

1 Like

and again: Thanks! now it gives no errors any more.

1 Like