Cant seem to get a call to script to work

type: custom:vacuum-card
entity: vacuum.robovac
image: default
stats:
  default:
    - attribute: cleaning_area
      unit: sq meters
      subtitle: Cleaning Area
    - attribute: cleaning_time
      value_template: "{{ (value | float(0) / 60) | round(1) }}"
      unit: minutes
      subtitle: Cleaning time
    - attribute: boost_iq
      subtitle: Boost IQ
      value_template: "{% if (value == true) %}On{% else %}Off{% endif %}"
    - attribute: auto_return
      subtitle: Auto Ret
      value_template: "{% if (value == true) %}On{% else %}Off{% endif %}"
    - attribute: do_not_disturb
      subtitle: Dnd
      value_template: "{% if (value == true) %}On{% else %}Off{% endif %}"
shortcuts:
  - name: Dock
    action: script.x8_dock
    icon: mdi:home-map-marker
  - name: Auto Clean
    action: script.x8_autoclean
    icon: mdi:caps-lock
  - name: Boost IQ
    action: script.x8_boostiq
    icon: mdi:bootstrap
  - name: Auto Return
    action: script.x8_autoreturn
    icon: mdi:arrow-u-down-left-bold
  - name: Do Not Disturb
    action: script.x8_donotdisturb
    icon: mdi:volume-off

the problem I am having is I cant seem to get the “shortcuts:” section to call the scripts

can anyone tell me what I am missing please

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

sorry how does that help me

If that’s this card, the documentation is still using service: as opposed to the new action:. Perhaps that’s it?

I have already replaced with action does not seem to make a difference

It helps us. Your script is much harder to read and may contain errors. Should look like this:

type: custom:vacuum-card
entity: vacuum.robovac
...

So it doesn’t work with service: either?

1 Like

thought i had done that

have corrected this post my problem still needs resolving

1 Like

no it does not appear to

sorry I have just tested that again and I think that does work (I had other issues to start with)

will test more and close if that is the issue

sorry why have you deleted

Yes putting back to service appears to now be working!!!