From e641cefada7bef8a5fa53dc04536652287e1e12d Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Sun, 25 Jan 2026 16:43:25 +0300 Subject: [PATCH] Fix for `MQTT Light Control.yaml` --- Zigbee/MQTT Light Control.yaml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Zigbee/MQTT Light Control.yaml b/Zigbee/MQTT Light Control.yaml index f1f41e6..0f0487e 100644 --- a/Zigbee/MQTT Light Control.yaml +++ b/Zigbee/MQTT Light Control.yaml @@ -2638,18 +2638,7 @@ action: {% else %} {{ [0, [(value_sequence | length - 1), next_index_preview]|min]|max }} {% endif %} - - # Parse preset JSON format - preset_str: "{{ value_sequence[next_index] | trim }}" - parsed_json: "{{ preset_str | from_json(default=none) }}" - - # Validate JSON parsing succeeded - - choose: - - conditions: - - condition: template - value_template: '{{ parsed_json is none }}' - sequence: - - stop: "Invalid JSON in preset. Ensure you use double quotes, not single quotes. Got: {{ preset_str }}" + parsed_json: "{{ value_sequence[next_index] | from_json }}" - variables: light_data: >