Issue with 433 motion detector

Hello,
I have a 433 Nexa motion detector that I cant make to trigger automation, there is simply something stupid I am overlooking…

The switch is available on the home screen and when I pass through the motion detector it changes to “on”.

switch:
  platform: rfxtrx
  automatic_add: true
  signal_repetitions: 2
  devices:
    0b1100870107898a0a010f70:
     name: 443 motiondetector

the development tool ‘service’ triggs the switch to turn on as expected:

switch.turn_on
switch.443_motiondetector
entity_id: switch.443_motiondetector

In automation file:

- id: '1571588863851'
  alias: motiondetector
  description: test
  trigger:
  - entity_id: switch.443_motiondetector
    platform: state
    to: 'On'
  condition: []
  action:
  - data:
      entity_id: light.fibaro_system_fgd212_dimmer_2_level
    service: light.toggle

If I execute the “automation” the light toggles but if I turn the motion detector switch it does not, mo matter how I trigg the switch…

Is there another trigger setting that is needed for this motion detector?
I hope someone can help me (again)…

Change this to:

to: 'on'

Thanks man…