Entity_id is an invalid id for

alias: test rack
  - service: homeassistant.turn_on
      entity_id: >
        {% if is_state('input_boolean.rack_mode_recirculate', 'off') and
        is_state('input_boolean.rack_mode_vent', 'off') and
        is_state('input_boolean.rack_mode_acrecirculate', 'off') and
        is_state('input_boolean.rack_mode_acvent', 'off') %}
        {% else %}             {% endif %}
mode: single

getting an error for entity id is invalid entity id

Please paste code, not images. Too hard to help with an image.

1 Like

Do you have any idea how to fix this?

I think the problem was when there was no action from the if statement.