Home Assistant sensor for WaterNSW Real Time Data
This component will set up a sensor platform to retrieve data from WaterNSW's Real Time Data platform
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledwaternsw
. - Download all the files from the
custom_components/waternsw/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Create Configuration (see below)
- Restart Home Assistant
- Ensure HACS is installed.
- Search for and install the "Water NSW" integration
- Configure the sensor
- Restart Home Assistant
WaterNSW's Real Time Data Platform can be a little bit tricky to use:
- Open https://realtimedata.waternsw.com.au/
- From the menu on the left hand side, select the Dam of interest
- Select the details Tab and note down the following for the Datasource "PROV"
- Site Number (Site ID below)
- The Variables (2nd & 3rd columns fo table, used for From and To Variables below)
- The Unit of measurement is usually in the description (3rd column)
Key | Type | Required | Description |
---|---|---|---|
name |
string |
True |
Name of Sensor |
icon |
string |
False |
MDI Icon to be used (default: mdi:water ) |
scan_interval |
number |
False |
Number of Seconds between updates (default 10 minutes) |
site_id |
string |
True |
Site Number (from Real Time Data platform) |
from_variable |
string |
True |
From Variable (from Real Time Data platform) |
to_variable |
string |
True |
To Variable (from Real Time Data platform) |
unit_of_measure |
string |
True |
Unit of Measurement (from Real Time Data platform) |
Most Dams on the platform use the same variables - reproduced below, however in some cases the variables may be slightly different due to changes at the dam (eg: capacity changes)
Data | UoM | From Variable | To Variable | Notes |
---|---|---|---|---|
Rainfall | Millimetres | 10.00 | 10.00 | |
Water Level | Metres | 130.00 | 130.00 | |
Water Volume | Megalitres | 130.00 | 136.00 | |
Water Volume | Percentage | 130.00 | 448.00 | |
Inflow (24hr Total) | Megalitres | 422.00 | 422.00 | |
Releases (24hr Total) | Megalitres | 459.00 | 459.00 | |
Evaporation | Millimetres | 700.00 | 700.00 | Not all Dams record evaporation |
sensor:
- platform: waternsw
name: Chaffey Dam Volume
site_id: 419069
from_variable: 130.00
to_variable: 136.00
unit_of_measure: ML
Please feel free to contribute, be it with Issues or Pull Requests!