So I am not using input_boolean, but boolean selector. Using an input_boolean entity would be an overkill for my case, as this is just an input local to my blueprint which I want the blueprint consumer to specify when they create an automation with it.
If you want to use a template, there are a couple things you need to correct.
Entity names in states() need to be passed in as strings. So:
states('input_boolean.your_entity')
Entity values in HA are always strings. So a binary sensor will have a value like 'on' or 'off' which is what you need to compare to. Alternatively, you can use the bool() cast to get a boolean value to compare to.
Sorry, just noticed this was for a blueprint. I actually haven’t made one before, but I think you would want something similar to my previous post, but using the !input YAML tag.
condition: state
entity_id: !input has_nightlight
state: "true"
For more complex conditions, you probably want to set the boolean selector to a variable first: