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

Creating bubble card without entities #262

Closed
joaopedros2 opened this issue Dec 26, 2023 · 3 comments
Closed

Creating bubble card without entities #262

joaopedros2 opened this issue Dec 26, 2023 · 3 comments

Comments

@joaopedros2
Copy link

joaopedros2 commented Dec 26, 2023

From what I've tested, I didn't see an option to create a bubble card without relying on an entity.
My goal was to have a button that simply calls a service when pressed.
In Mushroom Cards, there's an option for templates for these cases.

type: custom:mushroom-chips-card
alignment: center
chips:
  - type: template
    content: Iniciar
    icon: mdi:power-on
    icon_color: green
    tap_action:
      action: call-service
      service: ffmpeg.start
    hold_action:
      action: none
    double_tap_action:
      action: none
  - type: template
    content: Parar
    icon: mdi:power-off
    icon_color: red
    tap_action:
      action: call-service
      service: ffmpeg.stop
    hold_action:
      action: none
    double_tap_action:
      action: none
  - type: template
    content: Reiniciar
    icon: mdi:restart
    icon_color: yellow
    tap_action:
      action: call-service
      service: ffmpeg.restart
    hold_action:
      action: none
    double_tap_action:
      action: none

It would be very useful to have this feature in this project as well.

@Clooos
Copy link
Owner

Clooos commented Dec 26, 2023

Hi and thanks for your feedback, for now this is not possible but you can call a script with a button.

@joaopedros2
Copy link
Author

Thank you for the response, but I'm still unsure how to do this without defining an entity.

@Clooos
Copy link
Owner

Clooos commented Dec 27, 2023

The script is the entity: script.name

@Clooos Clooos closed this as completed Jan 6, 2024
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

No branches or pull requests

2 participants