Skip to content

NZ Water Alerts Binding ​

Get Water Alert Levels for cities in New Zealand. Getting this alert level can help you script and automate smarter tasks for water and avoid getting penalized by your district or local council.

Example: Disable automated sprinklers based on a level 3 or 4 water alert level

This binding scrapes multiple websites for water levels:

Thing Configuration ​

The binding and Thing ID is nzwateralerts:wateralert.

Configuration Values ​

ValueTypeDescription
locationstringThe location to get water data from. Refer to the list below for values.
refreshIntervalnumberThe time interval (in hours) to refresh the data.

Supported city/area list ​

CityConfig Value
Bream Baybewaterwise:whangarei:breambay
Dargaville & Baylysbewaterwise:kaipara:dargavilleampbaylys
Glinks Gullybewaterwise:kaipara:glinksgully
Hamilton Citysmartwater:hamilton:hamilton
Kaikohe / Ngawhabewaterwise:farnorth:kaikohengawha
Kaitaiabewaterwise:farnorth:kaitaia
Kerikeri / Waipapabewaterwise:farnorth:kerikeriwaipapa
Mangapaibewaterwise:whangarei:mangapai
Mangawhaibewaterwise:kaipara:mangawhai
Maungakarameabewaterwise:whangarei:maungakaramea
Maungaturotobewaterwise:kaipara:maungaturoto
Moerewa / Kawakawabewaterwise:farnorth:moerewakawakawa
Napiernapiercitycouncil:napier:napier
Okaihaubewaterwise:farnorth:okaihau
Opononi / Omaperebewaterwise:farnorth:opononiomapere
Rawenebewaterwise:farnorth:rawene
Ruawaibewaterwise:kaipara:ruawai
Russellbewaterwise:farnorth:russell
Waipa Districtsmartwater:waipa:waipa
Waikato Districtsmartwater:waikato:waikato
Waitangi / Paihia / Opuabewaterwise:farnorth:waitangipaihiaopua
Whangareibewaterwise:whangarei:whangarei

Example ​

dsl
Thing nzwateralerts:wateralert "HCC" [ location="smartwater:hamilton:hamilton", refreshInterval="4" ]

The above gets the Water Alert level for Hamilton and refreshes this data every 4 hours.

Channels ​

There is only one channel with this binding labeled alertlevel which contains a Number (0–4) to represent the alert level.

Depending on your region, either Alert Level 0 or 1 can represent No Water Restrictions. Check with your regional council for further details.

Other Cities ​

At present the supported cities were implemented by scraping the web page on the respective website that contains the restriction information.

No councils have this data in a programmatic format easily accessible to software. Many don't have pages that contain the current alert level and only offer alerts via X or text. If you can convince your council to always have a page displaying the current alert level (even if none is in effect) then I can attempt to parse the page for inclusion in this Binding.