Then I want to use the “{{ WhatHoliday.value[0] }}”. Just to prove to me it get the value i expect I create a log entry and it too is successful, returning ‘Christmas’.
service: logbook.log
data:
name: “*** Test Function Event ***”
message: “==> The Holiday is {{ WhatHoliday.value[0] }} <==”
NOW my issue. I want to do an IF or CONDITION, that if {{ WhatHoliday.value[0] }} == ‘Christmas’ … Do something. I can not for the life of me get the value_template (or anything else) to ever evaluate correctly. I thought it be as simple as (or some variation of (ive tried many))… I even tried some thing with States but never any luck. Its got to be something simple and stupid that i am missing.
I am having a similar problem and have tried many different formats. I just can’t seem to figure out how to use the IF statement to evaluate the response_variable. Any assistance would be greatly appreciated.
I realize it would be easy to set this up with a simple automation of the state for each garage door, however, I am wanting to understand this process so I can eventually do more actions depending on the number of garage doors and which door is open. I think this is my first step getting there.