#:########################################################################################:#
# Package: NIWA Local Tides
# File:    niwa_tides.yaml
# Version: v1.0.0
# Date:    2022-10-12
#
# Purpose:
#   Provides local tide level and forecast information from NIWA for use in Home
#   Assistant dashboards, automations, and templates.
#
# Output:
#   - sensor.local_tides reports the current tide level and exposes upcoming high
#     and low tide times, levels, phase, and percentage as attributes.
#
# Dependencies:
#   - NIWA Tides custom integration (platform: niwa_tides).
#   - NIWA API key and location coordinates stored in secrets.yaml.
#
# Version History:
#   - v1.0.0 (2022-10-12): Initial local NIWA tide sensor package.
#:########################################################################################:#

sensor:
  - platform: niwa_tides
    api_key: !secret niwa_tides_api_key
    entity_id: "local_tides"
    name: Local Tides
    latitude: !secret latitude
    longitude: !secret longitude
