Home Assistant Integration to get current weather information directly from Data.gov.sg weather API published by Singapore National Environment Agency (SG NEA)
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 forecastsarea
(town) sensors: current weather conditions for up to 47 areas/towns in Singaporeregion
sensors: 24 weather condition forecast for North/South/East/West/Central regions of Singaporerain
camera: 2 camera entities for static and animated rain map overlays that are updated every 5 minutes from NEApm25
sensors: 5 pm2.5 sensors for North/South/East/West/Central regions of Singaporeuv_index
sensor: 1 uv index for Singapore
Several yaml
files are included to help you quickly set up a weather map card on Lovelace UI.
For the overlays to display properly, you will need the area
, region
and rain
entities activated in the config flow.
input_boolean.yaml
: to set upinput_boolean
toggles for the map overlaysautomations.yaml
: automations to manage how the map toggles worklovelace.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.
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.