What will happen to current handles if a constrain_input_boolean is turned off

Hello guys,

I have a lot of AppDeamon apps, and most of them can be turned off by constrain_input_boolean.

While most of the apps are “time bounded” (State changed, app waking up, doing something, back to sleep, the end) … I am starting to design apps that are registering callback for much later in the day (or next day), and I have a question :

Let’s take this example

welcome_home:
  module: usecase_manager
  class: welcome_home
  constrain_input_boolean: welcome_home_automation_switch

What happens if a callback is registered inside the app welcome_home (via listen_state for example) … then I turned off the input boolean welcome_home_automation_switch on Home assistant front end ?

  • Does it kill all current registered callback ?
  • Or not ?

Thank you in advance.
Jenova

It kills all registered callbacks :slight_smile:

I tried. Hope it helps someone !