Message malformed: expected float for dictionary
value @ data['action'][0]['if'][0]['above']
i don’t understand what i’m doing wrong. is there a way to make this work? or do i have to use 2 input numbers, one for the upper limit and one for the lower limit?
Template Editor
You assumed that the Template Editor is able to test YAML and Jinja but in fact it only tests Jinja. Any YAML is simply treated as literal strings and is not tested for valid syntax or functionality. Even if you don’t include any YAML in the Template Editor, the Jinja template you test is subject to YAML rules wherever you copy-paste it.
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.