41 lines
4.7 KiB
JSON
41 lines
4.7 KiB
JSON
[
|
|
{
|
|
"id": "Poll Smartcar",
|
|
"result": {
|
|
"structured": "TRIGGER: At 4:00 PM (16:00) daily OR When Akio Toyoda [person.akio_toyoda] arrives at home and remains for 10 minutes OR Every hour (on the hour). CONDITIONS: A template condition that evaluates to true based on the trigger's 'condition_precheck' variable: If the variable is 'is_daytime', the condition is true only if the current hour is between 9 AM and 9 PM (inclusive of 9, exclusive of 21). If the variable is 'not_home', the condition is true only if Akio Toyoda [person.akio_toyoda] is not at home. For any other trigger (e.g., the 4 PM trigger), the condition is true. ACTIONS: If the trigger was 'update_battery', then update the entities Volkswagen ID 4 battery [sensor.volkswagen_id_4_battery] and Volkswagen ID 4 range [sensor.volkswagen_id_4_range]. If the trigger was 'update_all', then update a comprehensive list of 15 vehicle entities including battery, range, location, lock status, charging status, tire pressures, and others.",
|
|
"natural_language": {
|
|
"trigger": "This automation is triggered in three ways: first, every day at 4:00 PM; second, when Akio Toyoda [person.akio_toyoda] arrives home and stays there for 10 minutes; and third, once every hour on the hour.",
|
|
"conditions": "A single condition checks a variable passed by the trigger. If the trigger is the 'arriving home' trigger, it checks if the current time is between 9 AM and 9 PM. If the trigger is the 'hourly' trigger, it checks if Akio Toyoda [person.akio_toyoda] is not at home. For the daily 4 PM trigger, the condition always passes.",
|
|
"action": "Depending on which trigger fired, different sets of vehicle data are updated. If triggered by the arrival home or hourly triggers, only the battery and range sensors are updated. If triggered at 4 PM daily, a full suite of vehicle data is updated, including battery, range, location, lock status, charging information, tire pressures, and more."
|
|
},
|
|
"human_like": "Updates the car's data: battery and range when arriving home during the day or when away, and performs a full data refresh every day at 4 PM.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Poll Smartcar",
|
|
"result": {
|
|
"structured": "TRIGGER: When the time pattern matches every 4 hours (hours: /4) OR when the time pattern matches every 15 minutes (minutes: /15). CONDITIONS: The current time is between 09:00:00 and 21:00:00 AND ( (the trigger variable 'update_if' equals 'charging' AND Volkswagen ID 4 charging status [sensor.volkswagen_id_4_charging_status] is 'CHARGING') OR (the trigger variable 'update_if' equals 'idle' AND Volkswagen ID 4 charging status [sensor.volkswagen_id_4_charging_status] is NOT 'CHARGING') ). ACTIONS: Update the entities specified by the trigger variable 'update_entities'.",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers every four hours on the hour, or every fifteen minutes past the hour.",
|
|
"conditions": "The automation only runs if the current time is between 9 AM and 9 PM. Additionally, it checks the car's charging status. If the trigger was set for a 'charging' update, the Volkswagen ID 4 charging status [sensor.volkswagen_id_4_charging_status] must be 'CHARGING'. If the trigger was set for an 'idle' update, the charging status must not be 'CHARGING'.",
|
|
"action": "The automation refreshes (updates) a specific set of car-related entities. The set of entities to update depends on which trigger fired: the four-hour trigger updates a comprehensive list of 15 entities, while the fifteen-minute trigger updates a smaller list of 6 entities focused on charging."
|
|
},
|
|
"human_like": "This automation periodically fetches data from the Volkswagen ID.4 car, updating a full set of information every four hours when the car is idle, and a focused set of charging data every fifteen minutes while the car is charging, but only during daytime hours.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Poll Smartcar",
|
|
"result": {
|
|
"structured": "TRIGGER: Every hour (time pattern). CONDITIONS: Time is between 09:00:00 AND 21:00:00. ACTIONS: Update entity Volkswagen ID 4 battery [sensor.volkswagen_id_4_battery] AND update entity Volkswagen ID 4 range [sensor.volkswagen_id_4_range].",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers every hour.",
|
|
"conditions": "The current time must be between 9:00 AM and 9:00 PM.",
|
|
"action": "It refreshes the data for the Volkswagen ID 4 battery [sensor.volkswagen_id_4_battery] and Volkswagen ID 4 range [sensor.volkswagen_id_4_range] sensors."
|
|
},
|
|
"human_like": "Updates the car's battery and range information every hour during the daytime.",
|
|
"complexity": "low"
|
|
}
|
|
}
|
|
] |