I’m struggling to get the condition
set up properly in order to check on days of the week for running a blueprint. The following results in an invalid automation when creating from this blueprint:
blueprint:
...
at_time:
name: Time
description: The time to run this action.
selector:
time:
on_monday:
name: Monday
default: true
selector:
boolean:
...
variables:
on_mon: !input 'on_monday'
trigger:
- platform: time
at: !input 'at_time'
condition:
- condition: time
weekday: |
{% if states[on_mon] == true %}
- mon
{% endif %}
...
The specific error is:
Blueprint Daily Action generated invalid automation with inputs OrderedDict([(‘entity_id’, ‘notify.notify’), (‘at_time’, ‘18:00:00’), (‘on_monday’, True)]): value must be one of [‘fri’, ‘mon’, ‘sat’, ‘sun’, ‘thu’, ‘tue’, ‘wed’] @ data[‘condition’][0][‘weekday’][0]. Got None