📡 Zambretti (zambretti_sager) Integration for Home Assistant — Local Weather Forecast Without Internet

:satellite_antenna: Zambretti (zambretti_sager) Integration for Home Assistant — Local Weather Forecast Without Internet

:magnifying_glass_tilted_right: Introduction

Most Home Assistant weather integrations rely on cloud services like OpenWeather or Met.no. But what if you want a fully автономous system that depends only on your own sensors?

That’s exactly what the Zambretti (zambretti_sager) integration delivers — a classic barometric weather forecasting algorithm running entirely inside Home Assistant.

Think of it as a vintage mechanical weather station reborn in software form.


:brain: What is the Zambretti Algorithm

The Zambretti algorithm dates back to 1915, created by Negretti & Zambra. It predicts weather based on:

  • atmospheric pressure
  • pressure trend over time
  • wind direction
  • seasonal adjustments

Unlike modern forecasting models:

  • :cross_mark: no satellites
  • :cross_mark: no internet
  • :white_check_mark: fully local
  • :white_check_mark: optimized for short-term forecasts (12–24 hours)

It’s simple, but surprisingly effective when fed with good data.


:gear: How the Integration Works

The integration analyzes data from your local sensors and tracks trends:

  • pressure (primary signal)
  • temperature and humidity
  • wind speed and direction
  • geographic location

It doesn’t just look at current values — it studies pressure history, which is the secret sauce.

Outputs include:

  • :sun_behind_small_cloud: general forecast
  • :fog: fog likelihood
  • :wind_face: wind-related insights
  • :warning: weather alerts

:puzzle_piece: Key Features

:white_check_mark: Fully Local Operation

No external API calls. Everything runs inside Home Assistant.

:bar_chart: History-Based Analysis

Requires several hours of pressure history (typically 3–12 hours) to produce reliable results.

:high_voltage: Flexible Configuration

You can create multiple sensors with different pressure analysis windows (3h, 6h, 12h).

:brain: Rich Attributes

Beyond a simple forecast, you also get:

  • pressure trend (rising / falling / steady)
  • rate of pressure change
  • seasonal adjustments
  • wind influence

:package: Installation

Via HACS

  1. Add the repository
  2. Select Integration
  3. Install
  4. Restart Home Assistant

Manual Installation

  • Copy the component into "custom_components"
  • Restart Home Assistant
  • Add integration via UI

:hammer_and_wrench: Requirements

Minimum:

  • pressure sensor

Recommended:

  • temperature
  • humidity
  • wind speed and direction

More data = better accuracy.


:bar_chart: Example Usage

The integration creates a sensor like:

sensor.zambretti_forecast

Attributes include:

  • "forecast" — textual forecast
  • "trend" — pressure trend
  • "fog" — fog probability
  • "alert" — weather warnings

Typically displayed in Lovelace using Markdown or Entities cards.


:robot: How It Compares to Standard Weather Integrations

Feature| Zambretti| Cloud APIs
Internet required| :cross_mark:| :white_check_mark:
Local accuracy| :star::star::star::star:| :star::star::star:
Forecast range| 12–24h| up to 7 days
Dependency| :cross_mark:| :white_check_mark:


:warning: Limitations

  • Less accurate during rapid weather changes
  • Highly dependent on sensor quality
  • Originally tuned for specific regions (best in mid-latitudes)
  • Not a full replacement for modern forecast services

:light_bulb: Best Use Cases

  • off-grid setups
  • boats / RV systems
  • backup weather forecasting
  • local automations (e.g., close windows when pressure drops)

:test_tube: Final Thoughts

Zambretti isn’t “magic forecasting” — it’s:

«:chart_decreasing: smart pressure analysis with a century-old brain»

And that’s exactly why it shines:

  • fast
  • independent
  • reliable in stable conditions

It works best as a companion to cloud-based weather integrations, not a replacement.


:rocket: Conclusion

The zambretti_sager integration gives you:

  • :brain: a classic algorithm in modern form
  • :electric_plug: fully local weather forecasting
  • :gear: powerful automation potential

If you already have a pressure sensor, you’re just one step away from your own personal micro weather station.


Curious to hear how it compares to Met.no or OpenWeather in real setups :eyes:

1 Like

Now that you can collect data for all three, couldnt you plot this over a time period for statistical display and analysis purposes? Can your software do this?

Thank you for your comment. I plan to implement this soon.