Making my first Blueprint

I am working on my first blueprint. I tried changing some of the blueprints I saw and liked. That turned out to be a fool’s errand. So I am writing one from scratch. Blow is the blueprint as I have it now. Does not seem to have any errors, but when I go to create the automation, I get the following error:
Message malformed: extra keys not allowed @ data[‘actions’][1][‘choose’][0][‘conditions’][0][‘sequence’]
Still learning programming in HA and YAML itself so a lot of the messages are new to me. I have not found out what this message means.

What I am working on is a series of Blueprints to work with Philips Hue devices going through a Philips Hue Hub. I used ZHA for a while, but the stability of ZHA vs Hue was night and day for me. I am now in the process of moving everything I can off of ZHA.

I will be publishing all the blue prints I make as soon as I can get them all working :slight_smile:

Greg

blueprint:
  name: Philips hue 4 Button Remote v1.02
  description: "This blueprint will allow you to control multiple lights from
    one hue remote.  The buttons operate as follows:
    Power Button: Toggle On / Off lights (Long hold force all off)
    Dim Up & Down: Dim the lights brighter and dimmer
    hue button: Change the colour or hue of the light."
  domain: automation
  input:
    remote_control:
      name: hue Remote Control
      description: choose the dimmer remote
      selector:
        device:
          integration: hue
          multiple: false
    light_select:
      name: Lights to be controlled
      description: Choose the lights you want to control
      selector:
        entity:
          domain: light
          multiple: false
mode: single
triggers:
  - device_id: !input remote_control
    domain: hue
    type: short_release
    subtype: 1
    trigger: device
    id: 1short
  - device_id: !input remote_control
    domain: hue
    type: long_release
    subtype: 1
    trigger: device
    id: 1long
  - device_id: !input remote_control
    domain: hue
    type: initial_press
    subtype: 2
    trigger: device
    id: 2press
  - device_id: !input remote_control
    domain: hue
    type: initial_press
    subtype: 3
    trigger: device
    id: 3press
  - device_id: !input remote_control
    domain: hue
    type: initial_press
    subtype: 4
    trigger: device
    id: 4press
conditions: []
actions:
  - type: turn_off
    device_id: !input light_select
    domain: light
  - choose:
      - conditions:
          - condition: trigger
            id:
              - 1short
            sequence:
              - service: light.toggle
                target:
                  entiry_id: !input light_select
          - condition: trigger
            id:
              - 1long
            sequence:
              - service: light.turn_off
                target:
                  entiry_id: !input light_select
          - condition: trigger
            id:
              - 2press
            sequence:
              - service: light.turn_on
                target:
                  entity_id: !input "light_select"
                data:
                  brightness_step_pct: 10
                  transition: "{{ (var_speed / 1000)|float }}"
          - condition: trigger
            id:
              - 3press
            sequence:
              - service: light.turn_on
                target:
                  entity_id: !input "light_select"
                data:
                  brightness_step_pct: -10
                  transition: "{{ (var_speed / 1000)|float }}"
          - condition: trigger
            id:
              - 4press
            sequence:
              - service: light.turn_off
                entiry_id: !input light_select

All of your sequence: are indented too far. They should be on the same level as your conditions:, not the level of the condition:.

To add to what Magnus said…

  1. The Choose currently only has 1 option when it should have 5. Options are delineated by the conditions key.
  2. The initial “turn off” action is an invalid mashup of a Device action and an entity action. Since the input only provides an entity, use the light.turn_off action.
  3. The final action is missing the target key.
  4. There are a few typos of the word “entity”.
  5. The entity selector is missing the filter key.
blueprint:
  name: Philips hue 4 Button Remote v1.02
  description: "This blueprint will allow you to control multiple lights from
    one hue remote.  The buttons operate as follows:
    Power Button: Toggle On / Off lights (Long hold force all off)
    Dim Up & Down: Dim the lights brighter and dimmer
    hue button: Change the colour or hue of the light."
  domain: automation
  input:
    remote_control:
      name: hue Remote Control
      description: choose the dimmer remote
      selector:
        device:
          integration: hue
          multiple: false
    light_select:
      name: Lights to be controlled
      description: Choose the lights you want to control
      selector:
        entity:
          filter:
            domain: light
          multiple: false
mode: single
triggers:
  - device_id: !input remote_control
    domain: hue
    type: short_release
    subtype: 1
    trigger: device
    id: 1short
  - device_id: !input remote_control
    domain: hue
    type: long_release
    subtype: 1
    trigger: device
    id: 1long
  - device_id: !input remote_control
    domain: hue
    type: initial_press
    subtype: 2
    trigger: device
    id: 2press
  - device_id: !input remote_control
    domain: hue
    type: initial_press
    subtype: 3
    trigger: device
    id: 3press
  - device_id: !input remote_control
    domain: hue
    type: initial_press
    subtype: 4
    trigger: device
    id: 4press
conditions: []
actions:
  - action: light.turn_off
    target:
      entity_id: !input light_select
  - choose:
      - conditions:
          - condition: trigger
            id:
              - 1short
        sequence:
          - service: light.toggle
            target:
              entity_id: !input light_select
      - conditions:
          - condition: trigger
            id:
              - 1long
        sequence:
          - service: light.turn_off
            target:
              entity_id: !input light_select
      - conditions:
          - condition: trigger
            id:
              - 2press
        sequence:
          - service: light.turn_on
            target:
              entity_id: !input light_select
            data:
              brightness_step_pct: 10
              transition: "{{ (var_speed / 1000)|float }}"
      - conditions:
          - condition: trigger
            id:
              - 3press
        sequence:
          - service: light.turn_on
            target:
              entity_id: !input light_select
            data:
              brightness_step_pct: -10
              transition: "{{ (var_speed / 1000)|float }}"
      - conditions:
          - condition: trigger
            id:
              - 4press
        sequence:
          - service: light.turn_off
            target:
              entity_id: !input light_select