@pawael wrote:
Hello everybody,
I have a question for a simple automation. I used google to solve the problem on my own but I failed to create the automation correctly.
I want to close my window cover when the sun goes down. Thats clear and working. Now I want to add a button which cancels the process so that the covers stay open. For this scenario I created a button (on or off). The automation should do the following:
If the sun goes down and the cancel button is on, set the cancel button to off and do nothing else. If the cancel button is off close the cover. I want to use this for my garden door. I want to prevent to close the cover when I’m outside. I hope you understand, what I mean. The problem is that I don’t understand the yaml coding. Is there a good manual (except the manual from Home assistant) to read so I can learn this? This is my code. Sorry in advance for the completely wrong code but I don’t know better:alias: Arbeitszimmer rollo schließen trigger: event: sunset platform: sun action: # data_template: entity_id: > {% if is_state(input_boolean.rollo_az_aussetzen","on") %} entity_id: input_boolean.rollo_az_aussetzen service: input_boolean.turn_off {% else %} - service: cover.close_cover cover.shelly_shsw_25_e62887 # Rollo Arbeitszimmer {% endif %}
Posts: 1
Participants: 1