Alerts & automations
How to be warned when your Tesla’s windows are open and rain is coming
A built-in rule compares the car’s windows with the forecast for its parking spot. One more step turns the warning into the car closing its own windows.

You vent the windows on a hot afternoon, go indoors, and the sky turns. The car knows its windows are open, and a weather service knows rain is on the way, but nothing puts the two together until the seats are wet.
WattLoft does. It knows which windows are open and what the weather is about to do where the car is parked, and it tells you while there is still time to do something.
You need a WattLoft account with a car connected (connecting your Tesla). The warning needs nothing more. Having the car close its own windows is a command, so that part needs the virtual key.
What the rule watches
The rule is called Windows open and rain coming. It fires when any window is open and either it is raining at the car, or rain is expected there within the hour. The message says when:
“A window is open and rain is coming — expected in about 35 min (around 17:00).”
The forecast is for the car, not for you. WattLoft looks up the weather once an hour for each parked car, at the car’s position rounded to about a kilometre. A car that is driving is left alone, and one that has just parked gets its weather within the hour.
Like every rule, it is evaluated on WattLoft’s server, so it fires with every app closed, and it fires once when the situation arises rather than on every reading.
Check that it is on
- Open Settings → Notifications and find Windows open and rain coming. It is part of the Essential plan, so on a new account it is already on.
- On the Delivery card, choose Push or Both, and allow notifications for WattLoft in your browser or in iOS or macOS Settings.
- Press Send a test to see how an alert arrives on your devices.
If you would rather read about it later than be interrupted, leave delivery alone: the event still lands in the Alerts tab. The rest of the rules are covered in how to set up Tesla alerts that are worth getting.
See the forecast the rule uses
The dashboard has a Weather at the car card for a parked car: the temperature, how sunny it is, rain now, in so many minutes or none in the next 24 hours, and sunrise and sunset.
The same numbers exist as fields, which is what makes them usable in rules, automations and graphs.
| Field | Meaning |
|---|---|
Raining | It is raining at the car now |
RainSoon | Rain is expected within the hour |
RainInMinutes | Minutes until rain: 0 while it rains, 1440 when none is expected within 24 hours |
RainStartsAt | The local time the rain starts |
RainChance | The highest chance of rain in the next three hours |
Have the car close its own windows
A warning is only useful if you can act on it. If you are in a meeting or asleep, let an automation do it.
- Open the Automations tab and press New automation. Name it something like “Close windows before rain”.
- Under When, choose Something happens, then Windows open and rain coming.
- Under Then do, add Vent / close windows and set it to close.
- Add a second action, Send a notification, with the text
{car}: windows closed — rain in {rain} at {rainat}. - Set the Cooldown to 30 minutes and save.
When the rule fires, the engine wakes the car if it is asleep, sends the command, and then tells you what it did. The run is recorded in Alerts, and a failed run is always reported with Tesla’s reason, so you are never left assuming the windows closed when they did not.
The builder itself, with its triggers, conditions and safeguards, is explained in how to build your first Tesla automation.
Variations worth knowing
Only away from home. If the car lives in a garage, add a condition under Only if: the car is away from your saved place Home. The automation then leaves the windows alone indoors.
Use the forecast as a condition. RainSoon works in any automation. One that vents the windows when the cabin gets hot can carry the condition RainSoon is off, so it never opens them into a shower. What a hot cabin costs the battery otherwise is in Tesla Cabin Overheat Protection.
Put the rain in other messages. The placeholders {rain} (minutes until rain), {rainat} (the time it starts), {raintoday} and {rainchance} work in any notification text.
What to expect from it
It is a forecast, refreshed hourly, for an area about a kilometre across. A sudden local shower can beat it, and a forecast band of rain can miss you. Treat the rule as a good early warning rather than a guarantee, and keep the automation’s notification on so you know when it acted.
The rule and the recipe are both in the manual, under Notifications & alerts and Automations.
Frequently asked questions
How does WattLoft know rain is coming?
It looks up the weather once an hour for each parked car, at the car’s position rounded to about a kilometre. The rule fires when a window is open and it is raining there, or rain is expected within the hour.
Can WattLoft close my Tesla’s windows automatically?
Yes. An automation triggered by the Windows open and rain coming rule can send the Vent / close windows command set to close, then notify you. Commands need the car’s virtual key.
Does the rain warning wake the car?
No. The warning is worked out on the server from the window state the car last reported and the forecast. Closing the windows is a command, and the car is woken for that.
Do I have to enter my location for the weather?
No. The forecast is for where the car is parked, taken from the car’s own position.