Input_number as condition for aqara cube

Hey you all!

So I’ve been using this awesome blueprint for my Aqara Cube.

I’ve found this to be a little bit too limited as I want the cube to do different things if I switch it from side A to B and back from B to A, or if I switch it from B to A without having started the A to B action.
So I thougt I would use the input_number helpers to mark from which side the current action was started.

alias: Aqara Magic Cube
description: ''
use_blueprint:
  path: Mikkelmoeller/aqara-magic-cube-zha-51-actions.yaml
  input:
    remote: e725213099fc2bd940c26dc4fc5654ae
    one_to_two:
      - choose:
          - conditions:
              - condition: state
                entity_id: input_number.cube
                state: '1'
            sequence:
              - service: script.prime_video
                data: {}
        default: []
    two_to_one:
      - choose:
          - conditions:
              - condition: state
                entity_id: input_number.cube
                state: '1'
            sequence:
              - service: script.prime_video
                data: {}
        default: []
    cube_shake:
      - service: input_number.set_value
        data:
          value: '0'
        entity_id: input_number.cube
    slide_on_one:
      - service: input_number.set_value
        data:
          value: '1'
        entity_id: input_number.cube

But I’m always getting this error:

Blueprint Aqara Magic Cube generated invalid automation with inputs OrderedDict([('remote', 'e725213099fc2bd940c26dc4fc5654ae'), ('cube_shake', [OrderedDict([('service', 'input_number.set_value'), ('entity_id', 'input_number.cube'), ('data', OrderedDict([('value', '0')]))])]), ('one_to_one', [OrderedDict([('service', 'input_number.set_value'), ('entity_id', 'input_number.cube'), ('data', OrderedDict([('value', '1')]))])])
extra keys not allowed @ data['action'][1]['choose'][0]['sequence'][0]['choose'][0]['sequence'][0]['command']

Any ideas how to fix this?
Thanks for your help!

The error message is clear:

extra keys not allowed

You have added choose in the Selectors (input:) and that is not supported.

1 Like

Thanks! Any other idea how to reach this?

Don’t use a blueprint.