Scene to stopp Automation for some time

Hi there, I hope you are fine.

I try to create scene t stop an automation for 10 minutes.
I just want to clean the cat liter, and for that, I want the light to stay no for 10 minutes, instead of going off after 5 minutes.

This is the, simple, scene I cam up with, but it does not work, anyone can help :

- name: cat_litter
  entities:
    light.eingang:
      state: on
      brightness: 255
    automation.floorlight_whenmovement:
      state: off 
      for: 
        minutes: 10

The turn_off service that this will be mapped to

    automation.floorlight_whenmovement:
      state: off 

does not support

      for: 
        minutes: 10

You could do it like this:

- name: cat_litter
  entities:
    light.eingang:
      state: on
      brightness: 255
    automation.floorlight_whenmovement:
      state: off

And add the following automation:

automation:
- id: floorlight_automation_re_enable
  alias: 'Floorlight Automation Re-Enable'
  trigger:
    platform: state
    entity_id: automation.floorlight_whenmovement
    to: 'off'
    for:
      minutes: 10
  action:
    service: homeassistant.turn_on
    entity_id: automation.floorlight_whenmovement

You could also add an action to change the scene to whatever you want it to be once you have finished changing the cat litter.

1 Like

Hi,

sorry for the late response.

Your answer was just right. Perfect. Thanks a lot !
Now I know how to handle things like this as best, this gives me some more options.
It is quite simple, but I did not thought about this way.

Again, thanks a lot !