Harmony input_select

Can someone tell me why this doesnot work?
i try to turn the volume up from my tv and ter controle turn over the input_boolean switch.

this doesnot work!

- alias: "test:"
    trigger:
       platform: state
       entity_id: input_select.volume
       to: 'VolumeUp'
    action:
      - service: remote.turn_on
        data: 
          entity_id: remote.harmony_barts_remote
          command: "VolumeUp" 
          device: "67374347"
      - service: input_boolean.turn_on
        data:    
          entity_id: input_boolean.test_jan2

If i try it like this it works but whitout volume going up (clear)

- alias: "test:"
    trigger:
       platform: state
       entity_id: input_select.volume
       to: 'VolumeUp'
    action:      
      - service: input_boolean.turn_on
        data:    
          entity_id: input_boolean.test_jan2

my understand is the automation will only work when the input_select get change to “VolumeUp”

think you have to have a other action to change the input_select.volume to something else so that when you change it back to “VolumeUp” the automation will kick off again

Yes but first i need to get it to work before i can turn it off again.

This works !

  - alias: "totaal :"
    trigger:
       platform: state
       entity_id: input_select.volume
       to: "VolumeUp"
    action:
      - service: remote.send_command
        data_template:
          entity_id: remote.harmony_barts_remote
          device: 67374347
          command: VolumeUp  
      - service: input_boolean.turn_on
        data:    
          entity_id: input_boolean.test_jan2