41 lines
6.6 KiB
JSON
41 lines
6.6 KiB
JSON
[
|
|
{
|
|
"id": "Laden - Load balancing",
|
|
"result": {
|
|
"structured": "TRIGGER: Every 30 seconds. CONDITIONS: laadpaal [sensor.laadpaal] is in state Charging Normal. ACTIONS: IF max stroom op fase [sensor.max_stroom_op_fase] is above 23, THEN set laadpaal max station current [number.laadpaal_max_station_current] to its current value minus 2. OTHERWISE, IF max stroom op fase [sensor.max_stroom_op_fase] is below 20 AND laadpaal max station current [number.laadpaal_max_station_current] is not 16, THEN set laadpaal max station current [number.laadpaal_max_station_current] to its current value plus 1.",
|
|
"natural_language": {
|
|
"trigger": "The automation runs every 30 seconds.",
|
|
"conditions": "The automation only runs if the laadpaal [sensor.laadpaal] is in the 'Charging Normal' state.",
|
|
"action": "If the max stroom op fase [sensor.max_stroom_op_fase] is above 23, the charging rate is reduced by decreasing the laadpaal max station current [number.laadpaal_max_station_current] by 2 amps. Otherwise, if the max stroom op fase [sensor.max_stroom_op_fase] is below 20 and the laadpaal max station current [number.laadpaal_max_station_current] is not already at its maximum of 16 amps, the charging rate is increased by raising the laadpaal max station current [number.laadpaal_max_station_current] by 1 amp."
|
|
},
|
|
"human_like": "Dynamically adjusts the electric vehicle charging rate every 30 seconds to prevent overloading the home's electrical system.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Laden - Periodieke controle",
|
|
"result": {
|
|
"structured": "TRIGGER: At the start of every hour (when minutes equal 0). CONDITIONS: laadpaal [sensor.laadpaal] is in state 'Charging Normal' OR 'Wait Vehicle Charging' OR 'Load Balancing Forced Off'. ACTIONS: If the current hour is listed in the JSON data stored in goedkope laadtijden [input_text.goedkopelaadtijden], then set laadpaal max station current [number.laadpaal_max_station_current] to 16 AND send a notification 'Auto laden' with message 'De auto gaat nu laden omdat dit uur goedkoop is.' to mobile app iphone [notify.mobile_app_iphone]. Otherwise, set laadpaal max station current [number.laadpaal_max_station_current] to 0.",
|
|
"natural_language": {
|
|
"trigger": "The automation runs at the beginning of every hour, precisely when the clock shows 0 minutes.",
|
|
"conditions": "It only proceeds if the laadpaal [sensor.laadpaal] is currently in one of these states: 'Charging Normal', 'Wait Vehicle Charging', or 'Load Balancing Forced Off'.",
|
|
"action": "The automation checks if the current hour is marked as a cheap charging hour in the schedule stored in goedkope laadtijden [input_text.goedkopelaadtijden]. If it is, it enables charging by setting the laadpaal max station current [number.laadpaal_max_station_current] to 16 and sends a notification to the mobile app iphone [notify.mobile_app_iphone] to inform the user. If the current hour is not a cheap hour, it stops charging by setting the current limit to 0."
|
|
},
|
|
"human_like": "This automation manages electric vehicle charging by enabling it only during pre-defined cheap electricity hours, and sends a notification when charging starts.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Laden - Start bepalen",
|
|
"result": {
|
|
"structured": "TRIGGER: When laadpaal [sensor.laadpaal] changes state from 'Available' to any other state. CONDITIONS: None. ACTIONS: 1. Create variables action_fast, action_work, action_cheap. 2. Send a notification to mobile app iphone [notify.mobile_app_iphone] asking how to charge the car with three options: 'Zo snel mogelijk', 'Voor 6 uur', 'Binnen 24 uur'. 3. Wait up to 5 minutes for a notification response with action matching action_fast, action_work, or action_cheap. 4. Based on the received action: IF action is 'WORK', set laden klaar [input_number.laden_klaar] to 6. IF action is 'CHEAP', set laden klaar [input_number.laden_klaar] to the current hour. IF action is 'FAST', set laden klaar [input_number.laden_klaar] to -1. 5. Wait 1 second. 6. Calculate variables: autocapacity (60), chargercapacity (11), kwhladen (based on tesla battery level [sensor.tesla_battery_level]), tijdladen, tijdladenafgerond (rounded up hours needed to charge). 7. Create sorted lists of cheapest electricity price hours from nordpool kwh nl eur [sensor.nordpool_kwh_nl_eur_2_11_031] for today and tomorrow, based on the chosen charging mode and required hours. 8. Store the cheapest hours list in goedkope laadtijden [input_text.goedkopelaadtijden]. 9. Wait 2 seconds. 10. IF the current hour is in the cheapest hours list: Set laadpaal max station current [number.laadpaal_max_station_current] to 16 AND send a notification that charging starts now. OTHERWISE: Set laadpaal max station current [number.laadpaal_max_station_current] to 0 AND send a notification that charging waits for a cheap hour.",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers when the charging station sensor laadpaal [sensor.laadpaal] changes from the 'Available' state to any other state, indicating the charging cable has been connected.",
|
|
"conditions": "There are no conditions that must be met for the automation to proceed after the trigger.",
|
|
"action": "First, the automation creates variables for three charging options. It then sends a notification to the user's iPhone [notify.mobile_app_iphone], asking how they want to charge the car: as fast as possible, to be finished by 6 AM, or within 24 hours. It waits for a response for up to 5 minutes. Based on the user's choice, it sets a target finish time in the helper laden klaar [input_number.laden_klaar]. After a brief delay, it calculates how many hours of charging are needed based on the car's current battery level from tesla battery level [sensor.tesla_battery_level]. It then fetches electricity price data from nordpool kwh nl eur [sensor.nordpool_kwh_nl_eur_2_11_031] and creates a sorted list of the cheapest hours to charge within the user's specified timeframe. This list is saved in the helper goedkope laadtijden [input_text.goedkopelaadtijden]. Finally, it checks if the current hour is among the cheapest hours. If it is, it starts charging by setting laadpaal max station current [number.laadpaal_max_station_current] to 16 and notifies the user. If not, it sets the charging current to 0 to pause charging and notifies the user that it will wait for a cheaper time."
|
|
},
|
|
"human_like": "When you plug in your electric car, this automation asks how you'd like to charge it and then schedules the charging to happen during the cheapest electricity hours based on your choice.",
|
|
"complexity": "high"
|
|
}
|
|
}
|
|
] |