panhans / HomeAssistant

Home Asisstant related stuff like blueprints for automations and scripts.
90 stars 25 forks source link

Different tap_action and / or hold_action for each entity within the "rooms template" #56

Open hAMMERlized opened 8 months ago

hAMMERlized commented 8 months ago

Hi,

first of all, thanks for sharing your dashboard. I'm using and loving it. I am wondering if it is possible to have for each entity (e.g. light entity, climate entity etc.) a seperate tap_action or hold_action.

Only thing i have found is to use the "data:" attribute within the tap_action / hold_action, like this:

tap_action:
  action: call-service
  service: light.toggle
  data:
    entity_id: light.some_light
hold_action:
  action: call-service
  service: light.toggle
  data:
    entity_id: light.some_other_light

With this i am only able to use the tap_action for the whole template and all entity, not seperate. Hope you know what i mean. Thanks

panhans commented 6 months ago

Hi thanks for your feedback. I am very busy with my blueprints. I think I don't have time to maintain the rounded templates anymore. I know what you mean. but this needs a complete rewrite of this cards, since you wish is only possible if the button card hols multiple buttons. Atm, it's not the case. Maybe it's easy to add some buttons in the room cards. But as I said: I am busy right now. Sorry