Hi guys!
I‘m having trouble with an automation.
I’d like to have an automation only on specific weekdays. Setting this up manually is no problem, but I want to get the correct days by sending them to the API.
So there are two questions:
-
Which parameters do I need in the API request since this isn’t a normal date or time but an array of weekdays (formatted as the automation desires it: mon, tue, sat, …)?
-
How can I use the sent days in the automation?
The automation would look like this I guess:
trigger:
- platform: time
at: input_datetime.workday_alarm
condition:
- condition: time
weekday:
- mon
- thu
- sat
But I think I need to temptations this, right?