How to use the weather forecast in qtrl.me: rain in the next hours, frost tonight, the coldest hour, and a weather device per place for dashboards and formulas.
qtrl.me fetches the weather forecast for your places from MET Norway, hour by hour about two days ahead: temperature, precipitation, wind, gusts, cloud cover and humidity. You use it as a condition in an automation (Weather forecast and Weather hours), as an event that starts an automation (Weather control at the lowest or highest hour, Weather reaches value when a value is passed) and as a weather device per place for dashboards, formulas and history. You can see the forecast on the weather page.
The place decides the forecast
The forecast is fetched for the automation's place. You manage places under Automations → Places: name, position and time zone. If you have a summer house elsewhere, add it as its own place and pick it in the automations that belong there. Clock windows such as 22:00–06:00 are read in the place's time zone.
The Weather forecast condition
The condition is true for as long as the forecast meets what you specified. You choose:
- What in the forecast: temperature (lowest, highest or average), precipitation (highest per hour or sum), wind (highest or average), gusts (highest), cloud cover or humidity.
- Period: either the next hours, 1–48 hours ahead, or between two times. A clock window means the current window if you are inside it, otherwise the next one: 22:00–06:00 means tonight.
- Comparison and value, for example below 0 or above 0.5.
Conditions that tend to be useful:
- Precipitation (sum) next 3 hours above 0.2 mm: rain is coming.
- Temperature (lowest) 22:00–06:00 below 0 °C: frost tonight.
- Gusts (highest) next 2 hours above 10 m/s: the wind is picking up.
- Cloud cover (average) next 6 hours below 30 %: a sunny morning.
The condition combines with other conditions like everything else in the editor, for example a time window, a sensor or the electricity price.
The Weather control event
The event starts the automation at the hour within a clock window when the forecast is at its lowest or highest, for example the coldest hour of the night or the windiest of the day. You choose the measure and lowest or highest, the clock window, weekdays and an offset in minutes: −60 means an hour before the coldest hour, +30 half an hour after. The event runs once per window. If a new forecast moves the coldest hour, the automation follows, as long as it has not already run for that window.
The Weather hours condition
The condition is true during the N hours of a clock window when the forecast is at its lowest or highest, for example the 5 warmest hours 06:00–22:00 for the heat pump or the 3 calmest hours for a delicate awning. You choose:
- What in the forecast and lowest or highest: temperature, wind, gusts, precipitation, cloud cover or humidity.
- Number of hours, 1–24.
- Minimum contiguous block: 1 h means the hours may lie anywhere in the window; choosing as many as the number of hours gives one single contiguous block. In between, for example 2 h out of 6, the hours may spread but always at least two in a row, right for things that should not switch on and off every hour.
- The window, two times of day; 22:00–06:00 means tonight.
The hours are chosen from the forecast when the window starts and do not change during the window, so a new forecast in the middle of the night does not move them. The next window is chosen afresh. If you start the automation in the middle of a window, the hours are chosen among those that remain.
The Weather reaches value event
The event starts the automation when the forecast value for the current hour starts to meet a condition, for example wind above 5 m/s or temperature below 0 °C. It runs once per transition, just like Electricity price reaches value: when the wind then drops, nothing happens until it crosses the limit again. If you also want to do something when the condition stops holding, use the When the conditions become true mode with the Weather forecast condition instead.
The weather device
Every place can have its own weather device. Turn on Weather device for the place under Automations → Places, and a virtual device named Weather – place name is created. It lives under Virtual devices with the weather badge and is updated from the forecast every five minutes with:
- temperature, humidity, wind and gusts right now
- precipitation next hour and precipitation over the coming 24 hours
- cloud cover
- lowest and highest temperature over the coming 24 hours
The device is read-only; its values always come from the forecast. Put it on your dashboard, use its values in formulas, for example the difference between indoor and outdoor temperature, or follow them in the history. The device does not count towards the virtual device limit. Turning the weather device off, or deleting the place, removes the device.
Example: retract the awning when the wind picks up
- Create a New automation in the When something happens mode.
- Add the Weather reaches value event: wind, above, 5 m/s.
- Under Then: retract the awning.
- Test run and Save.
The awning retracts when the forecast for the current hour goes above 5 m/s. To act well ahead, use the Weather forecast condition gusts (highest), next 2 hours, above 10 in the When the conditions become true mode instead, and leave When the conditions stop being true empty so the awning does not extend again automatically.
Example: frost guard in the greenhouse
Mode When the conditions become true with the Weather forecast condition temperature (lowest), 22:00–06:00, below 0. When the conditions become true: turn on the fan heater. When they stop being true: turn it off. Consider adding the condition that the greenhouse's own sensor reads below 5 °C, so the heater only runs when it is really needed.
Example: irrigation only if it is not going to rain
Mode When something happens with a time of 06:00 and the Weather forecast condition precipitation (sum), next 12 hours, below 1. Under Then: turn on the irrigation, wait 20 minutes, turn it off. If rain is in the forecast, nothing happens that morning.
Example: preheat before the coldest hour
Mode When something happens with the Weather control event: temperature (lowest), 22:00–06:00, offset −60. Under Then: turn on the hallway heater. A second automation with a time of 07:00 turns it off again.
Example: the heat pump during the warmest hours
Mode When the conditions become true with the Weather hours condition: temperature (highest), 5 hours, minimum block 2 h, window 06:00–22:00. When the conditions become true: raise the heat pump's set point. When they stop being true: lower it again. The heat pump then works when it is most efficient, in blocks of at least two hours.
Combine with the electricity price
The weather forecast and the electricity price can sit in the same automation. Cheapest periods together with Weather forecast temperature (lowest) next 6 hours below 5 °C gives preheating that only costs when it is cheap and only when it is going to be cold. More about the price conditions in the guide Controlling by the electricity price.
Good to know
- The forecast comes from MET Norway and is updated about every hour. A forecast is a forecast: add a sensor of your own for anything that has to be right.
- The forecast is hourly for the next two days. Periods beyond that cannot be answered and count as not met.
- Test run shows how the condition evaluates right now, with the value from the forecast.
- Positions are rounded to the nearest hundredth of a degree, about a kilometre.