Blueprint (Not working):
Idea is to press and hold up/down on a light dimmer switch to gradually change brightness until released. And then you can press followed by another press with hold to gradually change the color temperature.
Blueprint imports fine and I create an automation, which shows in automations.yaml but not in the UI. Under Logs, I get this error:
> Logger: homeassistant.components.automation
> Source: components/automation/__init__.py:637
> Integration: Automation (documentation, issues)
> First occurred: 11:10:00 PM (2 occurrences)
> Last logged: 11:17:44 PM
>
> Blueprint ZEN27 Dimmer Light Switch generated invalid automation with inputs OrderedDict([('light_switch', 'b2f8cd0bfc8c5765ca078ba68ef6eb79'), ('light', 'light.dining_chandelier'), ('step', 10), ('color_temp_min', 155), ('color_temp_max', 495), ('helper_last_controller_event', 'input_text.dining_switch_last_event'), ('press_up_1x', [OrderedDict([('conditions', [OrderedDict([('condition', 'state'), ('entity_id', 'light.dining_chandelier'), ('state', 'off')])]), ('sequence', [OrderedDict([('service', 'light.turn_on'), ('target', OrderedDict([('entity_id', 'light.dining_chandelier')])), ('data', OrderedDict([('transition', 2)]))])])])]), ('press_up_2x', [OrderedDict([('service', 'light.turn_on'), ('target', OrderedDict([('entity_id', 'light.dining_chandelier')])), ('data', OrderedDict([('transition', 2), ('brightness_pct', 100)]))])]), ('press_down_1x', [OrderedDict([('conditions', [OrderedDict([('condition', 'state'), ('entity_id', 'light.dining_chandelier'), ('state', 'on')])]), ('sequence', [OrderedDict([('service', 'light.turn_off'), ('target', OrderedDict([('entity_id', 'light.dining_chandelier')])), ('data', OrderedDict([('transition', 2)]))])])])]), ('press_down_2x', [OrderedDict([('service', 'light.turn_on'), ('target', OrderedDict([('entity_id', 'light.dining_chandelier')])), ('data', OrderedDict([('transition', 2), ('brightness_pct', 10)]))])])]): extra keys not allowed @ data['action'][2]['choose'][0]['sequence'][0]['conditions']. Got None extra keys not allowed @ data['action'][2]['choose'][0]['sequence'][0]['sequence']. Got None
Here is my automations.yaml:
alias: Dining Switch
description: Controls Dining Chandelier
use_blueprint:
path: sans-1/zen27_repeat-held.yaml
input:
light_switch: b2f8cd0bfc8c5765ca078ba68ef6eb79
light: light.dining_chandelier
step: 10
color_temp_min: 155
color_temp_max: 495
helper_last_controller_event: input_text.dining_switch_last_event
press_up_1x:
- conditions:
- condition: state
entity_id: light.dining_chandelier
state: "off"
sequence:
- service: light.turn_on
target:
entity_id: light.dining_chandelier
data:
transition: 2
press_up_2x:
- service: light.turn_on
target:
entity_id: light.dining_chandelier
data:
transition: 2
brightness_pct: 100
press_down_1x:
- conditions:
- condition: state
entity_id: light.dining_chandelier
state: "on"
sequence:
- service: light.turn_off
target:
entity_id: light.dining_chandelier
data:
transition: 2
press_down_2x:
- service: light.turn_on
target:
entity_id: light.dining_chandelier
data:
transition: 2
brightness_pct: 10
Anyone see what I’m missing? I greatly appreciate it!
Cheers!