custom-cards / button-card

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

Add support for array-result in triggers_update #823

Open psi-4ward opened 10 months ago

psi-4ward commented 10 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