Extra keys not allowed is driving me crazy

I have build my first blueprint, based on an automation i created before. I created the blueprint and the first automation from it but keep on getting this error:

2021-12-26 21:22:22 ERROR (MainThread) [homeassistant.components.automation] Blueprint Hue Wall Switch Module generated invalid automation with inputs OrderedDict([(‘switch’, ‘sensor.wallswitch_01_action’), (‘press_left’, [OrderedDict([(‘service’, ‘light.turn_on’), (‘target’, OrderedDict([(‘entity_id’, ‘light.eetkamer’)]))])])]): extra keys not allowed @ data[‘action’][2][‘default’][0][‘sequence’]. Got None

How are we supposed to help?
You need to post the automation/blueprint if you want help.

the blueprint: 

# 
# left_press / left_hold / left_hold_release
# right_press / right_hold / right_hold_release

blueprint:
  name: Hue Wall Switch Module
  description: 'Blueprint for Home Assistant for the Hue Wall Switch using zigbee2mqtt.'
  domain: automation
  
  input:
    switch:
      name: Switch
      description: Action sensor of Hue Wall Switch to use
      selector:
        entity:
          domain: sensor
          integration: mqtt

    press_left:
      name: Press left button 
      description: Action to run on left button press
      default: []
      selector:
        action: {}

    hold_left:
      name: Hold left button
      description: Action to run on holding left button
      default: []
      selector:
        action: {}

    release_left:
      name: Release left button
      description: Action to run on releasing left button
      default: []
      selector:
        action: {}

    press_right:
      name: Press right button
      description: Action to run on right button press
      default: []
      selector:
        action: {}

    hold_right:
      name: Hold right button
      description: Action to run on holding right button
      default: []
      selector:
        action: {}

    release_right:
      name: Release right button
      description: Action to run on releasing right button
      default: []
      selector:
        action: {}

mode: restart
max_exceeded: silent
trigger:
  - platform: state
    entity_id: !input switch
    to:
      - "left_press"
      - "left_hold"
      - "right_press"
      - "right_hold"  
action:
- variables:
    command: "{{ trigger.to_state.attributes.action }}"
- wait_for_trigger:
  - platform: state
    entity_id: !input switch
    to: "right_hold"
  timeout: 0.8
  continue_on_timeout: true
- choose:
  - conditions:
    # when button right_hold did not come withing the timeout
    - condition: template
      value_template: "{{ wait.trigger == none }}"
    sequence:
      - choose:
        - conditions: '{{ command == ''left_press'' }}'
          sequence: !input press_left
        - conditions: '{{ command == ''left_hold'' }}'
          sequence: !input hold_left
        - conditions: '{{ command == ''right_press'' }}'
          sequence: !input press_right
  # right_hold within timout
  default: 
    sequence: !input hold_right

You are too fast :wink:

It doesn’t accept this line:

    sequence: !input hold_right

Damn, stupid me :wink:
Thanks a lot @123

You’re welcome.

Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions. For more information refer to guideline 21 in the FAQ.