Files
home-assistant-blueprints/blueprints/automation/weekend_mode_schedule.yaml
John Ogle 16319e5bc4 Fix blueprint input section structure to nest under blueprint key
Move input definitions from root level to be nested under the blueprint
section. Home Assistant requires input declarations to be under
blueprint.input, not at the root level.

This fixes import errors:
- "Missing input definition for adaptive_lighting_switch, led_color_entity, mode_input_select"
- "Missing input definition for sunrise_time, sunset_time, weekend_mode_boolean, adaptive_lighting_switch, max_brightness"
- "Missing input definition for toggle_time, weekend_mode_boolean"
2025-12-21 17:53:47 -08:00

46 lines
1.1 KiB
YAML

blueprint:
name: Weekend Mode Schedule
description: Auto-enable/disable weekend mode based on day of week
domain: automation
input:
weekend_mode_boolean:
name: Weekend Mode Boolean
description: Toggle helper for weekend mode
selector:
entity:
domain: input_boolean
toggle_time:
name: Toggle Time
description: Time to check and toggle weekend mode
default: "22:00:00"
selector:
time:
mode: single
max_exceeded: silent
trigger:
- platform: time
at: !input toggle_time
action:
- choose:
# Friday/Saturday - Enable weekend mode
- conditions:
- condition: time
weekday: [fri, sat]
sequence:
- service: input_boolean.turn_on
target:
entity_id: !input weekend_mode_boolean
# Sunday-Thursday - Disable weekend mode
- conditions:
- condition: time
weekday: [sun, mon, tue, wed, thu]
sequence:
- service: input_boolean.turn_off
target:
entity_id: !input weekend_mode_boolean