Having trouble with the following request. If then else works for command: but does not work for the parameters: value which is a list of values []. Any ideas how to make this work.
The squeezebox call works fine with parameters: [“loadtracks”,“album.titlesearch={{states.variable.var_lms_album.state}}”] all in one line but not using the if then else construct.
They will not be the same I just didn’t type it in but for what its worth, the if statement will return:
parameters: [“cmd:load”,“album_id:{{states.sensor.alb_id.state}}”]
or
parameters: [“loadtracks”,“album.titlesearch={{states.variable.var_lms_album.state}}”]
both of these statements work properly as written but using an if then else, results in failure .
Sorry for not having writtent it out completely. Ynot
I think I get it. That was definitely the problem, the result turned out to be a string when a list was expected. The syntax learning curve for this app is pretty steep. Thanks for the pointers. Ynot,