custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.83k stars 227 forks source link

Add support for array-result in triggers_update #823

Open psi-4ward opened 5 months ago

psi-4ward commented 5 months ago

Add the ability that a template could return an array of entities.

Ie:

triggers_update: >-
  [[[ 
    const result = [];
    for(let i = 0; i<10; i++) result.push(`lights.light${i}`);
    return result;
  ]]]

https://community.home-assistant.io/t/lovelace-button-card/65981/7129?u=psi