liangleslie / nea_sg_weather

Home Assistant integration for NEA Weather forecasts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NEA Singapore Weather Integration for Home Assistant

Home Assistant Integration to get current weather information directly from Data.gov.sg weather API published by Singapore National Enviroment 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 weather condition forecast for North/South/East/West/Central regions of Singapore
  • rain camera: 2 camera entities for static and animated rain map overlays that are updated every 5 minutes from NEA

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 map

Starting in v1.5, rainfall sensors have location attributes. Users can display sensors on a map card in Lovelace UI.

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

License:MIT License


Languages

Language:Python 100.0%