markusressel/openhasp-config-manager

Variables doesn't work in btnmatrix

Closed this issue · 2 comments

Variables does not expand to the value in global.vars.yaml if used in a btnmatrix.
e.g.:

{"page":1,"id":2,"obj":"btnmatrix","options":["{{ stuestates.s0 }}","{{ stuestates.s1 }}","{{ stuestates.s3 }}", ...

This is probably caused by the fact that the value is a list and you are using templates within list items.
I have not implemented this usecase yet, but its a good feature to have.

Should work now, please give it a try 🤓