This Home Assistant component integrates NSW dam level and capacity data from the WaterNSW WaterInsights API as sensors in the Home Assistant platform.
The simplest method to install this integration is using HACS.
Manual installation can also be performed by:
custom_components/waterinsights
directory of this repository into the custom_components
directory of your Home Assistant configurationThe waterinsights
integration can currently only be configured via Home Assistant's YAML configuration.
To add dam level sensors:
secrets.yaml
file named water_insights_api_secret
who's value is your API secret from step 1configuration.yaml
. If the sensor
key already exists, add the - platform: waterinsights
element under the existing key.
sensor:
- platform: waterinsights
api_key: /Insert your API key from step 1/
api_secret: !secret water_insights_api_secret
dams:
- dam_id: /Insert a dam ID/
name: /Insert an optional name/
# For example
- dam_id: "212243"
name: "Warragamba Dam"
- dam_id: "412106"
The name
key is optional for each dam. If not specified, the name returned by the API will be used.