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

[Bug]: <Template Card tap-action: more-info> #1418

Open
3 tasks done
1iverea9er opened this issue May 5, 2024 · 2 comments
Open
3 tasks done

[Bug]: <Template Card tap-action: more-info> #1418

1iverea9er opened this issue May 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@1iverea9er
Copy link

Requirements

  • I checked the troubleshooting section in the README to verify that I have the latest Mushroom version.
  • I did a search to see if there is a similar issue or if a pull request is open.
  • I have read the state of card mod support (in pin issues) and understand card mod support is not provided in this repository.

Current Behavior

I'm trying to set up tap_action for more-info in Template Card. But it not work with error:
"no object is specified for the dialogue box with additional information"

Expected Behavior

I expect a window to be displayed with more information about the entity

Steps To Reproduce

No response

Context

YAML state

                - type: custom:mushroom-template-card
                  entity_id: sensor.ac_lr_mode_shedule
                  primary: "{{states('sensor.ac_lr_mode_shedule') }}"
                  secondary: "AC LR Mode Shedule"
                  multiline_secondary: true
                  tap_action:
                        action: more-info

Environment

- Browser: Chrome
- HA Version: 2025.5.1
- Mushroom: 3.5.4

Anything else?

I traying other YAML state

                - type: custom:mushroom-template-card
                  primary: "{{states('sensor.ac_lr_mode_shedule') }}"
                  secondary: "AC LR Mode Shedule"
                  multiline_secondary: true
                  tap_action:
                        action: more-info
                        entity: sensor.ac_lr_mode_shedule
@1iverea9er 1iverea9er added the bug Something isn't working label May 5, 2024
@callumgare
Copy link

callumgare commented May 20, 2024

Try:

                - type: custom:mushroom-template-card
                  entity: sensor.ac_lr_mode_shedule # Note entity instead of entity_id
                  primary: "{{states('sensor.ac_lr_mode_shedule') }}"
                  secondary: "AC LR Mode Shedule"
                  multiline_secondary: true
                  tap_action:
                        action: more-info

Hopefully that gets it working for you. It's still quite confusing tho and I think the visual editor for the template card should be updated to include an entity field so you can use the visual editor to work out the correct template.

@1iverea9er
Copy link
Author

@callumgare , Thanks, It's work !

But therefore doc's incorrect:

  1. There's no mention of an entity in the options list
  2. There is an abstract entity_id that is not clear what it refers to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants