Hello, I would like to create an automation that only works with Input boolean on.
when i’m on vacation i want the shutters to go up later.
I leave the condition out, everything works.
with condition, nothing works. how so? according to the manual, I actually did everything right.
input_boolean:
vacation_mode:
name: Urlaub
initial: on
automation :
- id: '15142'
trigger:
platform: time
at: "10:00:00"
condition:
condition: state
entity_id: input_boolean.vacation_mode
state: "on"
action:
- service: cover.open_cover
target:
entity_id: cover.living_room
Does somebody has any idea? thank you in advance
Line up the first condition line with trigger
1 Like
cascano42
(Cascano42)
June 15, 2021, 4:40pm
3
if you have a recent version of HA you can show the trace of the automation.
there will be more information to help help you there
edit: but I think duceduc is right ^.^
1 Like
@duceduc
I’m not really getting any further right now, can you give me a tip as you mean that? I’ve been hanging on the conditioner for hours and my head is smoking
@cascano42
Thank you very much, that would be cool to debug. check it out when I’m at home
123
(Taras)
June 15, 2021, 5:01pm
5
They mean exactly what they said: line up the the first condition line with trigger .
automation :
- id: '15142'
trigger:
platform: time
at: "10:00:00"
condition:
condition: state
entity_id: input_boolean.vacation_mode
state: "on"
action:
- service: cover.open_cover
target:
entity_id: cover.living_room
For more information, refer to the example in the documentation:
YAML Example
2 Likes
You may also want to remove line
initial: on
from your input Boolean block code. A restart of HA will turn it on.
1 Like
damn, two stupid spaces were really to blame. now I feel a bit stupid, but I’ve learned something anyway, the mistake won’t happen to me again
and thanks for the hint. I only set it to “on” for testing. so that I don’t forget to turn it on when restarting and test myself even more stupid
Thank everyone. a great forum with great users
myle
(StePhan McKillen (Other kiwi Here))
June 15, 2021, 8:14pm
8
welcome to yaml bro
good news you wont be the last one to do it LOL