Automation not meets wishes

Hello everyone,
I have written the following automation but it does not work. What I would like is when my sliding door is open for two minutes my heater is turned off. I dont know if I have the wright sensor for the heater.
Any help is welcome!
Thanks in advande

  trigger:
  - platform: state
    entity_id: binary_sensor.shenzhen_neo_electronics_co_ltd_door_window_detector_sensor
    to: 'on'
    timer:
     timer_schuifpui:
      duration: ‘00:02:00’
  action:
  - condition: state
    entity_id: sensor.nefit_status
    state: turn off

I’m quite sure I speak for everyone, neither do we.
But I doubt it’s a sensor you should turn off, which should probably be turn_off?

Usually sensors sense things and switches switch things. But I could be wrong.

I agree your heater entity_id is definely wrong as pointed out by @Hellis81. You can’t turn on or off a sensor.

And your trigger is also wrong. You can’t add a timer like that.

This would be the correct format for the triger:

trigger:
  - platform: state
    entity_id: binary_sensor.shenzhen_neo_electronics_co_ltd_door_window_detector_sensor
    to: 'on'
    for: ‘00:02:00’

Once you figure out what you actually want to happen when the automation triggers then you will need to write an action that actually calls a service. right now you are just testing for a condition but have no actual action.

thank you very much for your response
@hellis81 I think you are wright with the sensor. I will look into it.
@finity Thanks for the trigger configuration!