41 lines
3.8 KiB
JSON
41 lines
3.8 KiB
JSON
[
|
|
{
|
|
"id": "Morning Outages Agenda",
|
|
"result": {
|
|
"structured": "TRIGGER: At 05:30:00 daily. CONDITIONS: None. ACTIONS: Retrieve events from yasno power today calendar [calendar.yasno_power_today_kiev_group_2_1] for the current day (starting at 00:00:00) with a duration of 1 day, storing the result in variable 'agenda'. Then, send a notification via family notification [notify.family] with a title containing the current date and a formatted message listing the start and end times of each retrieved event.",
|
|
"natural_language": {
|
|
"trigger": "The automation runs every day at 5:30 AM.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "First, it fetches all scheduled power outage events for the current day from the yasno power today calendar [calendar.yasno_power_today_kiev_group_2_1]. Then, it sends a notification to the family [notify.family] with a title showing today's date and a message listing the start and end times of each outage."
|
|
},
|
|
"human_like": "Sends a daily morning notification with the scheduled power outage times for the current day.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "Tomorrow Outages Agenda",
|
|
"result": {
|
|
"structured": "TRIGGER: When yasno power tomorrow calendar [calendar.yasno_power_tomorrow_kiev_group_2_1] changes state from 'unavailable' to any state except 'unknown'. CONDITIONS: None. ACTIONS: 1. Retrieve calendar events for yasno power tomorrow calendar [calendar.yasno_power_tomorrow_kiev_group_2_1] starting from today at 23:59:59 for a duration of 1 day and store the result in variable 'agenda_tomorrow'. 2. Send a notification to family notification [notify.family] with a title containing tomorrow's date and a message listing the start and end times of the retrieved power outage events.",
|
|
"natural_language": {
|
|
"trigger": "When the yasno power tomorrow calendar [calendar.yasno_power_tomorrow_kiev_group_2_1] updates its status from 'unavailable' to any other state, except for 'unknown'.",
|
|
"conditions": "There are no conditions that must be met for the automation to proceed.",
|
|
"action": "First, it fetches the calendar events for the yasno power tomorrow calendar [calendar.yasno_power_tomorrow_kiev_group_2_1] for the upcoming day, starting from 23:59:59 today. Then, it sends a formatted notification to the family notification [notify.family] service, displaying the title 'Power Outages for tomorrow' with the correct date and a list of the outage time slots for the home."
|
|
},
|
|
"human_like": "Sends a notification to the family with the scheduled power outage times for the next day, whenever the outage calendar is updated.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "Outage Upcoming Event Reminder Home",
|
|
"result": {
|
|
"structured": "TRIGGER: When yasno power today calendar [calendar.yasno_power_today_kiev_group_2_1] has an event starting in 30 minutes. CONDITIONS: None. ACTIONS: Send a notification to family notification [notify.family] with title 'Home Power outage in 30 min.' and message 'Upcoming outage: {{ as_timestamp(trigger.calendar_event.start) | timestamp_custom(''%H:%M'') }}'.",
|
|
"natural_language": {
|
|
"trigger": "When the yasno power today calendar [calendar.yasno_power_today_kiev_group_2_1] has a scheduled event that is about to start in 30 minutes.",
|
|
"conditions": "There are no conditions that must be met for this automation to proceed.",
|
|
"action": "Sends a notification to the family notification [notify.family] service. The notification has the title 'Home Power outage in 30 min.' and a message that states the time of the upcoming outage, formatted as 'Upcoming outage: HH:MM'."
|
|
},
|
|
"human_like": "Sends a reminder to the family 30 minutes before a scheduled power outage at home.",
|
|
"complexity": "low"
|
|
}
|
|
}
|
|
] |