Invalid config for [automation]: expected dict for dictionary value @ data['action'][0]['repeat']['sequence'][4]['choose'][0]['sequence'][0]['data']. Got None
extra keys not allowed @ data['action'][0]['repeat']['sequence'][4]['choose'][0]['sequence'][0]['message']. Got None. (See /config/configuration.yaml, line 26).
I’m more looking for a general answer on how to combine a “choose” function and “repeat until” function
what you’re doing is fine but your spacing is off. That error message is telling you so. If you look at the message, it’s telling you exactly what’s wrong:
Invalid config for [automation]: expected dict for dictionary value @ data[‘action’][0][‘repeat’][‘sequence’][4][‘choose’][0][‘sequence’][0][‘data’]. Got None
So if you follow your automation, look at the following
inside the action section, at the first service which is repeat, inside its sequence, on its 5th service which is choose, inside it’s sequence, at it’s first service, data is None.
Notice how message is not indented.
Then look at your second error…
extra keys not allowed @ data['action'][0]['repeat']['sequence'][4]['choose'][0]['sequence'][0]['message']. Got None. (See /config/configuration.yaml, line 26).
it states “extra keys not allowed”. Then it has the same sequence as the previous error message but the last item is ‘message’.
It’s saying, message is not allowed.
This is because the indentation is wrong.
- service: notify.notify
data:
message: 'Cant reach one of the TRVs --> Tried 5 times allready'
It’s best if you start trying to understand the error messages. They tell you exactly what’s wrong in most cases.