Running all steps of a script even if one fails

Ah I see that now. Sadly, still errors :sob:

Message malformed: invalid template (TemplateSyntaxError: unexpected '}', expected ')') for dictionary value @ data['sequence'][0]['repeat']['sequence'][0]['if'][0]['value_template']

There is an obvious missing ) after 'on'.

Also the if can be shortened to have the template immediately following on the same line, but if using the visual editor it will butcher any shorthands and expand them back out to the long version…

- if: "{{ is_state(repeat.item, 'on') }}"
1 Like

Ahh! Looks like we are in business :slight_smile: :slight_smile:

Thank you everybody for the collective assistance :smiley:

1 Like

That was my fault. Typing this stuff on a phone is no fun. Forgot to include the closing parenthesis.

I’ll fix the original example

2 Likes

Of course!!

@acdown87

I noticed you marked my post with the Solution tag. I appreciate the gesture but my post doesn’t deserve it.

Hellis81 was far more involved in helping you; all I did was fix one tiny part of his example.