Turn off a/c device if no movement has been detected for the last x mins

Hi there,

I currently have installed a motion sensor and also have integrated the ac on my home assistant installation.

The plan is if 10 mins after no movement detected to turn of the ac.

alias: turn ac after 10 minutes of no motion
description: “”
triggers:

  • type: no_motion
    device_id: c84ae1aedc2469d80c48c0c92899ecdf
    entity_id: 24addbffe5a450d2470334fb7169a2b7
    domain: binary_sensor
    trigger: device
    for:
    hours: 0
    minutes: 10
    seconds: 0
    conditions:
    actions:
  • action: climate.turn_off
    metadata: {}
    data: {}
    target:
    device_id:
    - 6aa1c1e7d9d91b3b03e97429492b8a8e
    - e2d2ab1cd9e166f77ff57575d89d0415
    - e179ac99d94521cebd2cbe7c485819cb
    mode: single

But it never runs.

Any ideas much appreciated.

Thanks

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16