Skip to content

About

Home Assistant integration for NEA Weather forecasts

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

NEA Singapore Weather Integration for Home Assistant

CHANGELOG

Home Assistant Integration to get current weather information directly from Data.gov.sg weather API published by Singapore National Environment Agency (SG NEA)

image

image

Installation

Add this integration to Home Assistant using HACS, or copy everything in custom_components/nea_sg_weather to your custom_components folder in your Home Assistant config folder.

Follow the integration config flow to set up the following entities:

  • weather: weather entity with 4 day forecasts
  • area (town) sensors: current weather conditions for up to 47 areas/towns in Singapore
  • region sensors: 24 hour weather condition forecast for North/South/East/West/Central regions of Singapore
  • rain camera: 2 camera entities for static and animated rain map overlays updated every 5 minutes from NEA
  • rain sensors: one rainfall sensor per active NEA station, fetched live from the API — stations are added and removed automatically as the API changes
  • pm25 sensors: 5 pm2.5 sensors for North/South/East/West/Central regions of Singapore
  • psi sensors: 5 sensors with the 24-hour PSI for North/South/East/West/Central regions of Singapore; the 24-hour PM2.5 and the per-pollutant sub-indices are exposed as attributes
  • uv_index sensor: UV index for Singapore

Weather Map Overlays

Several yaml files are included to help you quickly set up a weather map card on Lovelace UI. image

For the overlays to display properly, you will need the area, region and rain entities activated in the config flow.

  1. input_boolean.yaml: to set up input_boolean toggles for the map overlays
  2. automations.yaml: automations to manage how the map toggles work
  3. lovelace.yaml: preset card config to display the weather map card

Instructions for how to integrate the yaml files are included in the various files in the nea_sg_weather/yaml folder.

Rainfall sensors

Rainfall sensors are created dynamically from the live NEA API — no static station list is used. Orphaned sensors (stations decommissioned by NEA) are automatically removed from Home Assistant on startup and whenever the station list changes at runtime.

Sensors include location attributes so they can be displayed on a Lovelace map card.

For entity pictures to display correctly, copy all image files in www/weather/ to your config/www/weather/ folder. image

About

Home Assistant integration for NEA Weather forecasts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages