Binary_sensor rflink always send OFF

Hello,
I’m a beginner, and i try to add my motion detector. But he send always cmd : “off” when he detect movement. How Can i do the integration ? Automation + template ?

Thanks

I think in your case the best approach may be to use the binary_sensor template.

Check the documentation, considering that in your case, the sensor sends the OFF state:

Maybe something like:

binary_sensor:
  - platform: template
    sensors:
      my_new_sensor_id:
        device_class: motion
        value_template: "{{ is_state('binary_sensor.my_always_off_sensor', 'off') }}"
        delay_off:
          seconds: 5

Thanks for your help.
For the moment i change this for a switch to make automation easyer.
Because i don’t understand template.