From 5d18dbc3368fa65a86ade9596cc6dfa022a2b059 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Wed, 5 Nov 2025 17:52:40 -0800 Subject: [PATCH] Fix template variable access in actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds variables section to properly expose blueprint inputs as template variables, fixing undefined variable errors in conditions. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- occupancy_controlled_lights.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/occupancy_controlled_lights.yaml b/occupancy_controlled_lights.yaml index a873e28..2c41d2d 100644 --- a/occupancy_controlled_lights.yaml +++ b/occupancy_controlled_lights.yaml @@ -76,6 +76,9 @@ trigger: condition: [] action: + - variables: + occupancy_sensors: !input occupancy_sensors + adaptive_lighting_switch: !input adaptive_lighting_switch - choose: - conditions: - condition: template