I am trying to create a condition based on input from an API call to a script.
My script looks like:
plexwebhook:
alias: 'Webhook'
sequence:
- condition: and
conditions:
- condition: template
value_template: >
'{{ Player.title }}' == "Plex Web (Safari)"
# - condition: time
# after: '13:00:00'
- service: notify.notifyall
data_template:
message: >
'Conditions met ---- {{ Player.title }} '
I can’t seem to figure out the proper syntax for the value_template. Can anyone point me in the right direction?