sup all
quick question
how would a script look, if it needs to randomly choose a wled preset when it turns on?
i have preconfigured some presets that are my favorites, and i want a script to randomly choose between them when it turns on.
cheers
sup all
quick question
how would a script look, if it needs to randomly choose a wled preset when it turns on?
i have preconfigured some presets that are my favorites, and i want a script to randomly choose between them when it turns on.
cheers
figured it out, ill just leave it here in case anyone else needs it. just change to the name of your entity
service: select.select_option
data:
option: "{{ state_attr('select.matrix_preset','options') | random }}"
target:
entity_id: select.matrix_preset