I want to use an AND condition in a entity_picture template but this returns an error. Am I missing some quotes or similar?
entity_picture_template: >-
{% if states.sensor.washing_machine_power.state | float >= 1 %} and {% if is state("sun.sun", "above_horizon") %}
/local/washing-machine_on.png