#:########################################################################################:#
# Package: Dashboard Helpers
# File:    dashboard_helpers.yaml
# Version: v1.0.1
# Date:    2026-07-24
#
# Purpose:
#   Provides helper entities used by stored Home Assistant dashboards for
#   temporary display behavior that does not belong to a device integration.
#
# Behaviour:
#   - The moon-phase overlay helper controls whether the percentage is displayed.
#   - The companion script enables the overlay for ten seconds and then disables it.
#   - Restart mode restarts the ten-second display period when called repeatedly.
#
# Version History:
#   - v1.0.0 (2026-02-16): Added the temporary moon-phase percentage overlay helper.
#   - v1.0.1 (2026-07-24): Standardized header format with additional metadata.
#:########################################################################################:#

input_boolean:
  moon_phase_percent_overlay:
    name: Moon phase percent overlay
    icon: mdi:percent

script:
  moon_phase_percent_overlay_10s:
    alias: Moon phase percent overlay (10s)
    mode: restart
    sequence:
      - service: input_boolean.turn_on
        target:
          entity_id: input_boolean.moon_phase_percent_overlay
      - delay: "00:00:10"
      - service: input_boolean.turn_off
        target:
          entity_id: input_boolean.moon_phase_percent_overlay
