Automations is not working

Hi everybody,
I have an problem with Automations,I tried some Automation on via UI but it is not triggered .I tetsted in with trigger it worked. Then ı tryid below link applicatin but it was not work.(I add my temrature sensor)

Please share the automation YAML. Make sure to format properly as a code block.

Thanks,
Im not at home now .Im not goig to be at home 4 hour later . When I arrive at home I will share it.

Manually triggering an automation bypasses the a actual trigger and just runs any conditions and actions.

Please post your trigger yaml, highlight it, then press the </> button to format it as code.

Or post a screenshot of the trigger using the UI editor :wink:

It also bypasses conditions

Thanks Guys ,
I resolve the problem .
But I copied some Automation code Automation.yaml but it is not working.Sample code is below.
automation:

  • alias: Turn on kitchen light when there is movement
    trigger:
    platform: state
    entity_id: sensor.motion_sensor
    to: ‘on’
    action:
    service: light.turn_on
    entity_id: light.kitchen_light

  • alias: Turn off kitchen light 10 minutes after last movement
    trigger:
    platform: state
    entity_id: sensor.motion_sensor
    to: ‘off’
    for:
    minutes: 10
    action:
    service: light.turn_off
    entity_id: light.kitchen_light

Post it as a CODE block… hard to help with what you posted.