Creates sensors for Home Assistant with the ACT Dam level information
This app is best installed using HACS, so that you can easily track and download updates.
Alternatively, you can download the canberradams
directory from inside the apps
directory here to your local apps
directory, then add the configuration to enable the canberradams
module.
The Icon Water site provides this information, this just scrapes the page and makes the information available as sensors in HA.
As this is non time critical sensor, it only gets the information on a set time schedule, once per day at 5.23am, but it also watches an input_boolean
that you specify for when to update the sensor. You can obviously automate when you want that input_boolean to turn on.
You will need to create an input_boolean entity to watch for when to update the sensor. When this input_boolean
is turned on, whether manually or by another automation you
create, the scraping process will be run to create/update the sensor.
Please add the following packages to your appdaemon 4 configuration on the supervisor page of the add-on.
system_packages: []
python_packages:
- xmltodict
init_commands: []
Note: bs4 (beautiful soup) is no longer required for this app
In the apps.yaml file in the appdaemon/apps directory -
canberra_dams:
module: canberradams
class: Get_ACT_Dams
DAM_FLAG: "input_boolean.check_dams"
key | optional | type | default | description |
---|---|---|---|---|
module |
False | string | canberradams |
|
class |
False | string | Get_ACT_Dams |
|
DAM_FLAG |
False | string | The name of the flag in HA for triggering this sensor update - e.g. input_boolean.check_dams |
This version will create 6 sensors
- sensor.act_dam_last_updated
- sensor.act_dam_bendora_dam
- sensor.act_dam_combined_volume
- sensor.act_dam_corin_dam
- sensor.act_dam_cotter_dam
- sensor.act_dam_googong_dam
Please log any issues or feature requests in this GitHub repository for me to review.